Jelmer Vernooij [Thu, 11 Feb 2010 21:50:07 +0000 (22:50 +0100)]
Make base directories variable global.
Jelmer Vernooij [Thu, 11 Feb 2010 21:42:46 +0000 (22:42 +0100)]
Move do_commit() and has_index() from Repo to BaseRepo.
Jelmer Vernooij [Thu, 11 Feb 2010 21:31:58 +0000 (22:31 +0100)]
Add BaseRepo.put_named_file.
Jelmer Vernooij [Thu, 11 Feb 2010 20:51:24 +0000 (21:51 +0100)]
merge improvements from Dave to the server, file locking and repository abstraction.
Dave Borowitz [Mon, 8 Feb 2010 23:19:19 +0000 (15:19 -0800)]
Add tests for HTTP server.
These are unittests for the functionality in web.py, not end-to-end integration
tests. Fixed two bugs where the smart HTTP handlers wouldn't correctly forbid
unknown RPC services. Refactored for testing by injecting a dict of services
into smart HTTP handlers and rewriting tag-peeling code to not depend on objects
having a particular type.
Change-Id: I42a0ed89781687a655b5803103eb21c1b62cee83
Dave Borowitz [Tue, 2 Feb 2010 20:38:04 +0000 (12:38 -0800)]
Fix flaky/failing tests introduced in the last few changes.
Change-Id: Ie87a60d970638c4682970a9b4f47d8240de49532
Dave Borowitz [Mon, 1 Feb 2010 22:43:27 +0000 (14:43 -0800)]
Add smart HTTP support to dul-web.
Change-Id: I6ddfe213707f9ccb2d377ac9813856b1f4fe90dc
Dave Borowitz [Thu, 28 Jan 2010 20:47:51 +0000 (12:47 -0800)]
Working pass at an HTTP server, only dumb at the moment
Change-Id: I92c883b2274252ad83bc044f87fc8608b006b6ab
Dave Borowitz [Thu, 28 Jan 2010 20:42:16 +0000 (12:42 -0800)]
Improve ref handling.
DiskRefsConatiner now handles packed-refs transparently, and
understands both the peeled and unpeeled packed-refs formats
correctly. Ref cycles are handled by giving up after reaching an
arbitrary recurion depth.
Includes tests for all new functionality.
Change-Id: I742117d7a2b99cbb52ee2a9d3a625037844c55b6
Dave Borowitz [Tue, 26 Jan 2010 17:51:29 +0000 (09:51 -0800)]
Improve server protocol error handling; fix flush-pkt handling.
Change-Id: Ib3631cd3167071f555113f62d80bc63bf02acdad
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
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.
Dave Borowitz [Thu, 21 Jan 2010 23:00:30 +0000 (15:00 -0800)]
Clarify GitFile docstrings and disallow r+w modes.
Change-Id: I9a23ede0d7a3c93b0eb6c55aebf487a34d7cf875
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
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
Jelmer Vernooij [Mon, 8 Feb 2010 14:44:50 +0000 (15:44 +0100)]
Implement Repo.get_config().
Jelmer Vernooij [Mon, 8 Feb 2010 14:43:37 +0000 (15:43 +0100)]
Fix two tests with the same name.
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.
Jelmer Vernooij [Mon, 25 Jan 2010 09:10:07 +0000 (10:10 +0100)]
Add --without-speedups option.
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.
Jelmer Vernooij [Thu, 21 Jan 2010 01:11:41 +0000 (14:11 +1300)]
Support custom fields in commits.
Jelmer Vernooij [Thu, 21 Jan 2010 00:56:19 +0000 (13:56 +1300)]
Add basic test for parsing commit objects.
Jelmer Vernooij [Sat, 16 Jan 2010 04:11:59 +0000 (17:11 +1300)]
Fix fetch() without determine_wants argument.
Jelmer Vernooij [Sun, 3 Jan 2010 15:11:46 +0000 (16:11 +0100)]
Release 0.4.1.
Jelmer Vernooij [Mon, 7 Dec 2009 13:51:49 +0000 (14:51 +0100)]
Merge faster pure-Python Tree parser.
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
Jelmer Vernooij [Sat, 28 Nov 2009 19:23:43 +0000 (20:23 +0100)]
Fix commit id, thanks Bryan Bishop.
Jelmer Vernooij [Sat, 28 Nov 2009 19:20:10 +0000 (20:20 +0100)]
Remove trailing whitespace.
Jelmer Vernooij [Sun, 25 Oct 2009 21:23:38 +0000 (14:23 -0700)]
merge patch from durin42 to use setuptools if possible.
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.
Jelmer Vernooij [Sat, 24 Oct 2009 21:59:01 +0000 (14:59 -0700)]
Allow time-less tags.
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.
Jelmer Vernooij [Sun, 18 Oct 2009 15:06:44 +0000 (17:06 +0200)]
Fix call to get_graph_walker.
Jelmer Vernooij [Sun, 18 Oct 2009 14:55:07 +0000 (16:55 +0200)]
Add convenience functions for fetching objects.
Jelmer Vernooij [Sat, 10 Oct 2009 10:33:32 +0000 (12:33 +0200)]
Support diffstats in git am-style patches.
Jelmer Vernooij [Sat, 10 Oct 2009 00:26:15 +0000 (02:26 +0200)]
Add function for writing the diff between two files.
Jelmer Vernooij [Sat, 10 Oct 2009 00:06:44 +0000 (02:06 +0200)]
Add function for writing diff file headers.
Jelmer Vernooij [Fri, 9 Oct 2009 23:28:45 +0000 (01:28 +0200)]
Add functionality for writing patches in dulwich.patch.
Jelmer Vernooij [Wed, 7 Oct 2009 13:44:53 +0000 (15:44 +0200)]
Add ObjectStore.tree_changes().
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.
Jelmer Vernooij [Wed, 7 Oct 2009 09:29:12 +0000 (11:29 +0200)]
Start working on 0.4.1.
Jelmer Vernooij [Wed, 7 Oct 2009 09:28:17 +0000 (11:28 +0200)]
release 0.4.0.
Ricardo Salveti [Tue, 6 Oct 2009 13:47:16 +0000 (15:47 +0200)]
Tutorial 1-initial-commit.txt: should also import parse_timezone
Jelmer Vernooij [Wed, 30 Sep 2009 14:01:01 +0000 (16:01 +0200)]
Add rst2html variable.
Jelmer Vernooij [Sat, 26 Sep 2009 09:10:01 +0000 (11:10 +0200)]
Merge tutorial from Hervé.
Hervé Cauwelier [Mon, 21 Sep 2009 20:36:17 +0000 (22:36 +0200)]
tutorial: finish documenting all tree operations
Hervé Cauwelier [Thu, 17 Sep 2009 20:27:05 +0000 (22:27 +0200)]
tutorial: second chapter about changing a file
Hervé Cauwelier [Wed, 16 Sep 2009 20:26:03 +0000 (22:26 +0200)]
tutorial: move to compiling a global document
Hervé Cauwelier [Wed, 16 Sep 2009 08:34:27 +0000 (10:34 +0200)]
fix docutils syntax and a few typos
Hervé Cauwelier [Tue, 15 Sep 2009 20:28:14 +0000 (22:28 +0200)]
start a tutorial of first steps
Jelmer Vernooij [Mon, 14 Sep 2009 13:43:21 +0000 (15:43 +0200)]
Update docstring for Index.__getitem__.
Jelmer Vernooij [Sun, 13 Sep 2009 15:01:07 +0000 (17:01 +0200)]
Remove mention of no write support.
Jelmer Vernooij [Sat, 12 Sep 2009 21:50:23 +0000 (23:50 +0200)]
Merge Windows fix from Abderrahim.
Jelmer Vernooij [Thu, 10 Sep 2009 13:14:38 +0000 (15:14 +0200)]
Merge server fixes from Roland.
Roland Mas [Thu, 10 Sep 2009 12:30:34 +0000 (14:30 +0200)]
Added missing ACK to protocol
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
Jelmer Vernooij [Tue, 8 Sep 2009 12:45:38 +0000 (14:45 +0200)]
Add proper error message when server hangs up.
Jelmer Vernooij [Tue, 8 Sep 2009 12:41:59 +0000 (14:41 +0200)]
Update docstrings, skip extra data in indexes (for now).
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
Jelmer Vernooij [Sun, 9 Aug 2009 11:27:32 +0000 (13:27 +0200)]
Clarify that C modules should be optional.
Jelmer Vernooij [Wed, 29 Jul 2009 14:31:57 +0000 (16:31 +0200)]
Clarify docstring.
Jelmer Vernooij [Wed, 29 Jul 2009 14:25:42 +0000 (16:25 +0200)]
merge trivial fixes from Abderrahim.
Abderrahim Kitouni [Wed, 29 Jul 2009 13:34:45 +0000 (14:34 +0100)]
create_delta: correctly write opcode for equal
Abderrahim Kitouni [Tue, 28 Jul 2009 14:31:07 +0000 (15:31 +0100)]
ensure a tree is parsed before calculating its length
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.
Jelmer Vernooij [Fri, 24 Jul 2009 08:42:58 +0000 (10:42 +0200)]
Use binascii.{unhexlify,hexlify}. Thanks to Ronny for the hint.
Jelmer Vernooij [Thu, 23 Jul 2009 18:31:52 +0000 (20:31 +0200)]
start working on 0.3.4.
Jelmer Vernooij [Thu, 23 Jul 2009 18:28:29 +0000 (20:28 +0200)]
Release 0.3.3
Jelmer Vernooij [Thu, 23 Jul 2009 13:26:16 +0000 (15:26 +0200)]
Implement Tree.__len__.
Jelmer Vernooij [Wed, 22 Jul 2009 19:04:45 +0000 (21:04 +0200)]
Merge fixes from abderrahim.
Abderrahim Kitouni [Fri, 17 Jul 2009 20:29:08 +0000 (21:29 +0100)]
Return the offset correctly from write_pack_object
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)
Abderrahim Kitouni [Sat, 11 Jul 2009 14:23:51 +0000 (15:23 +0100)]
Allow pushing a repository containing submodules
Jelmer Vernooij [Mon, 13 Jul 2009 11:14:56 +0000 (13:14 +0200)]
remove empty directories.
Jelmer Vernooij [Wed, 8 Jul 2009 21:33:45 +0000 (23:33 +0200)]
Implement ShaFile.__hash__.
Jelmer Vernooij [Tue, 16 Jun 2009 15:55:35 +0000 (17:55 +0200)]
More docstrings, test coverage.
Jelmer Vernooij [Tue, 16 Jun 2009 14:56:53 +0000 (16:56 +0200)]
Add tests for dulwich.index.write_cache_time.
Jelmer Vernooij [Tue, 16 Jun 2009 14:56:42 +0000 (16:56 +0200)]
Add command for generating coverage-annotated files.
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.
Jelmer Vernooij [Tue, 9 Jun 2009 20:53:03 +0000 (22:53 +0200)]
Implement ShaFile.__ne__.
Ronald Blaschke [Sat, 30 May 2009 23:30:11 +0000 (01:30 +0200)]
Fix sentinels.
Jelmer Vernooij [Wed, 27 May 2009 08:15:45 +0000 (10:15 +0200)]
Add more tests.
Jelmer Vernooij [Wed, 27 May 2009 07:55:27 +0000 (09:55 +0200)]
Don't use just the fact that the objects directory exists.
Jelmer Vernooij [Wed, 20 May 2009 15:34:52 +0000 (17:34 +0200)]
Start on 0.3.3.
Jelmer Vernooij [Wed, 20 May 2009 15:33:18 +0000 (17:33 +0200)]
release 0.3.2
Jelmer Vernooij [Tue, 19 May 2009 20:30:50 +0000 (22:30 +0200)]
Fix commit_index.
Jelmer Vernooij [Tue, 19 May 2009 20:21:57 +0000 (22:21 +0200)]
Add more docstrings.
Jelmer Vernooij [Tue, 19 May 2009 19:57:16 +0000 (21:57 +0200)]
Add more docstrings.
Jelmer Vernooij [Tue, 19 May 2009 19:25:21 +0000 (21:25 +0200)]
Add tests for cleanup_mode.
Jelmer Vernooij [Tue, 19 May 2009 19:09:14 +0000 (21:09 +0200)]
Add more docstrings.
Jelmer Vernooij [Tue, 19 May 2009 18:54:53 +0000 (20:54 +0200)]
Import negative timezone fix from hg-git.
Jelmer Vernooij [Tue, 19 May 2009 18:32:48 +0000 (20:32 +0200)]
Fix open modes of e.g. packs to be binary.
Jelmer Vernooij [Tue, 19 May 2009 18:26:40 +0000 (20:26 +0200)]
Support the encoding field in commit messages.
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.
Jelmer Vernooij [Tue, 19 May 2009 18:25:28 +0000 (20:25 +0200)]
Don't include lower part of flags in index interface.
Jelmer Vernooij [Sat, 16 May 2009 18:23:20 +0000 (20:23 +0200)]
Fix flags.
Jelmer Vernooij [Sat, 16 May 2009 18:13:45 +0000 (20:13 +0200)]
Fix flags data in index.
Jelmer Vernooij [Sat, 16 May 2009 17:19:35 +0000 (19:19 +0200)]
Cope with float times.
Jelmer Vernooij [Sat, 16 May 2009 17:04:52 +0000 (19:04 +0200)]
Fix order of dev and ino.
Jelmer Vernooij [Sat, 16 May 2009 16:29:20 +0000 (18:29 +0200)]
Write index file SHA1s.