jelmer/dulwich.git
10 years agoClarify committish argument of 'show'.
Jelmer Vernooij [Sat, 18 Jan 2014 17:26:24 +0000 (17:26 +0000)]
Clarify committish argument of 'show'.

10 years agoAdd porcelain 'tag'.
Ryan Faulkner [Thu, 16 Jan 2014 00:16:59 +0000 (00:16 +0000)]
Add porcelain 'tag'.

10 years agoUpdate before installing git.
Jelmer Vernooij [Thu, 16 Jan 2014 00:08:21 +0000 (00:08 +0000)]
Update before installing git.

10 years agoFix empty pack test.
Jelmer Vernooij [Wed, 15 Jan 2014 23:30:38 +0000 (23:30 +0000)]
Fix empty pack test.

10 years agoAdd test for determine_wants (advertise_refs True)
Fabien Boucher [Wed, 15 Jan 2014 14:01:27 +0000 (15:01 +0100)]
Add test for determine_wants (advertise_refs True)

Add test to ensure that determine_wants return an empty
list when advertise_refs is True.

10 years agodetermine_wants must return a list
Fabien Boucher [Thu, 9 Jan 2014 11:49:13 +0000 (12:49 +0100)]
determine_wants must return a list

This patch forces determine_wants to return an empty list
when advertise_refs is True.

10 years agoImplement LocalGitClient.fetch_pack().
Jelmer Vernooij [Thu, 19 Dec 2013 00:41:35 +0000 (00:41 +0000)]
Implement LocalGitClient.fetch_pack().

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoFix typos in remote repositories tutorial
David Pursehouse [Wed, 11 Dec 2013 05:49:47 +0000 (14:49 +0900)]
Fix typos in remote repositories tutorial

Change-Id: I3d6b9d57c6080fc7f360c077a0d70497f5700045
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoRaise KeyError rather than TypeError when passing in 20 or 40-length
Jelmer Vernooij [Sun, 8 Dec 2013 23:00:34 +0000 (23:00 +0000)]
Raise KeyError rather than TypeError when passing in 20 or 40-length
unicode object to Repo.__getitem__.

10 years agoUse sudo for apt-get command.
Jelmer Vernooij [Sun, 8 Dec 2013 19:46:17 +0000 (19:46 +0000)]
Use sudo for apt-get command.

10 years agoInstall git in travis, for compat checks.
Jelmer Vernooij [Sun, 8 Dec 2013 19:40:10 +0000 (19:40 +0000)]
Install git in travis, for compat checks.

10 years agoInstall unittest2 in travis for python2.6.
Jelmer Vernooij [Sun, 8 Dec 2013 19:33:59 +0000 (19:33 +0000)]
Install unittest2 in travis for python2.6.

10 years agoAdd basic travis config file.
Jelmer Vernooij [Sun, 8 Dec 2013 17:56:03 +0000 (17:56 +0000)]
Add basic travis config file.

10 years agoAdd example of finding latest change to a file.
Jelmer Vernooij [Sat, 7 Dec 2013 14:25:44 +0000 (14:25 +0000)]
Add example of finding latest change to a file.

10 years agoUse https in homepage URL.
Jelmer Vernooij [Wed, 4 Dec 2013 02:29:16 +0000 (02:29 +0000)]
Use https in homepage URL.

10 years agoUse new style exception handling in a few more places.
Jelmer Vernooij [Wed, 4 Dec 2013 02:25:14 +0000 (02:25 +0000)]
Use new style exception handling in a few more places.

10 years agoRemove long deprecated Tree.entries.
Jelmer Vernooij [Wed, 4 Dec 2013 02:25:03 +0000 (02:25 +0000)]
Remove long deprecated Tree.entries.

10 years agoRemove long deprecated Repo.ref and Repo.revision_history.
Jelmer Vernooij [Wed, 4 Dec 2013 02:21:44 +0000 (02:21 +0000)]
Remove long deprecated Repo.ref and Repo.revision_history.

10 years agoRemove some long deprecated methods on Repo.
Jelmer Vernooij [Wed, 4 Dec 2013 02:18:35 +0000 (02:18 +0000)]
Remove some long deprecated methods on Repo.

10 years agoAdd explanation of porcelain and plumbing terms.
Jelmer Vernooij [Wed, 4 Dec 2013 02:14:43 +0000 (02:14 +0000)]
Add explanation of porcelain and plumbing terms.

10 years agoLine wrap.
Jelmer Vernooij [Wed, 4 Dec 2013 02:13:35 +0000 (02:13 +0000)]
Line wrap.

10 years agoFix description for pypi.
Jelmer Vernooij [Wed, 4 Dec 2013 01:54:51 +0000 (01:54 +0000)]
Fix description for pypi.

10 years agoUpdate README, add link to homepage.
Jelmer Vernooij [Wed, 4 Dec 2013 01:42:03 +0000 (01:42 +0000)]
Update README, add link to homepage.

10 years agoUpdate NEWS.
Jelmer Vernooij [Tue, 3 Dec 2013 01:13:37 +0000 (01:13 +0000)]
Update NEWS.

10 years agoDrop compatibility wrapper for `SEEK_END` and `SEEK_CUR`.
Jelmer Vernooij [Tue, 3 Dec 2013 01:12:25 +0000 (01:12 +0000)]
Drop compatibility wrapper for `SEEK_END` and `SEEK_CUR`.

10 years agoDrop compatibility wrapper for `parse_qs`.
Jelmer Vernooij [Tue, 3 Dec 2013 01:10:53 +0000 (01:10 +0000)]
Drop compatibility wrapper for `parse_qs`.

10 years agoDrop compatibility functions for `hashlib.sha1`.
Jelmer Vernooij [Tue, 3 Dec 2013 01:09:22 +0000 (01:09 +0000)]
Drop compatibility functions for `hashlib.sha1`.

10 years agoDrop compatibility function for namedtuple.
Jelmer Vernooij [Tue, 3 Dec 2013 01:05:02 +0000 (01:05 +0000)]
Drop compatibility function for namedtuple.

10 years agoDrop compatibility replacement for 'all'.
Jelmer Vernooij [Tue, 3 Dec 2013 01:02:58 +0000 (01:02 +0000)]
Drop compatibility replacement for 'all'.

10 years agoDrop compatibility replacement for unpack_from.
Jelmer Vernooij [Tue, 3 Dec 2013 01:01:07 +0000 (01:01 +0000)]
Drop compatibility replacement for unpack_from.

10 years agoRemove compatibility code for itertools.permutations, in preparation of
Jelmer Vernooij [Tue, 3 Dec 2013 00:59:41 +0000 (00:59 +0000)]
Remove compatibility code for itertools.permutations, in preparation of
dropping Python2.4 and 2.5 support.

10 years agoRemove compatibility code for collections.defaultdict, in preparation of
Jelmer Vernooij [Tue, 3 Dec 2013 00:56:51 +0000 (00:56 +0000)]
Remove compatibility code for collections.defaultdict, in preparation of
dropping support for Python < 2.6.

10 years agoMove refs tests to dulwich.tests.test_refs.
Jelmer Vernooij [Sun, 1 Dec 2013 00:05:03 +0000 (00:05 +0000)]
Move refs tests to dulwich.tests.test_refs.

10 years agoStart on 0.9.5.
Jelmer Vernooij [Sat, 30 Nov 2013 16:14:00 +0000 (16:14 +0000)]
Start on 0.9.5.

10 years agoRelease 0.9.4. dulwich-0.9.4
Jelmer Vernooij [Sat, 30 Nov 2013 16:12:55 +0000 (16:12 +0000)]
Release 0.9.4.

10 years agoTwo minor optimizations in heavily used code paths.
Jelmer Vernooij [Sat, 30 Nov 2013 16:12:03 +0000 (16:12 +0000)]
Two minor optimizations in heavily used code paths.

10 years agoSupport filesystems with 64bit inode and device numbers.
André Roth [Fri, 29 Nov 2013 23:29:53 +0000 (00:29 +0100)]
Support filesystems with 64bit inode and device numbers.

stat(2) can return 64bit filesystem inode and device, truncate them to 32bit.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoUpdate NEWS, add tests for clone with bare.
Jelmer Vernooij [Fri, 29 Nov 2013 22:36:30 +0000 (22:36 +0000)]
Update NEWS, add tests for clone with bare.

10 years agoAdded checkout support to porcelain.clone. It's enabled by default
Marcin Kuzminski [Fri, 29 Nov 2013 01:40:23 +0000 (02:40 +0100)]
Added checkout support to porcelain.clone. It's enabled by default
to mimick default git clone behaviour

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoAdd LocalGitClient.
Jelmer Vernooij [Wed, 27 Nov 2013 00:22:17 +0000 (00:22 +0000)]
Add LocalGitClient.

10 years agoSplit out tests for get_transport_and_path.
Jelmer Vernooij [Tue, 26 Nov 2013 23:51:15 +0000 (23:51 +0000)]
Split out tests for get_transport_and_path.

10 years agoFix typo: URI -> URL.
Jelmer Vernooij [Tue, 26 Nov 2013 23:47:24 +0000 (23:47 +0000)]
Fix typo: URI -> URL.

10 years agoAllow overriding default class for local git client access.
Jelmer Vernooij [Tue, 26 Nov 2013 23:38:34 +0000 (23:38 +0000)]
Allow overriding default class for local git client access.

10 years agoSplit get_transport_and_path_from_url() out of get_transport_and_path().
Jelmer Vernooij [Tue, 26 Nov 2013 23:35:32 +0000 (23:35 +0000)]
Split get_transport_and_path_from_url() out of get_transport_and_path().

10 years agoPass in known sha.
Jelmer Vernooij [Tue, 26 Nov 2013 02:30:08 +0000 (02:30 +0000)]
Pass in known sha.

10 years agoSupport reusing known sha during object creation.
Jelmer Vernooij [Tue, 26 Nov 2013 02:08:22 +0000 (02:08 +0000)]
Support reusing known sha during object creation.

This results in > 10% performance improvement during operations like rev-list.

10 years agoMove commit parsing into a separate function.
Jelmer Vernooij [Mon, 25 Nov 2013 01:46:43 +0000 (01:46 +0000)]
Move commit parsing into a separate function.

10 years agoSimplify handling of message-like objects.
Jelmer Vernooij [Mon, 25 Nov 2013 01:37:35 +0000 (01:37 +0000)]
Simplify handling of message-like objects.

10 years agoPass chunks rather than full text to _parse_commit_or_tag.
Jelmer Vernooij [Mon, 25 Nov 2013 01:32:32 +0000 (01:32 +0000)]
Pass chunks rather than full text to _parse_commit_or_tag.

10 years agoAvoid double lookups of commits during walking operations.
Jelmer Vernooij [Mon, 25 Nov 2013 01:21:40 +0000 (01:21 +0000)]
Avoid double lookups of commits during walking operations.

Fix a performance regression since the grafts code.

10 years agoAdd porcelain for 'dulwich rev-list'.
Jelmer Vernooij [Sun, 24 Nov 2013 02:35:28 +0000 (02:35 +0000)]
Add porcelain for 'dulwich rev-list'.

10 years agoFix typo in commit_tree command.
Jelmer Vernooij [Sun, 24 Nov 2013 02:28:58 +0000 (02:28 +0000)]
Fix typo in commit_tree command.

10 years agoMake graftpoints methods private for the moment.
Jelmer Vernooij [Sun, 24 Nov 2013 02:11:08 +0000 (02:11 +0000)]
Make graftpoints methods private for the moment.

10 years agoAdd missing docstring.
Jelmer Vernooij [Sun, 17 Nov 2013 14:33:42 +0000 (14:33 +0000)]
Add missing docstring.

10 years agoremove extraneous repo.serialize
milki [Mon, 11 Nov 2013 01:24:38 +0000 (17:24 -0800)]
remove extraneous repo.serialize

10 years agograftpoints are required to parse/serialize
milki [Sun, 10 Nov 2013 20:24:36 +0000 (12:24 -0800)]
graftpoints are required to parse/serialize

10 years agoSimplify get_parents
milki [Sun, 10 Nov 2013 19:47:07 +0000 (11:47 -0800)]
Simplify get_parents

10 years agoNo need to parse grafts on file creation
milki [Sun, 10 Nov 2013 19:23:22 +0000 (11:23 -0800)]
No need to parse grafts on file creation

10 years agoUpdate NEWS
milki [Sun, 10 Nov 2013 03:41:55 +0000 (19:41 -0800)]
Update NEWS

10 years agoWalker uses Repo.get_parents
milki [Sun, 10 Nov 2013 03:07:12 +0000 (19:07 -0800)]
Walker uses Repo.get_parents

10 years agoparse and serialize graftpoints
milki [Sat, 21 Sep 2013 09:55:17 +0000 (02:55 -0700)]
parse and serialize graftpoints

10 years agoGraftpoint Tests
milki [Thu, 19 Sep 2013 05:25:21 +0000 (22:25 -0700)]
Graftpoint Tests

https://git.wiki.kernel.org/index.php/GraftPoint

GraftPoints are Commits that have their parents "rewritten"

To support graftpoints:

1) Repos must be able to manage its own graftpoints
2) Repos must be able to use graphwalkers that know how to use
graftpoints

10 years agoFix unnecessary incref of Py_False.
Jelmer Vernooij [Wed, 20 Nov 2013 00:20:41 +0000 (00:20 +0000)]
Fix unnecessary incref of Py_False.

10 years agoSome minor improvements to _diff_tree.c:
Jelmer Vernooij [Tue, 19 Nov 2013 23:35:21 +0000 (23:35 +0000)]
Some minor improvements to _diff_tree.c:

- Simplify string handling
- Use PyErr_NoMemory()

10 years agoFix docstring for StackedConfig.default_backends().
Jelmer Vernooij [Mon, 18 Nov 2013 22:31:25 +0000 (22:31 +0000)]
Fix docstring for StackedConfig.default_backends().

(Launchpad Bug 1252493)

10 years agoCope with functions not having func_name in pypy.
Jelmer Vernooij [Sun, 17 Nov 2013 14:58:37 +0000 (14:58 +0000)]
Cope with functions not having func_name in pypy.

10 years agoExtend tox config to run without extensions.
Jelmer Vernooij [Sun, 17 Nov 2013 14:54:39 +0000 (14:54 +0000)]
Extend tox config to run without extensions.

10 years agoAdd configuration for tox.
Jelmer Vernooij [Sun, 17 Nov 2013 10:16:52 +0000 (10:16 +0000)]
Add configuration for tox.

10 years agoFix test suite when run on systems without ~/.gitconfig.
Jelmer Vernooij [Sun, 10 Nov 2013 00:17:39 +0000 (00:17 +0000)]
Fix test suite when run on systems without ~/.gitconfig.

10 years agoDeprecate Repo.ref.
Jelmer Vernooij [Sun, 10 Nov 2013 00:14:49 +0000 (00:14 +0000)]
Deprecate Repo.ref.

10 years agoActually use Repo.get_parents.
Jelmer Vernooij [Sun, 10 Nov 2013 00:11:12 +0000 (00:11 +0000)]
Actually use Repo.get_parents.

10 years agoMove implementation of ObjectStore.get_graph_walker() to Repo.
Jelmer Vernooij [Sun, 10 Nov 2013 00:05:45 +0000 (00:05 +0000)]
Move implementation of ObjectStore.get_graph_walker() to Repo.

10 years agoMove write_info_refs to dulwich.refs.
Jelmer Vernooij [Mon, 4 Nov 2013 10:50:24 +0000 (10:50 +0000)]
Move write_info_refs to dulwich.refs.

10 years agoMove read_info_refs from dulwich.client to dulwich.refs.
Jelmer Vernooij [Mon, 4 Nov 2013 10:25:43 +0000 (10:25 +0000)]
Move read_info_refs from dulwich.client to dulwich.refs.

10 years agoMove refs handling to a separate file.
Jelmer Vernooij [Mon, 4 Nov 2013 10:21:22 +0000 (10:21 +0000)]
Move refs handling to a separate file.

10 years agoUpdate some copyright headers.
Jelmer Vernooij [Mon, 4 Nov 2013 10:03:58 +0000 (10:03 +0000)]
Update some copyright headers.

10 years agoAdd ConfigDict.itersections.
Jelmer Vernooij [Mon, 28 Oct 2013 12:53:17 +0000 (13:53 +0100)]
Add ConfigDict.itersections.

10 years agoReimplement iteritems.
Jelmer Vernooij [Mon, 28 Oct 2013 12:40:27 +0000 (13:40 +0100)]
Reimplement iteritems.

10 years agoAdd test for ConfigDict.iteritems.
Jelmer Vernooij [Mon, 28 Oct 2013 12:32:16 +0000 (13:32 +0100)]
Add test for ConfigDict.iteritems.

10 years agoAdd wrapper for commit-tree.
Jelmer Vernooij [Mon, 28 Oct 2013 11:57:45 +0000 (12:57 +0100)]
Add wrapper for commit-tree.

10 years agoAdd porcelain for diff-tree.
Jelmer Vernooij [Sun, 27 Oct 2013 08:25:02 +0000 (09:25 +0100)]
Add porcelain for diff-tree.

10 years agoProperly close pack files on exceptions.
max [Tue, 24 Sep 2013 01:56:07 +0000 (03:56 +0200)]
Properly close pack files on exceptions.

Cherry-picked from max0d41 @ GitHub.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoPython 2.4+ compat
Marcin Kuzminski [Tue, 22 Oct 2013 23:45:00 +0000 (01:45 +0200)]
Python 2.4+ compat

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoAdded_symbolic_ref function into porcelain module.
Marcin Kuzminski [Thu, 17 Oct 2013 17:24:54 +0000 (19:24 +0200)]
Added_symbolic_ref function into porcelain module.

This implements `git symbolic-ref` command via Dulwich porcelain.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoUpdate hooks.py
Marcin Kuźmiński [Tue, 22 Oct 2013 22:06:10 +0000 (00:06 +0200)]
Update hooks.py

python2.4 compat for hooks.py

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoFix dulwich._compat docstring to make pydoctor happy.
Jelmer Vernooij [Thu, 17 Oct 2013 05:57:56 +0000 (22:57 -0700)]
Fix dulwich._compat docstring to make pydoctor happy.

10 years agoUpdate NEWS.
Jelmer Vernooij [Thu, 17 Oct 2013 05:53:10 +0000 (22:53 -0700)]
Update NEWS.

10 years agoMerge branch 'porcelain' of git://git.samba.org/jelmer/dulwich
Jelmer Vernooij [Thu, 17 Oct 2013 05:52:46 +0000 (22:52 -0700)]
Merge branch 'porcelain' of git://git.samba.org/jelmer/dulwich

10 years agoRemove some unnecessary code, update NEWS.
Jelmer Vernooij [Thu, 17 Oct 2013 04:37:44 +0000 (21:37 -0700)]
Remove some unnecessary code, update NEWS.

10 years agoMaking set_description method compatible with python 2.4 by not using 'with'
Víðir Valberg Guðmundsson [Wed, 16 Oct 2013 22:34:07 +0000 (00:34 +0200)]
Making set_description method compatible with python 2.4 by not using 'with'

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoAdded Repo.set_description method.
Víðir Valberg Guðmundsson [Wed, 16 Oct 2013 13:53:17 +0000 (15:53 +0200)]
Added Repo.set_description method.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoReturn Repo from porcelain.clone().
Jelmer Vernooij [Thu, 17 Oct 2013 04:34:21 +0000 (21:34 -0700)]
Return Repo from porcelain.clone().

10 years agoSupport author and committer options to commit.
Jelmer Vernooij [Fri, 4 Oct 2013 14:01:34 +0000 (15:01 +0100)]
Support author and committer options to commit.

10 years agoAdd implementation of 'show' for porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 21:23:41 +0000 (22:23 +0100)]
Add implementation of 'show' for porcelain.

10 years agoAdd log command to porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 21:16:31 +0000 (22:16 +0100)]
Add log command to porcelain.

10 years agoClarify porcelain module behaviour.
Jelmer Vernooij [Sun, 29 Sep 2013 21:07:31 +0000 (22:07 +0100)]
Clarify porcelain module behaviour.

10 years agoProvide a rm command in porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 20:27:12 +0000 (21:27 +0100)]
Provide a rm command in porcelain.

10 years agoAdd 'add' command to porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:36:06 +0000 (02:36 +0100)]
Add 'add' command to porcelain.

10 years agoSupport passing in repositories for repo arguments in porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:27:37 +0000 (02:27 +0100)]
Support passing in repositories for repo arguments in porcelain.

10 years agoAdd clone to porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:16:42 +0000 (02:16 +0100)]
Add clone to porcelain.