jelmer/dulwich.git
5 years agoUpdate AUTHORS.
Jelmer Vernooij [Sat, 11 Aug 2018 13:46:57 +0000 (14:46 +0100)]
Update AUTHORS.

5 years agoMerge fix for custom auth parameters for dulwich.porcelain.clone.
Jelmer Vernooij [Fri, 10 Aug 2018 23:17:37 +0000 (00:17 +0100)]
Merge fix for custom auth parameters for dulwich.porcelain.clone.

5 years agoFix style (long line)
semyon-slepov [Fri, 10 Aug 2018 12:52:25 +0000 (14:52 +0200)]
Fix style (long line)

5 years agoPass optional arguments to fetch() while cloning
semyon-slepov [Fri, 10 Aug 2018 12:24:37 +0000 (14:24 +0200)]
Pass optional arguments to fetch() while cloning

5 years agoAvoid use of urllib2.splituser (removed in python 3.8).
Jelmer Vernooij [Tue, 7 Aug 2018 19:15:43 +0000 (20:15 +0100)]
Avoid use of urllib2.splituser (removed in python 3.8).

5 years agoDon't run greenlet-based tests on 3.7/3.8-dev.
Jelmer Vernooij [Mon, 6 Aug 2018 23:15:41 +0000 (00:15 +0100)]
Don't run greenlet-based tests on 3.7/3.8-dev.

5 years agoTest on Python 3.7 and 3.8-dev
Daniel M. Capella [Mon, 6 Aug 2018 06:58:10 +0000 (06:58 +0000)]
Test on Python 3.7 and 3.8-dev

5 years agoSupport bytes paths in dulwich.index.
Jelmer Vernooij [Wed, 25 Jul 2018 18:01:57 +0000 (19:01 +0100)]
Support bytes paths in dulwich.index.

5 years agoPass the <errstream> parameter through from porcelain.clone() to porcelain.fetch().
grun [Sun, 22 Jul 2018 03:17:17 +0000 (20:17 -0700)]
Pass the <errstream> parameter through from porcelain.clone() to porcelain.fetch().

5 years agoRemove unnecessary abspath calls.
Jelmer Vernooij [Wed, 18 Jul 2018 10:12:23 +0000 (11:12 +0100)]
Remove unnecessary abspath calls.

5 years agoMerge branch 'fix/tree_path' of git://github.com/r0mainK/dulwich
Jelmer Vernooij [Wed, 18 Jul 2018 10:09:22 +0000 (11:09 +0100)]
Merge branch 'fix/tree_path' of git://github.com/r0mainK/dulwich

Fixes #598

5 years agoStart on 0.19.6.
Jelmer Vernooij [Sun, 8 Jul 2018 12:44:26 +0000 (13:44 +0100)]
Start on 0.19.6.

5 years agoRelease 0.19.5 dulwich-0.19.5
Jelmer Vernooij [Sun, 8 Jul 2018 12:38:38 +0000 (13:38 +0100)]
Release 0.19.5

5 years agoFix path_to_tree_path
Romain Keramitas [Mon, 25 Jun 2018 10:49:58 +0000 (12:49 +0200)]
Fix path_to_tree_path

Signed-off-by: Romain Keramitas <r.keramitas@gmail.com>
5 years agoFix build on Python3, update NEWS.
Jelmer Vernooij [Tue, 3 Jul 2018 16:44:13 +0000 (17:44 +0100)]
Fix build on Python3, update NEWS.

5 years agoAdd unit tests for describe
Sylvia van Os [Tue, 3 Jul 2018 15:33:28 +0000 (17:33 +0200)]
Add unit tests for describe

5 years agoSimple describe implementation
Sylvia van Os [Sun, 1 Jul 2018 18:02:39 +0000 (20:02 +0200)]
Simple describe implementation

5 years agoUpdate NEWS.
Jelmer Vernooij [Fri, 29 Jun 2018 19:51:38 +0000 (20:51 +0100)]
Update NEWS.

5 years agorefs: Clean-up parent directories when removing references
Damien Tournoud [Fri, 29 Jun 2018 14:02:07 +0000 (16:02 +0200)]
refs: Clean-up parent directories when removing references

5 years agoFix regression in porcelain.clone that prevented cloning of remote repositories....
Jelmer Vernooij [Mon, 25 Jun 2018 18:27:25 +0000 (19:27 +0100)]
Fix regression in porcelain.clone that prevented cloning of remote repositories. Fixes #639

5 years agoStart on 0.19.5.
Jelmer Vernooij [Sun, 24 Jun 2018 00:41:23 +0000 (01:41 +0100)]
Start on 0.19.5.

5 years agoRelease 0.19.4 dulwich-0.19.4
Jelmer Vernooij [Sun, 24 Jun 2018 00:39:13 +0000 (01:39 +0100)]
Release 0.19.4

5 years agoAdd Index.items.
Jelmer Vernooij [Sun, 24 Jun 2018 00:38:30 +0000 (01:38 +0100)]
Add Index.items.

5 years agoNote Index.iteritems in NEWS.
Jelmer Vernooij [Fri, 22 Jun 2018 16:55:06 +0000 (17:55 +0100)]
Note Index.iteritems in NEWS.

5 years agoImplement dulwich.porcelain.ls_files, avoid digraph in setup.cfg.
Jelmer Vernooij [Wed, 20 Jun 2018 17:54:50 +0000 (18:54 +0100)]
Implement dulwich.porcelain.ls_files, avoid digraph in setup.cfg.

5 years agoFix description file.
Jelmer Vernooij [Sun, 17 Jun 2018 22:12:13 +0000 (23:12 +0100)]
Fix description file.

5 years agoStart on 0.19.4.
Jelmer Vernooij [Sun, 17 Jun 2018 18:29:38 +0000 (19:29 +0100)]
Start on 0.19.4.

5 years agoRelease 0.19.3 dulwich-0.19.3
Jelmer Vernooij [Sun, 17 Jun 2018 18:25:02 +0000 (19:25 +0100)]
Release 0.19.3

5 years agoSupport a prefix argument to dulwich.archive.tar_stream.
Jelmer Vernooij [Sun, 17 Jun 2018 15:57:26 +0000 (16:57 +0100)]
Support a prefix argument to dulwich.archive.tar_stream.

5 years agoAdd bug tracker URL.
Jelmer Vernooij [Fri, 15 Jun 2018 22:21:14 +0000 (23:21 +0100)]
Add bug tracker URL.

5 years agoMerge basic stash support.
Jelmer Vernooij [Fri, 15 Jun 2018 22:19:41 +0000 (23:19 +0100)]
Merge basic stash support.

5 years agoAdd a setup.cfg file.
Jelmer Vernooij [Fri, 15 Jun 2018 15:44:37 +0000 (16:44 +0100)]
Add a setup.cfg file.

5 years agofix TypeError in _ParamikoWrapper
Filipp Frizzy [Mon, 2 Apr 2018 20:13:43 +0000 (23:13 +0300)]
fix TypeError in _ParamikoWrapper
cannot concatenate 'str' and 'NoneType' objects

5 years agoFix ls_tree function
Romain Keramitas [Thu, 14 Jun 2018 08:14:28 +0000 (10:14 +0200)]
Fix ls_tree function

Signed-off-by: Romain Keramitas <r.keramitas@gmail.com>
5 years agoAdd example for using memoryrepo.
Jelmer Vernooij [Sun, 3 Jun 2018 20:59:06 +0000 (21:59 +0100)]
Add example for using memoryrepo.

5 years agoUse constant for LOCAL_BRANCH_PREFIX.
Jelmer Vernooij [Sun, 3 Jun 2018 20:35:03 +0000 (21:35 +0100)]
Use constant for LOCAL_BRANCH_PREFIX.

5 years agoAdd support for subdirs and prefix arguments in GitClient.archive.
Jelmer Vernooij [Sat, 19 May 2018 02:09:45 +0000 (03:09 +0100)]
Add support for subdirs and prefix arguments in GitClient.archive.

5 years agoFix restricted build for python3.3.
Jelmer Vernooij [Fri, 18 May 2018 21:24:01 +0000 (22:24 +0100)]
Fix restricted build for python3.3.

5 years agoAdd --remote argument to 'dulwich archive'.
Jelmer Vernooij [Fri, 18 May 2018 20:57:13 +0000 (21:57 +0100)]
Add --remote argument to 'dulwich archive'.

5 years agoFix a typo in dulwich.porcelain.status
Boris Feld [Thu, 17 May 2018 16:30:22 +0000 (18:30 +0200)]
Fix a typo in dulwich.porcelain.status

s/ignoed/ignored

5 years agoDon't install gevent on python3.3; gevent no longer supports 3.3.
Jelmer Vernooij [Thu, 17 May 2018 18:14:41 +0000 (19:14 +0100)]
Don't install gevent on python3.3; gevent no longer supports 3.3.

5 years agoMore robust symlink creation test
Daniel Andersson [Fri, 11 May 2018 17:14:05 +0000 (19:14 +0200)]
More robust symlink creation test

The current test suite fails when running on a new enough Python version
on Windows to have the `os.symlink` function available (Python 3.2 and
later), but without privileges to create symlinks, which is the general
case when not running as administrator.

This fix skips the symlink creation tests when the test process either
does not have symlink capabilities, or has them but not enough privilege
to create symlinks.

6 years agoFix indentation.
Jelmer Vernooij [Wed, 9 May 2018 20:03:38 +0000 (21:03 +0100)]
Fix indentation.

6 years agoUse os.replace if available.
Jelmer Vernooij [Wed, 9 May 2018 19:40:10 +0000 (20:40 +0100)]
Use os.replace if available.

6 years agoMake fancy_rename python3-compatible.
Jelmer Vernooij [Wed, 9 May 2018 19:25:07 +0000 (20:25 +0100)]
Make fancy_rename python3-compatible.

6 years agoFix indentation.
Jelmer Vernooij [Wed, 9 May 2018 19:17:21 +0000 (20:17 +0100)]
Fix indentation.

6 years agoFix os.path.sep replacement on Python3.
Jelmer Vernooij [Wed, 9 May 2018 19:14:53 +0000 (20:14 +0100)]
Fix os.path.sep replacement on Python3.

6 years agoMore robust pack file rename on Windows
Daniel Andersson [Tue, 8 May 2018 14:55:46 +0000 (16:55 +0200)]
More robust pack file rename on Windows

Simplify the existing solution for `DiskObjectStore._complete_thin_pack`
and repeat it for `MemoryObjectStore.move_in_pack` that has the same
need.

Checking the platform before unlinking was needed before since
`WindowsError` was caught, which is only defined on Windows. Since this
is a subclass of `OSError`, there is no real need to be that specific.
The platform check can remain as a minor time saver, since it seems to
be guaranteed that unlinking is never necessary on other platforms.

Another alternative could be using `shutil.move`, which silently
replaces existing targets. Python 3.3 and newer also have `os.replace`
for similar functionality.

The previous code comment mentioning that a possibly existing target
file should have the same content as the source file seems to be false,
which is the reason for
`test_object_store.DiskObjectStoreTests.test_repack_existing` failing on
Windows. This commit should mend this test.

6 years agoSet source in coveragerc rather than passing on command-line.
Jelmer Vernooij [Mon, 7 May 2018 14:44:14 +0000 (15:44 +0100)]
Set source in coveragerc rather than passing on command-line.

6 years agoUpdate my email address. jelmer@samba.org => jelmer@jelmer.uk.
Jelmer Vernooij [Mon, 7 May 2018 12:39:04 +0000 (13:39 +0100)]
Update my email address. jelmer@samba.org => jelmer@jelmer.uk.

6 years agoFix tests on python3.
Jelmer Vernooij [Fri, 4 May 2018 21:44:00 +0000 (22:44 +0100)]
Fix tests on python3.

6 years agoMerge branch 'fix-porcelain-fetch' of https://github.com/dandersson/dulwich
Jelmer Vernooij [Fri, 4 May 2018 19:04:04 +0000 (20:04 +0100)]
Merge branch 'fix-porcelain-fetch' of https://github.com/dandersson/dulwich

6 years agoAdd NEWS entry
Daniel Andersson [Fri, 4 May 2018 14:58:35 +0000 (16:58 +0200)]
Add NEWS entry

6 years agoReuse remote ref construction logic from clone
Daniel Andersson [Fri, 4 May 2018 09:35:58 +0000 (11:35 +0200)]
Reuse remote ref construction logic from clone

Move the fetch logic from `porcelain.clone` into `porcelain.fetch` to
fix issues with creating refs for the remote in `porcelain.fetch`, and
just let `porcelain.clone` call `porcelain.fetch` for this action to
avoid code duplication.

This should mend the failing tests added in the parent commit.

6 years agoAdd failing test cases for bad fetch
Daniel Andersson [Fri, 4 May 2018 14:12:45 +0000 (16:12 +0200)]
Add failing test cases for bad fetch

Add assertion that the local knowledge of the remote repository is
correct immediately following `dulwich.porcelain.fetch`.

6 years agoAdd Repo.get_shallow.
Jelmer Vernooij [Mon, 16 Apr 2018 18:16:48 +0000 (19:16 +0100)]
Add Repo.get_shallow.

6 years agoFix appveyor build link.
Jelmer Vernooij [Fri, 13 Apr 2018 09:22:59 +0000 (10:22 +0100)]
Fix appveyor build link.

6 years agoFix style errors.
Jelmer Vernooij [Thu, 12 Apr 2018 23:00:58 +0000 (00:00 +0100)]
Fix style errors.

6 years agoAdd checkout argument to clone. Fixes #503
Jelmer Vernooij [Thu, 12 Apr 2018 22:55:12 +0000 (23:55 +0100)]
Add checkout argument to clone. Fixes #503

6 years agoFix check-tutorial.
Jelmer Vernooij [Thu, 12 Apr 2018 22:45:16 +0000 (23:45 +0100)]
Fix check-tutorial.

6 years agoFix the tutorial tests on python3. Fixes: #573
Jelmer Vernooij [Thu, 12 Apr 2018 22:23:45 +0000 (23:23 +0100)]
Fix the tutorial tests on python3. Fixes: #573

6 years agoBuild on pypy3.5.
Jelmer Vernooij [Thu, 12 Apr 2018 20:32:59 +0000 (21:32 +0100)]
Build on pypy3.5.

6 years agoFix style.
Jelmer Vernooij [Thu, 12 Apr 2018 18:41:56 +0000 (19:41 +0100)]
Fix style.

6 years agoUse pack data rather than actual objects during fetch.
Jelmer Vernooij [Thu, 12 Apr 2018 00:50:16 +0000 (01:50 +0100)]
Use pack data rather than actual objects during fetch.

6 years agoPass along progress function for pack writing progress.
Jelmer Vernooij [Thu, 12 Apr 2018 00:37:08 +0000 (01:37 +0100)]
Pass along progress function for pack writing progress.

6 years agoPrimarily use encoded paths in DiskRefsContainer.
Jelmer Vernooij [Thu, 12 Apr 2018 00:15:27 +0000 (01:15 +0100)]
Primarily use encoded paths in DiskRefsContainer.

6 years agoSupport byte filenames in GitFile.
Jelmer Vernooij [Thu, 12 Apr 2018 00:15:05 +0000 (01:15 +0100)]
Support byte filenames in GitFile.

6 years agoFollowup fix for #608; also handle Repo.get_refs.
Jelmer Vernooij [Thu, 12 Apr 2018 00:00:46 +0000 (01:00 +0100)]
Followup fix for #608; also handle Repo.get_refs.

6 years agoSupport setting DULWICH_PDB to have SIGQUIT trigger pdb.
Jelmer Vernooij [Wed, 11 Apr 2018 23:52:08 +0000 (00:52 +0100)]
Support setting DULWICH_PDB to have SIGQUIT trigger pdb.

6 years agoUse errno rather than hardcoded windows error number.
Jelmer Vernooij [Mon, 9 Apr 2018 02:42:50 +0000 (03:42 +0100)]
Use errno rather than hardcoded windows error number.

6 years agoBe os.path.sep-independent.
Jelmer Vernooij [Mon, 9 Apr 2018 02:29:12 +0000 (03:29 +0100)]
Be os.path.sep-independent.

6 years agoFix os.path.sep replacement on Windows.
Jelmer Vernooij [Mon, 9 Apr 2018 02:27:07 +0000 (03:27 +0100)]
Fix os.path.sep replacement on Windows.

6 years agoStrip forward slashes after conversion from os.path.sep.
Jelmer Vernooij [Mon, 9 Apr 2018 02:25:13 +0000 (03:25 +0100)]
Strip forward slashes after conversion from os.path.sep.

6 years agoClean up repo in test.
Jelmer Vernooij [Mon, 9 Apr 2018 02:23:26 +0000 (03:23 +0100)]
Clean up repo in test.

6 years agoAllow rename error when the target already exists, on Windows. #559
Jelmer Vernooij [Mon, 9 Apr 2018 02:14:22 +0000 (03:14 +0100)]
Allow rename error when the target already exists, on Windows. #559

6 years agoFix handling of encoding for tags. #608
Jelmer Vernooij [Mon, 9 Apr 2018 01:46:55 +0000 (02:46 +0100)]
Fix handling of encoding for tags. #608

6 years agoFix tests on python3.
Jelmer Vernooij [Sun, 8 Apr 2018 17:10:30 +0000 (18:10 +0100)]
Fix tests on python3.

6 years agoAdd really basic dulwich.porcelain.fsck.
Jelmer Vernooij [Sun, 8 Apr 2018 16:51:20 +0000 (17:51 +0100)]
Add really basic dulwich.porcelain.fsck.

6 years agoStart on 0.19.3.
Jelmer Vernooij [Sun, 8 Apr 2018 16:50:20 +0000 (17:50 +0100)]
Start on 0.19.3.

6 years agoRelease 0.19.2 dulwich-0.19.2
Jelmer Vernooij [Sat, 7 Apr 2018 13:49:22 +0000 (14:49 +0100)]
Release 0.19.2

6 years agoFix Index.iterblobs behaviour, add test.
Jelmer Vernooij [Sat, 7 Apr 2018 13:26:51 +0000 (14:26 +0100)]
Fix Index.iterblobs behaviour, add test.

6 years agoDisallow .git entries in trees, like C git.
Jelmer Vernooij [Sat, 7 Apr 2018 01:06:54 +0000 (02:06 +0100)]
Disallow .git entries in trees, like C git.

6 years agoStart on 0.19.2.
Jelmer Vernooij [Thu, 5 Apr 2018 23:21:02 +0000 (00:21 +0100)]
Start on 0.19.2.

6 years agoRelease 0.19.1 dulwich-0.19.1
Jelmer Vernooij [Thu, 5 Apr 2018 23:13:07 +0000 (00:13 +0100)]
Release 0.19.1

6 years agoOnly pass key_filename and password into SSHVendor.run_command if they are set (for...
Jelmer Vernooij [Thu, 5 Apr 2018 23:03:02 +0000 (00:03 +0100)]
Only pass key_filename and password into SSHVendor.run_command if they are set (for backwards compatibility)

6 years agoSSHVendor: password is independent of key_filename.
Jelmer Vernooij [Thu, 5 Apr 2018 22:58:41 +0000 (23:58 +0100)]
SSHVendor: password is independent of key_filename.

6 years agoUse keyword arguments to prevent accidentally passing in the wrong arguments to super...
Jelmer Vernooij [Mon, 2 Apr 2018 18:46:56 +0000 (19:46 +0100)]
Use keyword arguments to prevent accidentally passing in the wrong arguments to super constructor.

6 years agoMerge change from PuttySSHVendor => PLinkSSHVendor.
Jelmer Vernooij [Mon, 2 Apr 2018 17:20:33 +0000 (18:20 +0100)]
Merge change from PuttySSHVendor => PLinkSSHVendor.

6 years agoRemoving PuttySSHVendor tests.
Adam Bradley [Mon, 2 Apr 2018 16:51:21 +0000 (12:51 -0400)]
Removing PuttySSHVendor tests.

6 years agoRemoving PuttySSHVendor.
Adam Bradley [Mon, 2 Apr 2018 16:36:33 +0000 (12:36 -0400)]
Removing PuttySSHVendor.

6 years agoRemove duplicate empty line.
Jelmer Vernooij [Mon, 2 Apr 2018 15:28:27 +0000 (16:28 +0100)]
Remove duplicate empty line.

6 years agoadd basic tests for stash.
Jelmer Vernooij [Mon, 2 Apr 2018 15:27:23 +0000 (16:27 +0100)]
add basic tests for stash.

6 years agoAdd stash push.
Jelmer Vernooij [Sat, 31 Mar 2018 16:58:18 +0000 (17:58 +0100)]
Add stash push.

6 years agoAdd basic Stash class.
Jelmer Vernooij [Sat, 31 Mar 2018 15:38:35 +0000 (16:38 +0100)]
Add basic Stash class.

6 years agoFix repeat HTTP requests using the same smart HTTP client.
Jelmer Vernooij [Mon, 2 Apr 2018 14:47:25 +0000 (15:47 +0100)]
Fix repeat HTTP requests using the same smart HTTP client.

6 years agoFactor out a parse_rsync_url function.
Jelmer Vernooij [Mon, 2 Apr 2018 13:21:02 +0000 (14:21 +0100)]
Factor out a parse_rsync_url function.

6 years agoOnly import urllib3 when it's used.
Jelmer Vernooij [Sat, 31 Mar 2018 19:25:38 +0000 (20:25 +0100)]
Only import urllib3 when it's used.

6 years agoAdd LOCAL_TAG_PREFIX constant.
Jelmer Vernooij [Sat, 31 Mar 2018 17:29:14 +0000 (18:29 +0100)]
Add LOCAL_TAG_PREFIX constant.

6 years agoAdd object_store argument to index_entry_from_path.
Jelmer Vernooij [Sat, 31 Mar 2018 16:59:02 +0000 (17:59 +0100)]
Add object_store argument to index_entry_from_path.

6 years agoFix 'remote add' command.
Jelmer Vernooij [Sat, 31 Mar 2018 15:39:09 +0000 (16:39 +0100)]
Fix 'remote add' command.