jelmer/dulwich.git
12 years agoRename .bzrignore to .gitignore.
Jelmer Vernooij [Tue, 24 Apr 2012 20:16:53 +0000 (22:16 +0200)]
Rename .bzrignore to .gitignore.

12 years agoSupport DESTDIR in the Makefile.
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>
12 years ago_pack.c: Check for NULL return from Py_BuildValue.
Jelmer Vernooij [Thu, 19 Apr 2012 23:46:29 +0000 (01:46 +0200)]
_pack.c: Check for NULL return from Py_BuildValue.

12 years ago_pack.c: Consistently use tabs for indentation.
Jelmer Vernooij [Thu, 19 Apr 2012 23:42:28 +0000 (01:42 +0200)]
_pack.c: Consistently use tabs for indentation.

12 years ago_objects.c: Cope with sha_to_pyhex returning NULL.
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.

12 years agoMake index entry tests a little bit less strict, to cope with
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.

12 years agoRemove explicit testing of uid and gid in tests of index files.
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.

12 years agoHandle None elements in lists of TreeChange objects
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...".

12 years agodulwich.__init__ no longer imports client, protocol, repo and
Jelmer Vernooij [Thu, 29 Mar 2012 13:35:28 +0000 (15:35 +0200)]
dulwich.__init__ no longer imports client, protocol, repo and
server modules.

12 years agoStart on 0.8.6.
Jelmer Vernooij [Thu, 29 Mar 2012 13:34:51 +0000 (15:34 +0200)]
Start on 0.8.6.

12 years agoRelease 0.8.5. dulwich-0.8.5
Jelmer Vernooij [Thu, 29 Mar 2012 13:30:55 +0000 (15:30 +0200)]
Release 0.8.5.

12 years agoBe a little bit strict about OS behaviour in index tests.
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.

12 years agoAvoid use of 'with' in dulwich.index, fixes compatibility with python < 2.5.
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.

12 years agoStart on 0.8.5.
Jelmer Vernooij [Wed, 28 Mar 2012 12:08:35 +0000 (14:08 +0200)]
Start on 0.8.5.

12 years agoRelease 0.8.4. dulwich-0.8.4
Jelmer Vernooij [Wed, 28 Mar 2012 12:05:50 +0000 (14:05 +0200)]
Release 0.8.4.

12 years agoobjects: Fix default type of Commit.extra.
Jelmer Vernooij [Mon, 26 Mar 2012 21:16:25 +0000 (23:16 +0200)]
objects: Fix default type of Commit.extra.

12 years agoclient: Fix check for 'report-status' capability.
Jelmer Vernooij [Mon, 26 Mar 2012 21:16:03 +0000 (23:16 +0200)]
client: Fix check for 'report-status' capability.

12 years agoMerge addition of dulwich.index.build_index_from_tree from milki.
Jelmer Vernooij [Wed, 21 Mar 2012 19:27:22 +0000 (20:27 +0100)]
Merge addition of dulwich.index.build_index_from_tree from milki.

12 years agoMerge fix from kankri to reset environment variables during tests, to avoid
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.

12 years agoSome refactoring, put all os.environ-cleaning functionality in TestCase.setUp().
Jelmer Vernooij [Mon, 19 Mar 2012 23:42:22 +0000 (00:42 +0100)]
Some refactoring, put all os.environ-cleaning functionality in TestCase.setUp().

12 years agomerge trunk
Jelmer Vernooij [Mon, 19 Mar 2012 23:33:16 +0000 (00:33 +0100)]
merge trunk

12 years agoMerge removal of unused variable.
Jelmer Vernooij [Tue, 13 Mar 2012 01:19:34 +0000 (02:19 +0100)]
Merge removal of unused variable.

12 years agoremoved unused variable
codingtony [Tue, 13 Mar 2012 01:10:49 +0000 (21:10 -0400)]
removed unused variable

12 years agoRemove more uses of deprecated assertEquals.
Jelmer Vernooij [Mon, 12 Mar 2012 14:49:51 +0000 (15:49 +0100)]
Remove more uses of deprecated assertEquals.

12 years agoMerge gzip filter support.
Jelmer Vernooij [Mon, 12 Mar 2012 11:20:43 +0000 (12:20 +0100)]
Merge gzip filter support.

12 years agoAvoid using custom gzip module and incrementally parse.
Jelmer Vernooij [Mon, 12 Mar 2012 02:57:55 +0000 (03:57 +0100)]
Avoid using custom gzip module and incrementally parse.

12 years agoAdded WSGI middleware to handle transparent gzip decoding
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.

12 years agoUse TestCase.assertEqual rather than TestCase.assertEquals.
Jelmer Vernooij [Sun, 11 Mar 2012 02:01:52 +0000 (03:01 +0100)]
Use TestCase.assertEqual rather than TestCase.assertEquals.

12 years agoFix formatting timezones so that it is possible to regenerate --700 timezones.
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.

12 years agoFix two pydoctor warnings.
Jelmer Vernooij [Sun, 4 Mar 2012 17:09:38 +0000 (18:09 +0100)]
Fix two pydoctor warnings.

12 years agoMerge fix for parsing of invalid timezones from Jason R. Coombs.
Jelmer Vernooij [Sat, 3 Mar 2012 18:39:49 +0000 (19:39 +0100)]
Merge fix for parsing of invalid timezones from Jason R. Coombs.

12 years agoExpanded parse_timezone to accept double-negatives to be consistent with cgit impleme...
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.

12 years agoMerge patch from Sam Vilain to pass arguments to get_transport_and_path on to the...
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.

12 years agoAdd support for client init args in get_transport_and_path
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.

12 years agoFix python2.4 compatibility.
Jelmer Vernooij [Mon, 20 Feb 2012 12:04:20 +0000 (13:04 +0100)]
Fix python2.4 compatibility.

12 years agoMerge support for only negotiating capabilities that are also supported by the
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.

12 years agoAdded test to validate side bank 64k is not parsed if server does not specify it
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

12 years agoFix capability negotiation in dulwich.client
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.

12 years agoChange add_object to add_objects
milki [Sun, 12 Feb 2012 00:20:11 +0000 (16:20 -0800)]
Change add_object to add_objects

12 years agoFix pep8
milki [Sun, 12 Feb 2012 00:02:27 +0000 (16:02 -0800)]
Fix pep8

12 years agoConstruct modes instead of magic modes
milki [Sat, 11 Feb 2012 23:56:49 +0000 (15:56 -0800)]
Construct modes instead of magic modes

12 years agoMake index entry tests explicit
milki [Sat, 11 Feb 2012 23:53:16 +0000 (15:53 -0800)]
Make index entry tests explicit

12 years agoMerge fix for formatting of 'extension not found' messages.
Jelmer Vernooij [Thu, 9 Feb 2012 23:03:57 +0000 (00:03 +0100)]
Merge fix for formatting of 'extension not found' messages.

12 years agoMerge fix to call parent constructor rather than grandparent. Thanks, kankri.
Jelmer Vernooij [Thu, 9 Feb 2012 23:00:58 +0000 (00:00 +0100)]
Merge fix to call parent constructor rather than grandparent. Thanks, kankri.

12 years agoSome more docstrings.
Jelmer Vernooij [Thu, 9 Feb 2012 22:41:58 +0000 (23:41 +0100)]
Some more docstrings.

12 years agoMerged master
Risto Kankkunen [Thu, 9 Feb 2012 12:11:50 +0000 (14:11 +0200)]
Merged master

12 years agoRun Git in tests without user's ".gitconfig".
Risto Kankkunen [Tue, 7 Feb 2012 21:10:10 +0000 (23:10 +0200)]
Run Git in tests without user's ".gitconfig".

12 years agoDon't look up "HOME" environment variable unconditionally to avoid KeyError
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.

12 years agoFix pep8
milki [Mon, 6 Feb 2012 08:51:51 +0000 (00:51 -0800)]
Fix pep8

12 years agoAdd test for empty tree
milki [Mon, 6 Feb 2012 08:51:40 +0000 (00:51 -0800)]
Add test for empty tree

12 years agopep8 cleanup
milki [Mon, 6 Feb 2012 04:06:17 +0000 (20:06 -0800)]
pep8 cleanup

12 years agoChange test to use custom repo
milki [Mon, 6 Feb 2012 03:59:42 +0000 (19:59 -0800)]
Change test to use custom repo

12 years agoSupport for symlink
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

12 years agoclone should checkout HEAD of remote repo
milki [Mon, 6 Feb 2012 01:06:25 +0000 (17:06 -0800)]
clone should checkout HEAD of remote repo

12 years agoMove checkout to index
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

12 years agoFixed formatting for "extension not found" messages
Risto Kankkunen [Fri, 27 Jan 2012 20:13:47 +0000 (22:13 +0200)]
Fixed formatting for "extension not found" messages

12 years agoCall the parent class constructor, not grandparent's, to avoid surprises later
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.

12 years agoOptions on the same line as sections in config files are now supported. #920553
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

12 years ago$HOME is now explicitly specified for tests that use it to read
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.

12 years agoAdd checkout. checkout master on clone
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

12 years agoOpen 0.8.4.
Jelmer Vernooij [Sat, 21 Jan 2012 21:22:27 +0000 (22:22 +0100)]
Open 0.8.4.

12 years agoRelease 0.8.3. dulwich-0.8.3
Jelmer Vernooij [Sat, 21 Jan 2012 21:18:49 +0000 (22:18 +0100)]
Release 0.8.3.

12 years agoAdd a 'dulwich fetch' implementation.
Jelmer Vernooij [Sat, 21 Jan 2012 19:19:39 +0000 (20:19 +0100)]
Add a 'dulwich fetch' implementation.

12 years agoMerge various fixes for running the testsuite on Windows.
Jelmer Vernooij [Wed, 18 Jan 2012 22:11:11 +0000 (23:11 +0100)]
Merge various fixes for running the testsuite on Windows.

12 years agoClose all open file handles in the test case
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!

12 years agoFix incorrect read/write handling in "object_store.py".
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.

12 years agoUgly fix for a doctest in "docs/tutorial/repo.txt" to account for different
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.

12 years agoUse platform-specific file path separators to avoid tests
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.

12 years agoUse universal newlines in subprocess output to prevent tests
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.

12 years agoDo not delete the current working directory to avoid:
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: '...'

12 years agoWindows doesn't have "posix" module, use "os" instead. Otherwise the test suite fails...
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.

12 years agoAdd a docstring for S_ISGITLINK.
Jelmer Vernooij [Tue, 17 Jan 2012 10:38:57 +0000 (11:38 +0100)]
Add a docstring for S_ISGITLINK.

12 years agoAdd committer - in case the user doesn't have a local configuration.
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.

12 years agoFix docstring for ObjectStore.tree_changes.
Jelmer Vernooij [Thu, 5 Jan 2012 15:40:29 +0000 (16:40 +0100)]
Fix docstring for ObjectStore.tree_changes.

12 years agodulwich.objects: Add more docstrings.
Jelmer Vernooij [Wed, 4 Jan 2012 19:38:33 +0000 (20:38 +0100)]
dulwich.objects: Add more docstrings.

12 years agoFix typo.
Jelmer Vernooij [Wed, 4 Jan 2012 19:26:07 +0000 (20:26 +0100)]
Fix typo.

12 years agoAdd more docstrings to BaseRepo, remove BaseRepo.__iter__.
Jelmer Vernooij [Wed, 4 Jan 2012 19:22:00 +0000 (20:22 +0100)]
Add more docstrings to BaseRepo, remove BaseRepo.__iter__.

12 years agoExtend the repository documentation a bit.
Jelmer Vernooij [Wed, 4 Jan 2012 19:07:48 +0000 (20:07 +0100)]
Extend the repository documentation a bit.

12 years agoSimplify Repo.stage a bit by using index_entry_from_stat.
Jelmer Vernooij [Wed, 4 Jan 2012 19:07:17 +0000 (20:07 +0100)]
Simplify Repo.stage a bit by using index_entry_from_stat.

12 years agoAdd tutorial chapter on remote repositories.
Jelmer Vernooij [Wed, 4 Jan 2012 18:36:58 +0000 (19:36 +0100)]
Add tutorial chapter on remote repositories.

12 years agoUse identity from ~/.gitconfig or .git/config if none was explicitly specified.
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.

12 years agodulwich.client: Make progress argument optional.
Jelmer Vernooij [Wed, 4 Jan 2012 18:16:39 +0000 (19:16 +0100)]
dulwich.client: Make progress argument optional.

12 years agoAdd 'make check-tutorial'.
Jelmer Vernooij [Wed, 4 Jan 2012 17:59:16 +0000 (18:59 +0100)]
Add 'make check-tutorial'.

12 years agoAllow determine_wants methods to include the zero sha in their return value.
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.

12 years agoDocument return types.
Jelmer Vernooij [Wed, 4 Jan 2012 17:29:28 +0000 (18:29 +0100)]
Document return types.

12 years agoAdd some docstrings.
Jelmer Vernooij [Wed, 4 Jan 2012 16:51:57 +0000 (17:51 +0100)]
Add some docstrings.

12 years agoInclude status information in Python modules.
Jelmer Vernooij [Thu, 29 Dec 2011 17:26:58 +0000 (18:26 +0100)]
Include status information in Python modules.

12 years agoAdd a basic STATUS document documenting the capabilities supported by dulwich.
Jelmer Vernooij [Wed, 28 Dec 2011 23:28:50 +0000 (00:28 +0100)]
Add a basic STATUS document documenting the capabilities supported by dulwich.

12 years agoSplit out Repo.get_config_stack().
Jelmer Vernooij [Wed, 28 Dec 2011 22:32:40 +0000 (23:32 +0100)]
Split out Repo.get_config_stack().

12 years agoAdd writable argument to StackedConfig.
Jelmer Vernooij [Wed, 28 Dec 2011 22:05:35 +0000 (23:05 +0100)]
Add writable argument to StackedConfig.

12 years agoAdd tests for default git config file.
Jelmer Vernooij [Wed, 28 Dec 2011 21:49:32 +0000 (22:49 +0100)]
Add tests for default git config file.

12 years agoProvide Config.get_boolean.
Jelmer Vernooij [Wed, 28 Dec 2011 21:36:54 +0000 (22:36 +0100)]
Provide Config.get_boolean.

12 years agoThe config parser now supports the git-config file format as
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.

12 years agoMake section names and variable names case insensitive.
Jelmer Vernooij [Wed, 28 Dec 2011 18:35:12 +0000 (19:35 +0100)]
Make section names and variable names case insensitive.

12 years agoFix parsing of comments.
Jelmer Vernooij [Wed, 28 Dec 2011 18:17:59 +0000 (19:17 +0100)]
Fix parsing of comments.

12 years agoSimplify some code, add tests for boolean settings without = sign.
Jelmer Vernooij [Wed, 28 Dec 2011 17:14:00 +0000 (18:14 +0100)]
Simplify some code, add tests for boolean settings without = sign.

12 years agoAdd checking of section names.
Jelmer Vernooij [Wed, 28 Dec 2011 17:09:22 +0000 (18:09 +0100)]
Add checking of section names.

12 years agoAdd checking of variable names.
Jelmer Vernooij [Wed, 28 Dec 2011 17:02:21 +0000 (18:02 +0100)]
Add checking of variable names.

12 years agoSimplify section handling.
Jelmer Vernooij [Wed, 28 Dec 2011 16:52:33 +0000 (17:52 +0100)]
Simplify section handling.

12 years agoFix section parsing.
Jelmer Vernooij [Wed, 28 Dec 2011 02:09:28 +0000 (03:09 +0100)]
Fix section parsing.