jelmer/dulwich-libgit2.git
8 years agoAdd basic Index object based on libgit2. master
Jelmer Vernooij [Mon, 25 Oct 2010 23:11:45 +0000 (16:11 -0700)]
Add basic Index object based on libgit2.

8 years agoSupport linking against libgit2.
Jelmer Vernooij [Mon, 25 Oct 2010 22:25:24 +0000 (15:25 -0700)]
Support linking against libgit2.

8 years ago_objects: sorted_tree_items cleanup.
Dave Borowitz [Mon, 25 Oct 2010 19:45:24 +0000 (12:45 -0700)]
_objects: sorted_tree_items cleanup.

-Moved error handling to a label.
-Use PyMem_New/Free instead of malloc/free.
-Move variable declarations up.
-Eliminate unnecessary PyObject* for mode.

Change-Id: I5488abee2f1a609b3cef172963a83d66b9dda088
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
8 years agoSubclass TreeEntry in objects.py.
Dave Borowitz [Mon, 25 Oct 2010 19:45:12 +0000 (12:45 -0700)]
Subclass TreeEntry in objects.py.

This class logically belongs in objects.py, and this allows us to add
additional methods.

Change-Id: If5ed4fcd3b1e3c50c86c5d448fff9624cbf410cf
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
8 years agoMake TreeEntry a namedtuple for clarity.
Dave Borowitz [Mon, 25 Oct 2010 19:44:14 +0000 (12:44 -0700)]
Make TreeEntry a namedtuple for clarity.

This provides a backwards-compatible API with negligible memory and
runtime overhead, and is especially easier to use when dealing with
multiple TreeEntry objects in parallel.

For benchmarks and discussion, see:
https://lists.launchpad.net/dulwich-users/msg00234.html

Change-Id: Ief7f66642e8b8b6a3550e008999af71e9b4b5dcc
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
8 years agoSupport pseudo headers in patches.
Jelmer Vernooij [Sun, 24 Oct 2010 23:31:11 +0000 (16:31 -0700)]
Support pseudo headers in patches.

8 years agoMerge fix to correctly cope with no-op fetches in the server.
Jelmer Vernooij [Sun, 17 Oct 2010 02:31:07 +0000 (04:31 +0200)]
Merge fix to correctly cope with no-op fetches in the server.

8 years agoMerge addition of eof() and unread_pkt_line().
Jelmer Vernooij [Sun, 17 Oct 2010 02:28:10 +0000 (04:28 +0200)]
Merge addition of eof() and unread_pkt_line().

8 years agoAdd Tree.items().
Jelmer Vernooij [Sat, 16 Oct 2010 21:57:09 +0000 (23:57 +0200)]
Add Tree.items().

8 years agoStart on 0.7.0.
Jelmer Vernooij [Sat, 16 Oct 2010 17:50:20 +0000 (19:50 +0200)]
Start on 0.7.0.

8 years agoRelease 0.6.2. dulwich-0.6.2
Jelmer Vernooij [Sat, 16 Oct 2010 17:46:53 +0000 (19:46 +0200)]
Release 0.6.2.

8 years agoMerge some bare-repo related fixes from Dirk Neumann.
Jelmer Vernooij [Sat, 16 Oct 2010 16:09:45 +0000 (18:09 +0200)]
Merge some bare-repo related fixes from Dirk Neumann.

8 years agoMerge some bare-repo related fixes from Dirk Neumann.
Jelmer Vernooij [Sat, 16 Oct 2010 16:08:42 +0000 (18:08 +0200)]
Merge some bare-repo related fixes from Dirk Neumann.

8 years agoRemove old Fastimporter in favor of new python-fastimport-based import processor.
Jelmer Vernooij [Sat, 16 Oct 2010 16:01:05 +0000 (18:01 +0200)]
Remove old Fastimporter in favor of new python-fastimport-based import processor.

8 years agoTreat marks as strings internally.
Jelmer Vernooij [Tue, 5 Oct 2010 22:38:57 +0000 (00:38 +0200)]
Treat marks as strings internally.

8 years agoAdded unit tests for dulwich.object_store.tree_lookup_path.
Jeremy Whitlock [Tue, 5 Oct 2010 21:51:29 +0000 (23:51 +0200)]
Added unit tests for dulwich.object_store.tree_lookup_path.

* dulwich/tests/test_object_store.py
  (TreeLookupPathTests): This test case contains a few tests that ensure the
   tree_lookup_path function works as expected.

8 years agoHandle patches with more than one commit line.
Jelmer Vernooij [Tue, 5 Oct 2010 21:02:47 +0000 (23:02 +0200)]
Handle patches with more than one commit line.

8 years ago[Dulwich-users] [PATCH] Added unit tests for
Jeremy Whitlock [Tue, 5 Oct 2010 20:45:13 +0000 (22:45 +0200)]
[Dulwich-users] [PATCH] Added unit tests for
 dulwich.object_store.tree_lookup_path.* dulwich/tests/test_object_store.py
  (TreeLookupPathTests): This test case contains a few tests that ensure the
   tree_lookup_path function works as expected.

8 years agoAdd test for subject parsing in git_am_patch_split.
Jelmer Vernooij [Tue, 5 Oct 2010 20:44:41 +0000 (22:44 +0200)]
Add test for subject parsing in git_am_patch_split.

8 years agoserver: Correct short-circuiting operation for no-op fetches.
Dave Borowitz [Tue, 25 May 2010 18:48:09 +0000 (11:48 -0700)]
server: Correct short-circuiting operation for no-op fetches.

There are two distinct cases where determine_wants might return
"nothing":
 - The client may have finished its request, in which case it is
   expecting a 0-object pack.
 - We may be in the middle of a stateless RPC packfile negotiation
   request, in which case we should close the connection without writing
   a packfile.

This change distinguishes between these two cases by allowing
determine_wants to return either None, indicating that no pack should
be sent, or an empty iterator, indicating that an empty pack should be
sent.

Added a compat test for the no-op case that failed before.

Change-Id: Ia24f86cf8aa30d040eaf2f06a58e1d610cdeb32f

8 years agoAdd eof() and unread_pkt_line() methods to Protocol.
Dave Borowitz [Tue, 25 May 2010 18:08:14 +0000 (11:08 -0700)]
Add eof() and unread_pkt_line() methods to Protocol.

Change-Id: I2d64436952aee91aa4396a9dc2f028b98890343e

8 years agoCope with strnlen() not existing on Mac.
dak180 [Fri, 1 Oct 2010 00:34:50 +0000 (02:34 +0200)]
Cope with strnlen() not existing on Mac.

8 years agoFix exporting fastimport streams using python-fastimport.
Jelmer Vernooij [Sun, 12 Sep 2010 01:32:59 +0000 (03:32 +0200)]
Fix exporting fastimport streams using python-fastimport.

8 years agoUse python-fastimport.
Jelmer Vernooij [Sat, 11 Sep 2010 22:10:00 +0000 (00:10 +0200)]
Use python-fastimport.

8 years agoMissingObjectFinder: minor cleanup: 80 chars, others.
David Borowitz [Thu, 26 Aug 2010 00:31:55 +0000 (02:31 +0200)]
MissingObjectFinder: minor cleanup: 80 chars, others.

8 years agoBare-repo related changes: have no index and bare=true in config.
Dirk [Sat, 21 Aug 2010 17:29:22 +0000 (17:29 +0000)]
Bare-repo related changes: have no index and bare=true in config.

8 years agoProvide strnlen() on mingw32 which doesn't have it.
Hans Kolek [Tue, 17 Aug 2010 22:48:23 +0000 (00:48 +0200)]
Provide strnlen() on mingw32 which doesn't have it.

8 years agoMake sure TestCase.setUp() is called, remove unused import.
Jelmer Vernooij [Wed, 11 Aug 2010 21:57:35 +0000 (23:57 +0200)]
Make sure TestCase.setUp() is called, remove unused import.

8 years agoUse real in-memory objects rather than stubs for server tests.
Dave Borowitz [Wed, 11 Aug 2010 21:45:30 +0000 (23:45 +0200)]
Use real in-memory objects rather than stubs for server tests.

8 years agoAdd utility functions to DictRefsContainer, useful for tests.
Dave Borowitz [Wed, 11 Aug 2010 21:45:03 +0000 (23:45 +0200)]
Add utility functions to DictRefsContainer, useful for tests.

8 years agoAllow overwriting id property of objects in test utils.
Dave Borowitz [Wed, 11 Aug 2010 21:44:42 +0000 (23:44 +0200)]
Allow overwriting id property of objects in test utils.

8 years agoDelegate SHA peeling to the object store.
Dave Borowitz [Sun, 8 Aug 2010 22:34:06 +0000 (00:34 +0200)]
Delegate SHA peeling to the object store.

Once a ref is resolved to a SHA, we no longer need access to the
RefsContainer, so the ObjectStore can do all the work.

8 years agoRefactor some of dulwich.tests.compat.server_utils.
Dave Borowitz [Sun, 8 Aug 2010 19:34:23 +0000 (21:34 +0200)]
Refactor some of dulwich.tests.compat.server_utils.

8 years agoserver: Explicitly specify allowed protocol commands.
Dave Borowitz [Sun, 8 Aug 2010 19:32:08 +0000 (21:32 +0200)]
server: Explicitly specify allowed protocol commands.

This means callers do not have to check the return value of
read_proto_line themselves, avoiding lots of duplicate code like
"if command not in (...): raise".

8 years agoadd trivial tests for DiskObjectStore.add_{thin_,}pack.
Jelmer Vernooij [Sun, 8 Aug 2010 19:09:01 +0000 (21:09 +0200)]
add trivial tests for DiskObjectStore.add_{thin_,}pack.

8 years agoNew dulwich.pack.MemoryPackIndex class.
Jelmer Vernooij [Sun, 8 Aug 2010 17:16:18 +0000 (19:16 +0200)]
New dulwich.pack.MemoryPackIndex class.

8 years agoFix typo.
Jelmer Vernooij [Sun, 8 Aug 2010 16:35:49 +0000 (18:35 +0200)]
Fix typo.

8 years agoPackIndex1 and PackIndex2 now subclass FilePackIndex, which is
Jelmer Vernooij [Sun, 8 Aug 2010 16:18:18 +0000 (18:18 +0200)]
PackIndex1 and PackIndex2 now subclass FilePackIndex, which is
itself a subclass of PackIndex.

8 years agoserver: Factor out _split_proto_line as a global.
Dave Borowitz [Sun, 8 Aug 2010 15:12:48 +0000 (17:12 +0200)]
server: Factor out _split_proto_line as a global.

8 years agoClean up docstrings in dulwich.protocol.
Dave Borowitz [Sun, 8 Aug 2010 15:11:39 +0000 (17:11 +0200)]
Clean up docstrings in dulwich.protocol.

8 years agoUpdate NEWS.
Jelmer Vernooij [Sun, 8 Aug 2010 15:09:52 +0000 (17:09 +0200)]
Update NEWS.

8 years agoStandardize quote delimiters in test_protocol.
Dave Borowitz [Sun, 8 Aug 2010 15:06:38 +0000 (17:06 +0200)]
Standardize quote delimiters in test_protocol.

8 years agoUse run_git_or_fail in compat tests wherever possible.
Dave Borowitz [Sun, 8 Aug 2010 15:06:01 +0000 (17:06 +0200)]
Use run_git_or_fail in compat tests wherever possible.

This reduces code and has the added side effect of suppressing lots of
unnecessary git output.

8 years agoInitial work on a fastimport parser.
Jelmer Vernooij [Tue, 3 Aug 2010 21:57:45 +0000 (23:57 +0200)]
Initial work on a fastimport parser.

This badly needs tests, and only implements a tiny subset of fastimport. The
rest will be up later this week.

8 years agoFix tests with testtools installed.
Jelmer Vernooij [Mon, 2 Aug 2010 20:29:35 +0000 (22:29 +0200)]
Fix tests with testtools installed.

8 years agoMerge support for side-band-64k.
Jelmer Vernooij [Mon, 2 Aug 2010 16:45:51 +0000 (18:45 +0200)]
Merge support for side-band-64k.

8 years agoCompat tests for servers with and without side-band-64k.
Dave Borowitz [Tue, 18 May 2010 19:46:49 +0000 (12:46 -0700)]
Compat tests for servers with and without side-band-64k.

Change-Id: I0b4c2766f866e7f1030bd75b7e187ee02be894a6

8 years agoAdd side-band-64k support to ReceivePackHandler.
Dave Borowitz [Tue, 18 May 2010 19:43:57 +0000 (12:43 -0700)]
Add side-band-64k support to ReceivePackHandler.

To do this, we add a BufferedPktLineWriter class that buffers writes
independently of pkt-lines. This class is used to wrap the pkt-lines of
the status report inside a longer pkt-line written to the sideband.

Change-Id: Ie5d9294e66d4174e2fe111a8424651a70869a629

8 years agoMore flexible version checking for compat tests.
Dave Borowitz [Sun, 16 May 2010 22:11:37 +0000 (15:11 -0700)]
More flexible version checking for compat tests.

We now check up to 4 components of the version number (e.g. 1.7.0.2).
Reorganized to make future changes easier. Added tests.

Change-Id: Id2f0bd5ba01cb77724d399d9c3a11af695eb2707

8 years agoTweak server handler injection.
Dave Borowitz [Tue, 18 May 2010 19:42:42 +0000 (12:42 -0700)]
Tweak server handler injection.

Now the server stores a default set of handlers rather than None if
none were passed in. Additionally, callers no longer have to copy
DEFAULT_HANDLERS; the copy is done in the TCPGitServer constructor, and
the dict is updated with any custom handlers.

Change-Id: If617630346bcb57074ec746d8e66d43ba1e00be5

8 years agoserver: Change capabilities methods to classmethods.
Dave Borowitz [Tue, 18 May 2010 19:40:56 +0000 (12:40 -0700)]
server: Change capabilities methods to classmethods.

This makes more sense as currently the correct way to make a handler
with different capabilities is to override this method in a subclass.

Change-Id: Iff42b1c6fdd3a2578acd21896621ada9a2b4f1ac

8 years agoFactor out a function to convert a line to a pkt-line.
Dave Borowitz [Fri, 14 May 2010 01:22:07 +0000 (18:22 -0700)]
Factor out a function to convert a line to a pkt-line.

Change-Id: I11bd6c47a2434d371d7e15560fae94268cba260a

8 years agoFactor out _report_status in ReceivePackHandler.
Dave Borowitz [Fri, 14 May 2010 01:54:22 +0000 (18:54 -0700)]
Factor out _report_status in ReceivePackHandler.

Change-Id: Ib0829d6a8817518625a1a3f06392d77f04862c2d

8 years agotest_web: Ensure cache headers are set correctly.
Dave Borowitz [Sun, 1 Aug 2010 02:01:57 +0000 (04:01 +0200)]
test_web: Ensure cache headers are set correctly.

8 years agoAdd more tests for web.py.
Dave Borowitz [Sun, 1 Aug 2010 02:01:21 +0000 (04:01 +0200)]
Add more tests for web.py.

All functions now have coverage. Also fixed one small bug discovered in
testing.

8 years agotest/utils: Return non-__slot__ subclasses from make_object.
Dave Borowitz [Sun, 1 Aug 2010 02:00:45 +0000 (04:00 +0200)]
test/utils: Return non-__slot__ subclasses from make_object.

8 years agotest_web: Simplify assertions about Content-Type.
Dave Borowitz [Sun, 1 Aug 2010 02:00:18 +0000 (04:00 +0200)]
test_web: Simplify assertions about Content-Type.

8 years agotest_web: Use MemoryRepo for tests instead of complex tests.
Dave Borowitz [Sun, 1 Aug 2010 01:59:39 +0000 (03:59 +0200)]
test_web: Use MemoryRepo for tests instead of complex tests.

8 years agoCorrect PSF copyright on web.date_time_string.
Dave Borowitz [Sun, 1 Aug 2010 01:59:16 +0000 (03:59 +0200)]
Correct PSF copyright on web.date_time_string.

8 years agoweb: Distinguish between missing files and read errors.
Dave Borowitz [Sun, 1 Aug 2010 01:58:21 +0000 (03:58 +0200)]
web: Distinguish between missing files and read errors.

Missing files now return a 404, whereas read errors return a 500.

We now do not need to log 404s and 403s, since they will typically be
logged by the WSGI container and the root causes are fairly unambiguous.

8 years agoFix iter_tree_contents iteration.
Dave Borowitz [Sun, 1 Aug 2010 01:57:19 +0000 (03:57 +0200)]
Fix iter_tree_contents iteration.

8 years agoobject_store: Include subtrees in iteration.
Dave Borowitz [Fri, 30 Jul 2010 11:09:12 +0000 (13:09 +0200)]
object_store: Include subtrees in iteration.

8 years agoobject_store: Make iter_tree_contents depth-first.
Dave Borowitz [Fri, 30 Jul 2010 11:08:46 +0000 (13:08 +0200)]
object_store: Make iter_tree_contents depth-first.

This mimics the behavior of os.walk as well as common tools like find
and ls -R.

Memory usage may also be better, as directory trees tend to have a
higher branching factor than depth. (Note that the overhead of Python
stack frames may make this not true in many cases, and I haven't run
any benchmarks.)

8 years agoAdd docstrings for parse_timezone and format_timezone.
Jelmer Vernooij [Tue, 27 Jul 2010 18:08:35 +0000 (20:08 +0200)]
Add docstrings for parse_timezone and format_timezone.

8 years agoAdd Blob.__slots__.
Jelmer Vernooij [Tue, 27 Jul 2010 18:06:34 +0000 (20:06 +0200)]
Add Blob.__slots__.

8 years agopack: Add ThinPackData.from_file.
Dave Borowitz [Mon, 26 Jul 2010 17:52:37 +0000 (19:52 +0200)]
pack: Add ThinPackData.from_file.

8 years agoUse GitFile when modifying packed-refs in tests.
Dave Borowitz [Mon, 26 Jul 2010 17:44:15 +0000 (19:44 +0200)]
Use GitFile when modifying packed-refs in tests.

8 years agoDon't error when creating GitFiles with the default mode.
Dave Borowitz [Mon, 26 Jul 2010 17:43:17 +0000 (19:43 +0200)]
Don't error when creating GitFiles with the default mode.

8 years agoAdd trivial test for write_pack_header.
Jelmer Vernooij [Mon, 26 Jul 2010 17:41:51 +0000 (19:41 +0200)]
Add trivial test for write_pack_header.

8 years agopack: Factor out write_pack_header.
Dave Borowitz [Mon, 26 Jul 2010 17:34:36 +0000 (19:34 +0200)]
pack: Factor out write_pack_header.

8 years agoweb: Use write() callable for output.
Dave Borowitz [Mon, 26 Jul 2010 17:17:50 +0000 (19:17 +0200)]
web: Use write() callable for output.

PEP 333 specifies that start_response must return a write() callable
for compatibility with legacy stream-based APIs, which includes the
tunneled git protocol code.

8 years agoweb: Handle empty-string CONTENT_LENGTH.
Dave Borowitz [Mon, 26 Jul 2010 17:17:27 +0000 (19:17 +0200)]
web: Handle empty-string CONTENT_LENGTH.

8 years agotest_objects: Remove unnecessary file writing.
Dave Borowitz [Mon, 26 Jul 2010 17:16:11 +0000 (19:16 +0200)]
test_objects: Remove unnecessary file writing.

8 years agoUse slots.
Jelmer Vernooij [Fri, 23 Jul 2010 14:26:58 +0000 (16:26 +0200)]
Use slots.

8 years agoStart on 0.6.2.
Jelmer Vernooij [Thu, 22 Jul 2010 11:46:46 +0000 (13:46 +0200)]
Start on 0.6.2.

8 years agorelease 0.6.1. dulwich-0.6.1
Jelmer Vernooij [Thu, 22 Jul 2010 11:42:50 +0000 (13:42 +0200)]
release 0.6.1.

8 years agoSome restructuredText fixes.
Jelmer Vernooij [Wed, 21 Jul 2010 13:17:59 +0000 (15:17 +0200)]
Some restructuredText fixes.

8 years agoUse 0.6.1 version number everywhere.
Jelmer Vernooij [Wed, 21 Jul 2010 12:01:51 +0000 (14:01 +0200)]
Use 0.6.1 version number everywhere.

8 years agoMove dul-web's main functionality to web.
Dave Borowitz [Wed, 21 Jul 2010 11:34:59 +0000 (13:34 +0200)]
Move dul-web's main functionality to web.

8 years agoMove reference WSGI handler to web.py.
Dave Borowitz [Wed, 21 Jul 2010 11:34:28 +0000 (13:34 +0200)]
Move reference WSGI handler to web.py.

This is conditionally defined only if wsgiref is available for python
2.4 compatibility. The failure mode is still the same: if wsgiref is not
installed, users can import the web module but not run dul-web.

8 years agoMake dul-daemon a trivial wrapper around server functionality.
Dave Borowitz [Wed, 21 Jul 2010 11:33:38 +0000 (13:33 +0200)]
Make dul-daemon a trivial wrapper around server functionality.

8 years agoUse HTTPGitRequestHandler for test_web.
Dave Borowitz [Wed, 21 Jul 2010 11:32:54 +0000 (13:32 +0200)]
Use HTTPGitRequestHandler for test_web.

This quiets up the tests by keeping logging output from going to stderr.
It is still trapped by nose and printed on failure, so this should not
hurt debugging significantly.

8 years agotest_file.GitFileTests.test_abort_close_removed: close lockfile before removing it
Tay Ray Chuan [Tue, 20 Jul 2010 17:22:07 +0000 (19:22 +0200)]
test_file.GitFileTests.test_abort_close_removed: close lockfile before removing it

Prevents a WindowsError when calling os.remove() on the lockfile.

8 years agotest_repository.DiskRefsContainerTests.test_remove_packed_without_peeled: prevent...
Tay Ray Chuan [Tue, 20 Jul 2010 17:21:09 +0000 (19:21 +0200)]
test_repository.DiskRefsContainerTests.test_remove_packed_without_peeled: prevent '\r' on windows

By writing to the file in binary mode, we stop python from munging the
packed-refs file with '\r'-style line endings on Windows.

8 years agodulwich/_objects.c
Tay Ray Chuan [Tue, 20 Jul 2010 17:18:00 +0000 (19:18 +0200)]
dulwich/_objects.c

8 years agoUse --quiet when initializing git repositories in compat tests.
Jelmer Vernooij [Tue, 29 Jun 2010 23:36:33 +0000 (01:36 +0200)]
Use --quiet when initializing git repositories in compat tests.

8 years agoUse self.store rather than explicitly creating a DiskObjectStore.
Jelmer Vernooij [Mon, 28 Jun 2010 22:48:54 +0000 (00:48 +0200)]
Use self.store rather than explicitly creating a DiskObjectStore.

8 years agodulwich.pack.write_pack_index_v{1,2} now take a file-like object
Jelmer Vernooij [Mon, 28 Jun 2010 21:17:03 +0000 (23:17 +0200)]
dulwich.pack.write_pack_index_v{1,2} now take a file-like object
rather than a filename.

8 years agoAdd PackBasedObjectStore.pack_loose_objects().
Jelmer Vernooij [Mon, 28 Jun 2010 20:19:22 +0000 (22:19 +0200)]
Add PackBasedObjectStore.pack_loose_objects().

8 years agoAllow overriding paths to executables in GitSSHClient.
Jelmer Vernooij [Mon, 28 Jun 2010 19:40:01 +0000 (21:40 +0200)]
Allow overriding paths to executables in GitSSHClient.

8 years agoMerge Augie's GitClient refactoring.
Jelmer Vernooij [Mon, 28 Jun 2010 16:44:11 +0000 (18:44 +0200)]
Merge Augie's GitClient refactoring.

8 years agocompat.test_client: test SubprocessGitClient and SSHGitClient
Augie Fackler [Fri, 14 May 2010 17:47:09 +0000 (12:47 -0500)]
compat.test_client: test SubprocessGitClient and SSHGitClient

Change-Id: I905e4af9df72b45cc01366fc858f00cedaec61a0

8 years agoclient: refactor GitClient subclasses to enhance code commonality
Augie Fackler [Fri, 14 May 2010 17:47:07 +0000 (12:47 -0500)]
client: refactor GitClient subclasses to enhance code commonality

This makes GitClient abstract, and the concrete subclasses now share
all substantive implementation code with their superclass. This makes
the subclasses behave more uniformly, and makes testing the client
implementations easier.

Change-Id: I0a459e0e33afb54f3ba352dc66e7429b0f26c9d4

8 years agoparse_tree: Fix tests for pure-python implementation.
Jelmer Vernooij [Sat, 26 Jun 2010 22:01:55 +0000 (00:01 +0200)]
parse_tree: Fix tests for pure-python implementation.

8 years agoSupport Tree.iteritems() returning an iterator rather than a list.
Jelmer Vernooij [Sat, 26 Jun 2010 21:59:24 +0000 (23:59 +0200)]
Support Tree.iteritems() returning an iterator rather than a list.

8 years agoRemove some unused imports.
Jelmer Vernooij [Thu, 17 Jun 2010 21:38:46 +0000 (23:38 +0200)]
Remove some unused imports.

8 years agoMerge logging support in the web server.
Jelmer Vernooij [Thu, 17 Jun 2010 13:54:14 +0000 (15:54 +0200)]
Merge logging support in the web server.

8 years agoAdd simple logging to HTTP server.
Dave Borowitz [Tue, 11 May 2010 21:03:29 +0000 (14:03 -0700)]
Add simple logging to HTTP server.

Change-Id: I696bf5dcc05c86e115a85828be5b88d4ed3f2b21

8 years agoAdd logging utilities and server logging.
Dave Borowitz [Tue, 11 May 2010 19:04:54 +0000 (12:04 -0700)]
Add logging utilities and server logging.

The logging utilities, including default setup, live in log_utils.py.
Callers do not need to import the logging module if all they need is
getLogger.

Change-Id: I5364ae2a2524397b0d13cc727e3f031e3f5adecf

8 years agoFix tests.
Jelmer Vernooij [Tue, 15 Jun 2010 16:18:57 +0000 (18:18 +0200)]
Fix tests.