jelmer/dulwich-libgit2.git
9 years agoWork towards making Dulwich less dependent on the filesystem.
Dave Borowitz [Thu, 21 Jan 2010 02:03:44 +0000 (18:03 -0800)]
Work towards making Dulwich less dependent on the filesystem.

This change is mostly refactoring, and accomplishes the following:
 * Create an abstract base class for Repo that does not need to point
   to a repo on disk.
 * Move some methods in DiskRefsContainer dealing with packs to the
   base class. Packs are such a fundamental tool for optimization in
   git that they should be used by non-disk-backed implementations.
 * Change GitBackend to take in a repo rather than a directory as an
   argument.

Change-Id: Ib2f12855b34c60de48d2b777fbca32f9c2317c8c

9 years agoDon't magically delete lockfiles on IOError/OSError.
Dave Borowitz [Fri, 22 Jan 2010 23:44:34 +0000 (15:44 -0800)]
Don't magically delete lockfiles on IOError/OSError.

The docstring already says the only way to guarantee that lockfiles
will be deleted is close them in a finally block, so the extra magic
is redundant.

9 years agoClarify GitFile docstrings and disallow r+w modes.
Dave Borowitz [Thu, 21 Jan 2010 23:00:30 +0000 (15:00 -0800)]
Clarify GitFile docstrings and disallow r+w modes.

Change-Id: I9a23ede0d7a3c93b0eb6c55aebf487a34d7cf875

9 years agoAdd a GitFile class that uses the same locking protocol for writes as git.
Dave Borowitz [Tue, 19 Jan 2010 22:58:14 +0000 (14:58 -0800)]
Add a GitFile class that uses the same locking protocol for writes as git.

Change-Id: Id9c6f8b5880a73e0e714cbc61e954d0ecae6103a

9 years agoRework server protocol to be smarter and interoperate with cgit client.
Dave Borowitz [Wed, 20 Jan 2010 18:59:34 +0000 (10:59 -0800)]
Rework server protocol to be smarter and interoperate with cgit client.

This largely consists of correctly implementing multi-ack and
single-ack mode on the client side as well as stopping graph walking
when a sufficient set of common commits is found. Tests are included,
and the implementation has been lightly tested against the cgit
client. However, the dulwich server does not interoperate with the
dulwich client anymore; this will be fixed in a future change.

This change also preserves the GraphWalker interface so as not to
break hg-git or bzr-git.

Change-Id: Ia63e7fd0da9ff17c9f3f546149b474eb4f8bb466

9 years agoImplement Repo.get_config().
Jelmer Vernooij [Mon, 8 Feb 2010 14:44:50 +0000 (15:44 +0100)]
Implement Repo.get_config().

9 years agoFix two tests with the same name.
Jelmer Vernooij [Mon, 8 Feb 2010 14:43:37 +0000 (15:43 +0100)]
Fix two tests with the same name.

9 years agoDon't allow setting custom headers, per the discussion on the git list.
Jelmer Vernooij [Sun, 7 Feb 2010 14:55:23 +0000 (15:55 +0100)]
Don't allow setting custom headers, per the discussion on the git list.

9 years agoAdd --without-speedups option.
Jelmer Vernooij [Mon, 25 Jan 2010 09:10:07 +0000 (10:10 +0100)]
Add --without-speedups option.

9 years agoSupport extension build fails.
Hal Wine [Mon, 25 Jan 2010 08:59:14 +0000 (09:59 +0100)]
Support extension build fails.

Dulwich is pure python, with optional C implementation of some routines
for performance.

On systems which can not build the extensions, they default back to the
pure python implementations.

The builder can specify pure python by adding the flag
'--without-speedups' to the invocation of setup.py.

9 years agoSupport custom fields in commits.
Jelmer Vernooij [Thu, 21 Jan 2010 01:11:41 +0000 (14:11 +1300)]
Support custom fields in commits.

9 years agoAdd basic test for parsing commit objects.
Jelmer Vernooij [Thu, 21 Jan 2010 00:56:19 +0000 (13:56 +1300)]
Add basic test for parsing commit objects.

9 years agoFix fetch() without determine_wants argument.
Jelmer Vernooij [Sat, 16 Jan 2010 04:11:59 +0000 (17:11 +1300)]
Fix fetch() without determine_wants argument.

9 years agoRelease 0.4.1. dulwich-0.4.1
Jelmer Vernooij [Sun, 3 Jan 2010 15:11:46 +0000 (16:11 +0100)]
Release 0.4.1.

9 years agoMerge faster pure-Python Tree parser.
Jelmer Vernooij [Mon, 7 Dec 2009 13:51:49 +0000 (14:51 +0100)]
Merge faster pure-Python Tree parser.

9 years agospeed up the python based tree object parser by using str.find
Ronny Pfannschmidt [Mon, 7 Dec 2009 13:40:09 +0000 (14:40 +0100)]
speed up the python based tree object parser by using str.find

9 years agoFix commit id, thanks Bryan Bishop.
Jelmer Vernooij [Sat, 28 Nov 2009 19:23:43 +0000 (20:23 +0100)]
Fix commit id, thanks Bryan Bishop.

9 years agoRemove trailing whitespace.
Jelmer Vernooij [Sat, 28 Nov 2009 19:20:10 +0000 (20:20 +0100)]
Remove trailing whitespace.

9 years agomerge patch from durin42 to use setuptools if possible.
Jelmer Vernooij [Sun, 25 Oct 2009 21:23:38 +0000 (14:23 -0700)]
merge patch from durin42 to use setuptools if possible.

9 years agosetup: use setuptools if available
Augie Fackler [Sun, 25 Oct 2009 18:57:52 +0000 (14:57 -0400)]
setup: use setuptools if available

This makes using python setup.py develop possible for those of us that want to track the development version of dulwich.

9 years agoAllow time-less tags.
Jelmer Vernooij [Sat, 24 Oct 2009 21:59:01 +0000 (14:59 -0700)]
Allow time-less tags.

9 years agoAdd convenience function for creating a new commit in a git repository.
Jelmer Vernooij [Sun, 18 Oct 2009 17:24:17 +0000 (19:24 +0200)]
Add convenience function for creating a new commit in a git repository.

9 years agoFix call to get_graph_walker.
Jelmer Vernooij [Sun, 18 Oct 2009 15:06:44 +0000 (17:06 +0200)]
Fix call to get_graph_walker.

9 years agoAdd convenience functions for fetching objects.
Jelmer Vernooij [Sun, 18 Oct 2009 14:55:07 +0000 (16:55 +0200)]
Add convenience functions for fetching objects.

9 years agoSupport diffstats in git am-style patches.
Jelmer Vernooij [Sat, 10 Oct 2009 10:33:32 +0000 (12:33 +0200)]
Support diffstats in git am-style patches.

9 years agoAdd function for writing the diff between two files.
Jelmer Vernooij [Sat, 10 Oct 2009 00:26:15 +0000 (02:26 +0200)]
Add function for writing the diff between two files.

9 years agoAdd function for writing diff file headers.
Jelmer Vernooij [Sat, 10 Oct 2009 00:06:44 +0000 (02:06 +0200)]
Add function for writing diff file headers.

9 years agoAdd functionality for writing patches in dulwich.patch.
Jelmer Vernooij [Fri, 9 Oct 2009 23:28:45 +0000 (01:28 +0200)]
Add functionality for writing patches in dulwich.patch.

9 years agoAdd ObjectStore.tree_changes().
Jelmer Vernooij [Wed, 7 Oct 2009 13:44:53 +0000 (15:44 +0200)]
Add ObjectStore.tree_changes().

9 years agoAdd functions for determining the delta between the index and a revision tree.
Jelmer Vernooij [Wed, 7 Oct 2009 13:14:05 +0000 (15:14 +0200)]
Add functions for determining the delta between the index and a revision tree.

9 years agoStart working on 0.4.1.
Jelmer Vernooij [Wed, 7 Oct 2009 09:29:12 +0000 (11:29 +0200)]
Start working on 0.4.1.

9 years agorelease 0.4.0. dulwich-0.4.0
Jelmer Vernooij [Wed, 7 Oct 2009 09:28:17 +0000 (11:28 +0200)]
release 0.4.0.

9 years agoTutorial 1-initial-commit.txt: should also import parse_timezone
Ricardo Salveti [Tue, 6 Oct 2009 13:47:16 +0000 (15:47 +0200)]
Tutorial 1-initial-commit.txt: should also import parse_timezone

9 years agoAdd rst2html variable.
Jelmer Vernooij [Wed, 30 Sep 2009 14:01:01 +0000 (16:01 +0200)]
Add rst2html variable.

9 years agoMerge tutorial from Hervé.
Jelmer Vernooij [Sat, 26 Sep 2009 09:10:01 +0000 (11:10 +0200)]
Merge tutorial from Hervé.

9 years agotutorial: finish documenting all tree operations
Hervé Cauwelier [Mon, 21 Sep 2009 20:36:17 +0000 (22:36 +0200)]
tutorial: finish documenting all tree operations

9 years agotutorial: second chapter about changing a file
Hervé Cauwelier [Thu, 17 Sep 2009 20:27:05 +0000 (22:27 +0200)]
tutorial: second chapter about changing a file

10 years agotutorial: move to compiling a global document
Hervé Cauwelier [Wed, 16 Sep 2009 20:26:03 +0000 (22:26 +0200)]
tutorial: move to compiling a global document

10 years agofix docutils syntax and a few typos
Hervé Cauwelier [Wed, 16 Sep 2009 08:34:27 +0000 (10:34 +0200)]
fix docutils syntax and a few typos

10 years agostart a tutorial of first steps
Hervé Cauwelier [Tue, 15 Sep 2009 20:28:14 +0000 (22:28 +0200)]
start a tutorial of first steps

10 years agoUpdate docstring for Index.__getitem__.
Jelmer Vernooij [Mon, 14 Sep 2009 13:43:21 +0000 (15:43 +0200)]
Update docstring for Index.__getitem__.

10 years agoRemove mention of no write support.
Jelmer Vernooij [Sun, 13 Sep 2009 15:01:07 +0000 (17:01 +0200)]
Remove mention of no write support.

10 years agoMerge Windows fix from Abderrahim.
Jelmer Vernooij [Sat, 12 Sep 2009 21:50:23 +0000 (23:50 +0200)]
Merge Windows fix from Abderrahim.

10 years agoMerge server fixes from Roland.
Jelmer Vernooij [Thu, 10 Sep 2009 13:14:38 +0000 (15:14 +0200)]
Merge server fixes from Roland.

10 years agoAdded missing ACK to protocol
Roland Mas [Thu, 10 Sep 2009 12:30:34 +0000 (14:30 +0200)]
Added missing ACK to protocol

10 years agoAdded cache to ProtocolGraphWalker to cope with several iterations on the commands...
Roland Mas [Thu, 10 Sep 2009 12:30:13 +0000 (14:30 +0200)]
Added cache to ProtocolGraphWalker to cope with several iterations on the commands received from the net

10 years agoAdd proper error message when server hangs up.
Jelmer Vernooij [Tue, 8 Sep 2009 12:45:38 +0000 (14:45 +0200)]
Add proper error message when server hangs up.

10 years agoUpdate docstrings, skip extra data in indexes (for now).
Jelmer Vernooij [Tue, 8 Sep 2009 12:41:59 +0000 (14:41 +0200)]
Update docstrings, skip extra data in indexes (for now).

10 years agoclose the pack file before renaming (fix a crash on windows)
Abderrahim Kitouni [Wed, 12 Aug 2009 17:23:25 +0000 (18:23 +0100)]
close the pack file before renaming (fix a crash on windows)

--HG--
branch : master

10 years agoClarify that C modules should be optional.
Jelmer Vernooij [Sun, 9 Aug 2009 11:27:32 +0000 (13:27 +0200)]
Clarify that C modules should be optional.

10 years agoClarify docstring.
Jelmer Vernooij [Wed, 29 Jul 2009 14:31:57 +0000 (16:31 +0200)]
Clarify docstring.

10 years agomerge trivial fixes from Abderrahim.
Jelmer Vernooij [Wed, 29 Jul 2009 14:25:42 +0000 (16:25 +0200)]
merge trivial fixes from Abderrahim.

10 years agocreate_delta: correctly write opcode for equal
Abderrahim Kitouni [Wed, 29 Jul 2009 13:34:45 +0000 (14:34 +0100)]
create_delta: correctly write opcode for equal

10 years agoensure a tree is parsed before calculating its length
Abderrahim Kitouni [Tue, 28 Jul 2009 14:31:07 +0000 (15:31 +0100)]
ensure a tree is parsed before calculating its length

10 years agoReturn object sha and mode rather than object itself in tree_lookup_path.
Abderrahim Kitouni [Fri, 24 Jul 2009 08:54:16 +0000 (10:54 +0200)]
Return object sha and mode rather than object itself in tree_lookup_path.

10 years agoUse binascii.{unhexlify,hexlify}. Thanks to Ronny for the hint.
Jelmer Vernooij [Fri, 24 Jul 2009 08:42:58 +0000 (10:42 +0200)]
Use binascii.{unhexlify,hexlify}. Thanks to Ronny for the hint.

10 years agostart working on 0.3.4.
Jelmer Vernooij [Thu, 23 Jul 2009 18:31:52 +0000 (20:31 +0200)]
start working on 0.3.4.

10 years agoRelease 0.3.3 dulwich-0.3.3
Jelmer Vernooij [Thu, 23 Jul 2009 18:28:29 +0000 (20:28 +0200)]
Release 0.3.3

10 years agoImplement Tree.__len__.
Jelmer Vernooij [Thu, 23 Jul 2009 13:26:16 +0000 (15:26 +0200)]
Implement Tree.__len__.

10 years agoMerge fixes from abderrahim.
Jelmer Vernooij [Wed, 22 Jul 2009 19:04:45 +0000 (21:04 +0200)]
Merge fixes from abderrahim.

10 years agoReturn the offset correctly from write_pack_object
Abderrahim Kitouni [Fri, 17 Jul 2009 20:29:08 +0000 (21:29 +0100)]
Return the offset correctly from write_pack_object

10 years agofix uses of old api (Repo.{set,remove}_ref ObjectStore.add_pack)
Abderrahim Kitouni [Fri, 17 Jul 2009 20:29:08 +0000 (21:29 +0100)]
fix uses of old api (Repo.{set,remove}_ref ObjectStore.add_pack)

10 years agoAllow pushing a repository containing submodules
Abderrahim Kitouni [Sat, 11 Jul 2009 14:23:51 +0000 (15:23 +0100)]
Allow pushing a repository containing submodules

10 years agoremove empty directories.
Jelmer Vernooij [Mon, 13 Jul 2009 11:14:56 +0000 (13:14 +0200)]
remove empty directories.

10 years agoImplement ShaFile.__hash__.
Jelmer Vernooij [Wed, 8 Jul 2009 21:33:45 +0000 (23:33 +0200)]
Implement ShaFile.__hash__.

10 years agoMore docstrings, test coverage.
Jelmer Vernooij [Tue, 16 Jun 2009 15:55:35 +0000 (17:55 +0200)]
More docstrings, test coverage.

10 years agoAdd tests for dulwich.index.write_cache_time.
Jelmer Vernooij [Tue, 16 Jun 2009 14:56:53 +0000 (16:56 +0200)]
Add tests for dulwich.index.write_cache_time.

10 years agoAdd command for generating coverage-annotated files.
Jelmer Vernooij [Tue, 16 Jun 2009 14:56:42 +0000 (16:56 +0200)]
Add command for generating coverage-annotated files.

10 years agoAvoid using .git as a directory name since it confuses C git.
Jelmer Vernooij [Tue, 16 Jun 2009 13:17:14 +0000 (15:17 +0200)]
Avoid using .git as a directory name since it confuses C git.

10 years agoImplement ShaFile.__ne__.
Jelmer Vernooij [Tue, 9 Jun 2009 20:53:03 +0000 (22:53 +0200)]
Implement ShaFile.__ne__.

10 years agoFix sentinels.
Ronald Blaschke [Sat, 30 May 2009 23:30:11 +0000 (01:30 +0200)]
Fix sentinels.

10 years agoAdd more tests.
Jelmer Vernooij [Wed, 27 May 2009 08:15:45 +0000 (10:15 +0200)]
Add more tests.

10 years agoDon't use just the fact that the objects directory exists.
Jelmer Vernooij [Wed, 27 May 2009 07:55:27 +0000 (09:55 +0200)]
Don't use just the fact that the objects directory exists.

10 years agoStart on 0.3.3.
Jelmer Vernooij [Wed, 20 May 2009 15:34:52 +0000 (17:34 +0200)]
Start on 0.3.3.

10 years agorelease 0.3.2 dulwich-0.3.2
Jelmer Vernooij [Wed, 20 May 2009 15:33:18 +0000 (17:33 +0200)]
release 0.3.2

10 years agoFix commit_index.
Jelmer Vernooij [Tue, 19 May 2009 20:30:50 +0000 (22:30 +0200)]
Fix commit_index.

10 years agoAdd more docstrings.
Jelmer Vernooij [Tue, 19 May 2009 20:21:57 +0000 (22:21 +0200)]
Add more docstrings.

10 years agoAdd more docstrings.
Jelmer Vernooij [Tue, 19 May 2009 19:57:16 +0000 (21:57 +0200)]
Add more docstrings.

10 years agoAdd tests for cleanup_mode.
Jelmer Vernooij [Tue, 19 May 2009 19:25:21 +0000 (21:25 +0200)]
Add tests for cleanup_mode.

10 years agoAdd more docstrings.
Jelmer Vernooij [Tue, 19 May 2009 19:09:14 +0000 (21:09 +0200)]
Add more docstrings.

10 years agoImport negative timezone fix from hg-git.
Jelmer Vernooij [Tue, 19 May 2009 18:54:53 +0000 (20:54 +0200)]
Import negative timezone fix from hg-git.

10 years agoFix open modes of e.g. packs to be binary.
Jelmer Vernooij [Tue, 19 May 2009 18:32:48 +0000 (20:32 +0200)]
Fix open modes of e.g. packs to be binary.

10 years agoSupport the encoding field in commit messages.
Jelmer Vernooij [Tue, 19 May 2009 18:26:40 +0000 (20:26 +0200)]
Support the encoding field in commit messages.

10 years agoDon't let user specify lower flags bits, as they depend on the path name length.
Jelmer Vernooij [Tue, 19 May 2009 18:26:29 +0000 (20:26 +0200)]
Don't let user specify lower flags bits, as they depend on the path name length.

10 years agoDon't include lower part of flags in index interface.
Jelmer Vernooij [Tue, 19 May 2009 18:25:28 +0000 (20:25 +0200)]
Don't include lower part of flags in index interface.

10 years agoFix flags.
Jelmer Vernooij [Sat, 16 May 2009 18:23:20 +0000 (20:23 +0200)]
Fix flags.

10 years agoFix flags data in index.
Jelmer Vernooij [Sat, 16 May 2009 18:13:45 +0000 (20:13 +0200)]
Fix flags data in index.

10 years agoCope with float times.
Jelmer Vernooij [Sat, 16 May 2009 17:19:35 +0000 (19:19 +0200)]
Cope with float times.

10 years agoFix order of dev and ino.
Jelmer Vernooij [Sat, 16 May 2009 17:04:52 +0000 (19:04 +0200)]
Fix order of dev and ino.

10 years agoWrite index file SHA1s.
Jelmer Vernooij [Sat, 16 May 2009 16:29:20 +0000 (18:29 +0200)]
Write index file SHA1s.

10 years agoAdd SHA1Reader helper class.
Jelmer Vernooij [Sat, 16 May 2009 16:29:08 +0000 (18:29 +0200)]
Add SHA1Reader helper class.

10 years agoAdd function for checking submodules.
Jelmer Vernooij [Sat, 16 May 2009 16:28:47 +0000 (18:28 +0200)]
Add function for checking submodules.

10 years agoWhen there's nothing to push, don't push anything.
Jelmer Vernooij [Sat, 16 May 2009 15:58:49 +0000 (17:58 +0200)]
When there's nothing to push, don't push anything.

10 years agoSupport serializing tags.
Jelmer Vernooij [Sat, 16 May 2009 14:03:28 +0000 (16:03 +0200)]
Support serializing tags.

10 years agoFix time parsing.
Jelmer Vernooij [Sat, 16 May 2009 13:46:14 +0000 (15:46 +0200)]
Fix time parsing.

10 years agoUse StringIO to generate Text and Commit texts.
Jelmer Vernooij [Sat, 16 May 2009 13:38:58 +0000 (15:38 +0200)]
Use StringIO to generate Text and Commit texts.

10 years agoSimplify tag parsing.
Jelmer Vernooij [Sat, 16 May 2009 13:33:12 +0000 (15:33 +0200)]
Simplify tag parsing.

10 years agoSimplify tag parsing.
Jelmer Vernooij [Sat, 16 May 2009 13:29:36 +0000 (15:29 +0200)]
Simplify tag parsing.

10 years agoUse CheckExact for strings.
Jelmer Vernooij [Fri, 15 May 2009 15:35:03 +0000 (17:35 +0200)]
Use CheckExact for strings.

10 years agoattempt to fix some win32 issues; thanks to Alexander for pointing these out.
Jelmer Vernooij [Fri, 15 May 2009 15:21:31 +0000 (17:21 +0200)]
attempt to fix some win32 issues; thanks to Alexander for pointing these out.