Jelmer Vernooij [Tue, 24 Apr 2012 20:16:53 +0000 (22:16 +0200)]
Rename .bzrignore to .gitignore.
Nix [Tue, 24 Apr 2012 20:15:59 +0000 (22:15 +0200)]
Support DESTDIR in the Makefile.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Thu, 19 Apr 2012 23:46:29 +0000 (01:46 +0200)]
_pack.c: Check for NULL return from Py_BuildValue.
Jelmer Vernooij [Thu, 19 Apr 2012 23:42:28 +0000 (01:42 +0200)]
_pack.c: Consistently use tabs for indentation.
Jelmer Vernooij [Thu, 19 Apr 2012 10:48:13 +0000 (12:48 +0200)]
_objects.c: Cope with sha_to_pyhex returning NULL.
Thanks to Lawrence D'Oliveiro for pointing this out.
Jelmer Vernooij [Mon, 2 Apr 2012 10:37:42 +0000 (12:37 +0200)]
Make index entry tests a little bit less strict, to cope with
slightly different behaviour on various platforms.
Jelmer Vernooij [Mon, 2 Apr 2012 10:29:11 +0000 (12:29 +0200)]
Remove explicit testing of uid and gid in tests of index files.
These tend to be the cause of failures on various systems, they're
not as predictable as we were hoping.
Alex Holmes [Sun, 1 Apr 2012 00:32:55 +0000 (01:32 +0100)]
Handle None elements in lists of TreeChange objects
The docstring of diff_tree.tree_changes_for_merge reports that it yields
lists of TreeChange objects, and that "An element may be None...".
Jelmer Vernooij [Thu, 29 Mar 2012 13:35:28 +0000 (15:35 +0200)]
dulwich.__init__ no longer imports client, protocol, repo and
server modules.
Jelmer Vernooij [Thu, 29 Mar 2012 13:34:51 +0000 (15:34 +0200)]
Start on 0.8.6.
Jelmer Vernooij [Thu, 29 Mar 2012 13:30:55 +0000 (15:30 +0200)]
Release 0.8.5.
Jelmer Vernooij [Thu, 29 Mar 2012 00:21:54 +0000 (02:21 +0200)]
Be a little bit strict about OS behaviour in index tests.
Should fix the tests on Debian GNU/kFreeBSD.
Jelmer Vernooij [Wed, 28 Mar 2012 20:42:25 +0000 (22:42 +0200)]
Avoid use of 'with' in dulwich.index, fixes compatibility with python < 2.5.
Jelmer Vernooij [Wed, 28 Mar 2012 12:08:35 +0000 (14:08 +0200)]
Start on 0.8.5.
Jelmer Vernooij [Wed, 28 Mar 2012 12:05:50 +0000 (14:05 +0200)]
Release 0.8.4.
Jelmer Vernooij [Mon, 26 Mar 2012 21:16:25 +0000 (23:16 +0200)]
objects: Fix default type of Commit.extra.
Jelmer Vernooij [Mon, 26 Mar 2012 21:16:03 +0000 (23:16 +0200)]
client: Fix check for 'report-status' capability.
Jelmer Vernooij [Wed, 21 Mar 2012 19:27:22 +0000 (20:27 +0100)]
Merge addition of dulwich.index.build_index_from_tree from milki.
Jelmer Vernooij [Mon, 19 Mar 2012 23:44:54 +0000 (00:44 +0100)]
Merge fix from kankri to reset environment variables during tests, to avoid
test isolation leaks reading ~/.gitconfig.
Jelmer Vernooij [Mon, 19 Mar 2012 23:42:22 +0000 (00:42 +0100)]
Some refactoring, put all os.environ-cleaning functionality in TestCase.setUp().
Jelmer Vernooij [Mon, 19 Mar 2012 23:33:16 +0000 (00:33 +0100)]
merge trunk
Jelmer Vernooij [Tue, 13 Mar 2012 01:19:34 +0000 (02:19 +0100)]
Merge removal of unused variable.
codingtony [Tue, 13 Mar 2012 01:10:49 +0000 (21:10 -0400)]
removed unused variable
Jelmer Vernooij [Mon, 12 Mar 2012 14:49:51 +0000 (15:49 +0100)]
Remove more uses of deprecated assertEquals.
Jelmer Vernooij [Mon, 12 Mar 2012 11:20:43 +0000 (12:20 +0100)]
Merge gzip filter support.
Jelmer Vernooij [Mon, 12 Mar 2012 02:57:55 +0000 (03:57 +0100)]
Avoid using custom gzip module and incrementally parse.
David Blewett [Mon, 12 Mar 2012 02:38:56 +0000 (03:38 +0100)]
Added WSGI middleware to handle transparent gzip decoding
(dulwich.web.GunzipFilter).
Added WSGI middleware to handle ensuring the wsgi.input is correctly
limited to the Content-Length value (dulwich.web.LimitedInputFilter).
Added a factory function (dulwich.web.make_wsgi_chain) to create an
instance of HTTPGitApplication, wrapped in the WSGI middleware.
Added tests to ensure the gzip decoder functions correctly.
Jelmer Vernooij [Sun, 11 Mar 2012 02:01:52 +0000 (03:01 +0100)]
Use TestCase.assertEqual rather than TestCase.assertEquals.
Jelmer Vernooij [Sun, 4 Mar 2012 20:57:41 +0000 (21:57 +0100)]
Fix formatting timezones so that it is possible to regenerate --700 timezones.
Jelmer Vernooij [Sun, 4 Mar 2012 17:09:38 +0000 (18:09 +0100)]
Fix two pydoctor warnings.
Jelmer Vernooij [Sat, 3 Mar 2012 18:39:49 +0000 (19:39 +0100)]
Merge fix for parsing of invalid timezones from Jason R. Coombs.
Jason R. Coombs [Sat, 3 Mar 2012 03:11:38 +0000 (22:11 -0500)]
Expanded parse_timezone to accept double-negatives to be consistent with cgit implementation. Fixes #697828.
Jelmer Vernooij [Thu, 1 Mar 2012 20:25:03 +0000 (21:25 +0100)]
Merge patch from Sam Vilain to pass arguments to get_transport_and_path on to the constructor of the transport.
Sam Vilain [Thu, 1 Mar 2012 20:04:42 +0000 (12:04 -0800)]
Add support for client init args in get_transport_and_path
If you want to pass arguments to the client construction, without re–
producing the logic in get_transport_and_path which decides on the
appropriate client class to use, you're pretty much out of luck. So,
accept and pass through keyword arguments.
Jelmer Vernooij [Mon, 20 Feb 2012 12:04:20 +0000 (13:04 +0100)]
Fix python2.4 compatibility.
Jelmer Vernooij [Mon, 20 Feb 2012 11:59:58 +0000 (12:59 +0100)]
Merge support for only negotiating capabilities that are also supported by the
server.
Rod Cloutier [Mon, 20 Feb 2012 02:31:16 +0000 (21:31 -0500)]
Added test to validate side bank 64k is not parsed if server does not specify it
Risto Kankkunen [Sat, 18 Feb 2012 21:43:16 +0000 (23:43 +0200)]
Fix capability negotiation in dulwich.client
Assume only capabilities the server announced.
milki [Sun, 12 Feb 2012 00:20:11 +0000 (16:20 -0800)]
Change add_object to add_objects
milki [Sun, 12 Feb 2012 00:02:27 +0000 (16:02 -0800)]
Fix pep8
milki [Sat, 11 Feb 2012 23:56:49 +0000 (15:56 -0800)]
Construct modes instead of magic modes
milki [Sat, 11 Feb 2012 23:53:16 +0000 (15:53 -0800)]
Make index entry tests explicit
Jelmer Vernooij [Thu, 9 Feb 2012 23:03:57 +0000 (00:03 +0100)]
Merge fix for formatting of 'extension not found' messages.
Jelmer Vernooij [Thu, 9 Feb 2012 23:00:58 +0000 (00:00 +0100)]
Merge fix to call parent constructor rather than grandparent. Thanks, kankri.
Jelmer Vernooij [Thu, 9 Feb 2012 22:41:58 +0000 (23:41 +0100)]
Some more docstrings.
Risto Kankkunen [Thu, 9 Feb 2012 12:11:50 +0000 (14:11 +0200)]
Merged master
Risto Kankkunen [Tue, 7 Feb 2012 21:10:10 +0000 (23:10 +0200)]
Run Git in tests without user's ".gitconfig".
Risto Kankkunen [Tue, 7 Feb 2012 20:08:16 +0000 (22:08 +0200)]
Don't look up "HOME" environment variable unconditionally to avoid KeyError
if it's not defined, like on Windows which usually doesn't have "HOME", but
"HOMEDRIVE" and "HOMEPATH" instead.
milki [Mon, 6 Feb 2012 08:51:51 +0000 (00:51 -0800)]
Fix pep8
milki [Mon, 6 Feb 2012 08:51:40 +0000 (00:51 -0800)]
Add test for empty tree
milki [Mon, 6 Feb 2012 04:06:17 +0000 (20:06 -0800)]
pep8 cleanup
milki [Mon, 6 Feb 2012 03:59:42 +0000 (19:59 -0800)]
Change test to use custom repo
milki [Mon, 6 Feb 2012 02:32:12 +0000 (18:32 -0800)]
Support for symlink
use os.symlink when detected
lstat to prevent symlink following
milki [Mon, 6 Feb 2012 01:06:25 +0000 (17:06 -0800)]
clone should checkout HEAD of remote repo
milki [Sun, 5 Feb 2012 07:20:44 +0000 (23:20 -0800)]
Move checkout to index
Rename checkout to build_index_from_tree
Add index test
Risto Kankkunen [Fri, 27 Jan 2012 20:13:47 +0000 (22:13 +0200)]
Fixed formatting for "extension not found" messages
Risto Kankkunen [Tue, 24 Jan 2012 21:12:49 +0000 (23:12 +0200)]
Call the parent class constructor, not grandparent's, to avoid surprises later
if the class hierarchy is changed.
Jelmer Vernooij [Mon, 23 Jan 2012 17:12:27 +0000 (18:12 +0100)]
Options on the same line as sections in config files are now supported. #920553
Jelmer Vernooij [Mon, 23 Jan 2012 14:03:16 +0000 (15:03 +0100)]
$HOME is now explicitly specified for tests that use it to read
``~/.gitconfig``, to prevent test isolation issues.
Eventually this should probably happen in a more structural manner,
by e.g. using a base TestCase class that always overrides $HOME.
milki [Sun, 22 Jan 2012 20:50:29 +0000 (12:50 -0800)]
Add checkout. checkout master on clone
Note: Only supports checking out master on a fresh clone
Jelmer Vernooij [Sat, 21 Jan 2012 21:22:27 +0000 (22:22 +0100)]
Open 0.8.4.
Jelmer Vernooij [Sat, 21 Jan 2012 21:18:49 +0000 (22:18 +0100)]
Release 0.8.3.
Jelmer Vernooij [Sat, 21 Jan 2012 19:19:39 +0000 (20:19 +0100)]
Add a 'dulwich fetch' implementation.
Jelmer Vernooij [Wed, 18 Jan 2012 22:11:11 +0000 (23:11 +0100)]
Merge various fixes for running the testsuite on Windows.
Risto Kankkunen [Wed, 18 Jan 2012 16:50:07 +0000 (18:50 +0200)]
Close all open file handles in the test case
dulwich.tests.test_object_store.DiskObjectStoreTests:test_add_thin_pack
to avoid
WindowsError: [Error 32] The process cannot access the file because it is
being used by another process: '...\\temp\\tmpdqhxlw\\pack\\pack-
08ff98a2737425627a64fab11a4a5c53ed26bf9a.idx'
on Windows.
There should be DiskObjectStore.close() to make this practical!
Risto Kankkunen [Wed, 18 Jan 2012 16:11:54 +0000 (18:11 +0200)]
Fix incorrect read/write handling in "object_store.py".
When using C stdio library, the stream must be flushed or repositioned before
switching from write operations to read operations or vv. This applies to
CPython as well since "File objects are implemented using C’s stdio package".
http://docs.python.org/library/stdtypes.html#file-objects
See also http://bugs.python.org/issue3207.
DiskObjectStore._complete_thin_pack() didn't follow these rules which made the
test
dulwich.tests.test_object_store.DiskObjectStoreTests:test_add_thin_pack
fail with
IOError: [Errno 0] Error
on Windows.
Risto Kankkunen [Wed, 18 Jan 2012 15:56:08 +0000 (17:56 +0200)]
Ugly fix for a doctest in "docs/tutorial/repo.txt" to account for different
file path separators.
Risto Kankkunen [Tue, 17 Jan 2012 21:51:56 +0000 (23:51 +0200)]
Use platform-specific file path separators to avoid tests
dulwich.tests.test_web.DumbHandlersTestCase:test_get_idx_file
dulwich.tests.test_web.DumbHandlersTestCase:test_get_pack_file
failing on Windows with "File not found" error.
Risto Kankkunen [Tue, 17 Jan 2012 21:40:09 +0000 (23:40 +0200)]
Use universal newlines in subprocess output to prevent tests
dulwich.tests.test_blackbox.GitReceivePackTests:test_missing_arg
dulwich.tests.test_blackbox.GitUploadPackTests:test_missing_arg
to fail because of mismatched line terminators on Windows.
Risto Kankkunen [Tue, 17 Jan 2012 21:28:05 +0000 (23:28 +0200)]
Do not delete the current working directory to avoid:
WindowsError: [Error 32] The process cannot access the file because it
is being used by another process: '...'
Risto Kankkunen [Tue, 17 Jan 2012 21:22:47 +0000 (23:22 +0200)]
Windows doesn't have "posix" module, use "os" instead. Otherwise the test suite fails to run even a single test.
Jelmer Vernooij [Tue, 17 Jan 2012 10:38:57 +0000 (11:38 +0100)]
Add a docstring for S_ISGITLINK.
Jelmer Vernooij [Thu, 5 Jan 2012 18:50:03 +0000 (19:50 +0100)]
Add committer - in case the user doesn't have a local configuration.
Jelmer Vernooij [Thu, 5 Jan 2012 15:40:29 +0000 (16:40 +0100)]
Fix docstring for ObjectStore.tree_changes.
Jelmer Vernooij [Wed, 4 Jan 2012 19:38:33 +0000 (20:38 +0100)]
dulwich.objects: Add more docstrings.
Jelmer Vernooij [Wed, 4 Jan 2012 19:26:07 +0000 (20:26 +0100)]
Fix typo.
Jelmer Vernooij [Wed, 4 Jan 2012 19:22:00 +0000 (20:22 +0100)]
Add more docstrings to BaseRepo, remove BaseRepo.__iter__.
Jelmer Vernooij [Wed, 4 Jan 2012 19:07:48 +0000 (20:07 +0100)]
Extend the repository documentation a bit.
Jelmer Vernooij [Wed, 4 Jan 2012 19:07:17 +0000 (20:07 +0100)]
Simplify Repo.stage a bit by using index_entry_from_stat.
Jelmer Vernooij [Wed, 4 Jan 2012 18:36:58 +0000 (19:36 +0100)]
Add tutorial chapter on remote repositories.
Jelmer Vernooij [Wed, 4 Jan 2012 18:36:47 +0000 (19:36 +0100)]
Use identity from ~/.gitconfig or .git/config if none was explicitly specified.
Jelmer Vernooij [Wed, 4 Jan 2012 18:16:39 +0000 (19:16 +0100)]
dulwich.client: Make progress argument optional.
Jelmer Vernooij [Wed, 4 Jan 2012 17:59:16 +0000 (18:59 +0100)]
Add 'make check-tutorial'.
Jelmer Vernooij [Wed, 4 Jan 2012 17:36:25 +0000 (18:36 +0100)]
Allow determine_wants methods to include the zero sha in their return value.
Jelmer Vernooij [Wed, 4 Jan 2012 17:29:28 +0000 (18:29 +0100)]
Document return types.
Jelmer Vernooij [Wed, 4 Jan 2012 16:51:57 +0000 (17:51 +0100)]
Add some docstrings.
Jelmer Vernooij [Thu, 29 Dec 2011 17:26:58 +0000 (18:26 +0100)]
Include status information in Python modules.
Jelmer Vernooij [Wed, 28 Dec 2011 23:28:50 +0000 (00:28 +0100)]
Add a basic STATUS document documenting the capabilities supported by dulwich.
Jelmer Vernooij [Wed, 28 Dec 2011 22:32:40 +0000 (23:32 +0100)]
Split out Repo.get_config_stack().
Jelmer Vernooij [Wed, 28 Dec 2011 22:05:35 +0000 (23:05 +0100)]
Add writable argument to StackedConfig.
Jelmer Vernooij [Wed, 28 Dec 2011 21:49:32 +0000 (22:49 +0100)]
Add tests for default git config file.
Jelmer Vernooij [Wed, 28 Dec 2011 21:36:54 +0000 (22:36 +0100)]
Provide Config.get_boolean.
Jelmer Vernooij [Wed, 28 Dec 2011 18:49:58 +0000 (19:49 +0100)]
The config parser now supports the git-config file format as
described in git-config(1) and can write git config files.
Jelmer Vernooij [Wed, 28 Dec 2011 18:35:12 +0000 (19:35 +0100)]
Make section names and variable names case insensitive.
Jelmer Vernooij [Wed, 28 Dec 2011 18:17:59 +0000 (19:17 +0100)]
Fix parsing of comments.
Jelmer Vernooij [Wed, 28 Dec 2011 17:14:00 +0000 (18:14 +0100)]
Simplify some code, add tests for boolean settings without = sign.
Jelmer Vernooij [Wed, 28 Dec 2011 17:09:22 +0000 (18:09 +0100)]
Add checking of section names.
Jelmer Vernooij [Wed, 28 Dec 2011 17:02:21 +0000 (18:02 +0100)]
Add checking of variable names.
Jelmer Vernooij [Wed, 28 Dec 2011 16:52:33 +0000 (17:52 +0100)]
Simplify section handling.
Jelmer Vernooij [Wed, 28 Dec 2011 02:09:28 +0000 (03:09 +0100)]
Fix section parsing.