Jelmer Vernooij [Sun, 4 Nov 2018 14:14:44 +0000 (14:14 +0000)]
Pass through deepen flag.
Jelmer Vernooij [Sat, 20 Oct 2018 21:51:23 +0000 (21:51 +0000)]
Fix encoding on python 3.
Jelmer Vernooij [Sat, 20 Oct 2018 20:36:59 +0000 (20:36 +0000)]
Fix spacing.
Jelmer Vernooij [Sat, 20 Oct 2018 20:23:42 +0000 (20:23 +0000)]
Fix duplicate test name.
Jelmer Vernooij [Sat, 20 Oct 2018 19:17:51 +0000 (19:17 +0000)]
Support the i18n.commitEncoding setting.
Jelmer Vernooij [Sat, 20 Oct 2018 19:08:50 +0000 (19:08 +0000)]
Add get_object_by_path.
Jelmer Vernooij [Fri, 19 Oct 2018 21:26:10 +0000 (22:26 +0100)]
Update NEWS.
Nicolas Dandrimont [Fri, 19 Oct 2018 15:44:12 +0000 (17:44 +0200)]
Split authorship lines from the right instead of from the left
Git authorship lines are in the form 'author Name <em@i.l> timestamp timezone'.
Some clients mess up the 'Name <em@i.l>' part badly, for instance by setting two
email addresses. Splitting identity and timestamp by looking at the '> ' part
from the right instead of the left helps parse some of those messed up commits.
Such commits still fail the check() method (and they raise a warning in git fsck
upstream as well), but we can at least work with them.
(This edge case brought to you by https://forge.softwareheritage.org/T1280)
Jelmer Vernooij [Tue, 16 Oct 2018 22:31:59 +0000 (22:31 +0000)]
Fix long line.
Jelmer Vernooij [Tue, 16 Oct 2018 22:02:10 +0000 (22:02 +0000)]
Decode error message.
Jelmer Vernooij [Sun, 14 Oct 2018 16:29:16 +0000 (16:29 +0000)]
Remove silly messages in server output.
Jelmer Vernooij [Fri, 5 Oct 2018 16:09:31 +0000 (17:09 +0100)]
Disable python 3.8-dev for now; flakes checker is broken on 3.8-dev.
Jelmer Vernooij [Fri, 5 Oct 2018 09:27:28 +0000 (10:27 +0100)]
Fix style errors.
Jelmer Vernooij [Fri, 5 Oct 2018 09:15:28 +0000 (10:15 +0100)]
Add read_packs_file function.
Jelmer Vernooij [Fri, 28 Sep 2018 05:37:12 +0000 (06:37 +0100)]
Fix style.
Jelmer Vernooij [Fri, 28 Sep 2018 05:03:19 +0000 (06:03 +0100)]
Support error lines with ERROR: as well.
Jelmer Vernooij [Fri, 28 Sep 2018 02:07:00 +0000 (03:07 +0100)]
Raise more useful error messages when unable to access repositories over SSH, subprocess.
Jelmer Vernooij [Fri, 28 Sep 2018 02:06:29 +0000 (03:06 +0100)]
Fix arguments to setup.py - summary doesn't exist.
Jelmer Vernooij [Sun, 16 Sep 2018 22:24:33 +0000 (23:24 +0100)]
Avoid setup.cfg for now, since it seems to break pypi. Fixes #658
Jelmer Vernooij [Fri, 14 Sep 2018 22:29:27 +0000 (23:29 +0100)]
Remove unused import, fix style.
Jelmer Vernooij [Fri, 14 Sep 2018 21:48:27 +0000 (22:48 +0100)]
Fix tests on Python 3.
Jelmer Vernooij [Fri, 14 Sep 2018 17:34:28 +0000 (18:34 +0100)]
Merge branch 'bugfix/http-client-gzip-responses' of git://github.com/olasd/dulwich
Jelmer Vernooij [Fri, 14 Sep 2018 17:33:48 +0000 (18:33 +0100)]
Fix style.
Nicolas Dandrimont [Fri, 14 Sep 2018 16:46:54 +0000 (18:46 +0200)]
Don't double-decompress gzipped HTTP responses
When using urllib3.response.HTTPResponse's data attribute, decompression of the
response contents is transparent.
Reference: https://forge.softwareheritage.org/T1195
Test-Repository: https://forge.softwareheritage.org/source/helloworld.git
Jelmer Vernooij [Wed, 12 Sep 2018 00:31:31 +0000 (01:31 +0100)]
Raise exception when a caller tries to fetch SHA1s that are not in any refs.
The alternative is a cryptic message saying the server has disconnected.
Jelmer Vernooij [Tue, 11 Sep 2018 22:57:19 +0000 (23:57 +0100)]
Use constant for ANNOTATED_TAG_SUFFIX.
Jelmer Vernooij [Tue, 11 Sep 2018 22:43:23 +0000 (23:43 +0100)]
Add check_wants.
Jelmer Vernooij [Wed, 5 Sep 2018 20:17:23 +0000 (21:17 +0100)]
Fix compatibility with newer versions of git, which expect CONTENT_LENGTH to be set to 0 for empty body requests.
Fixes #657
Jelmer Vernooij [Fri, 24 Aug 2018 02:04:55 +0000 (03:04 +0100)]
Drop travis build on python 3.5-dev.
Jelmer Vernooij [Fri, 24 Aug 2018 01:06:41 +0000 (02:06 +0100)]
Remove unused variable.
Jelmer Vernooij [Fri, 24 Aug 2018 00:34:18 +0000 (01:34 +0100)]
Allow username and password to be overridden in calls to HttpGitClient.from_parsed_url. #654
Jelmer Vernooij [Tue, 21 Aug 2018 22:33:13 +0000 (23:33 +0100)]
Merge fix for handling of stderr/stdout on pythonw.
Jelmer Vernooij [Tue, 21 Aug 2018 22:28:46 +0000 (23:28 +0100)]
Replace / with \ on windows.
Sylvia van Os [Tue, 21 Aug 2018 20:44:40 +0000 (22:44 +0200)]
Fix Python 2
Sylvia van Os [Tue, 21 Aug 2018 19:17:47 +0000 (21:17 +0200)]
Switch test to other function
Sylvia van Os [Tue, 21 Aug 2018 11:36:45 +0000 (13:36 +0200)]
Add test for automatic pythonw fallback of outstream/errstream
Sylvia van Os [Sun, 19 Aug 2018 18:45:14 +0000 (20:45 +0200)]
Add fallback for unavailable stdout/stderr
Jelmer Vernooij [Sat, 11 Aug 2018 13:52:49 +0000 (14:52 +0100)]
Start on 0.19.7.
Jelmer Vernooij [Sat, 11 Aug 2018 13:50:19 +0000 (14:50 +0100)]
Release 0.19.6
Jelmer Vernooij [Sat, 11 Aug 2018 13:49:46 +0000 (14:49 +0100)]
Update NEWS.
Jelmer Vernooij [Sat, 11 Aug 2018 13:46:57 +0000 (14:46 +0100)]
Update AUTHORS.
Jelmer Vernooij [Fri, 10 Aug 2018 23:17:37 +0000 (00:17 +0100)]
Merge fix for custom auth parameters for dulwich.porcelain.clone.
semyon-slepov [Fri, 10 Aug 2018 12:52:25 +0000 (14:52 +0200)]
Fix style (long line)
semyon-slepov [Fri, 10 Aug 2018 12:24:37 +0000 (14:24 +0200)]
Pass optional arguments to fetch() while cloning
Jelmer Vernooij [Tue, 7 Aug 2018 19:15:43 +0000 (20:15 +0100)]
Avoid use of urllib2.splituser (removed in python 3.8).
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.
Daniel M. Capella [Mon, 6 Aug 2018 06:58:10 +0000 (06:58 +0000)]
Test on Python 3.7 and 3.8-dev
Jelmer Vernooij [Wed, 25 Jul 2018 18:01:57 +0000 (19:01 +0100)]
Support bytes paths in dulwich.index.
grun [Sun, 22 Jul 2018 03:17:17 +0000 (20:17 -0700)]
Pass the <errstream> parameter through from porcelain.clone() to porcelain.fetch().
Jelmer Vernooij [Wed, 18 Jul 2018 10:12:23 +0000 (11:12 +0100)]
Remove unnecessary abspath calls.
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
Jelmer Vernooij [Sun, 8 Jul 2018 12:44:26 +0000 (13:44 +0100)]
Start on 0.19.6.
Jelmer Vernooij [Sun, 8 Jul 2018 12:38:38 +0000 (13:38 +0100)]
Release 0.19.5
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>
Jelmer Vernooij [Tue, 3 Jul 2018 16:44:13 +0000 (17:44 +0100)]
Fix build on Python3, update NEWS.
Sylvia van Os [Tue, 3 Jul 2018 15:33:28 +0000 (17:33 +0200)]
Add unit tests for describe
Sylvia van Os [Sun, 1 Jul 2018 18:02:39 +0000 (20:02 +0200)]
Simple describe implementation
Jelmer Vernooij [Fri, 29 Jun 2018 19:51:38 +0000 (20:51 +0100)]
Update NEWS.
Damien Tournoud [Fri, 29 Jun 2018 14:02:07 +0000 (16:02 +0200)]
refs: Clean-up parent directories when removing references
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
Jelmer Vernooij [Sun, 24 Jun 2018 00:41:23 +0000 (01:41 +0100)]
Start on 0.19.5.
Jelmer Vernooij [Sun, 24 Jun 2018 00:39:13 +0000 (01:39 +0100)]
Release 0.19.4
Jelmer Vernooij [Sun, 24 Jun 2018 00:38:30 +0000 (01:38 +0100)]
Add Index.items.
Jelmer Vernooij [Fri, 22 Jun 2018 16:55:06 +0000 (17:55 +0100)]
Note Index.iteritems in NEWS.
Jelmer Vernooij [Wed, 20 Jun 2018 17:54:50 +0000 (18:54 +0100)]
Implement dulwich.porcelain.ls_files, avoid digraph in setup.cfg.
Jelmer Vernooij [Sun, 17 Jun 2018 22:12:13 +0000 (23:12 +0100)]
Fix description file.
Jelmer Vernooij [Sun, 17 Jun 2018 18:29:38 +0000 (19:29 +0100)]
Start on 0.19.4.
Jelmer Vernooij [Sun, 17 Jun 2018 18:25:02 +0000 (19:25 +0100)]
Release 0.19.3
Jelmer Vernooij [Sun, 17 Jun 2018 15:57:26 +0000 (16:57 +0100)]
Support a prefix argument to dulwich.archive.tar_stream.
Jelmer Vernooij [Fri, 15 Jun 2018 22:21:14 +0000 (23:21 +0100)]
Add bug tracker URL.
Jelmer Vernooij [Fri, 15 Jun 2018 22:19:41 +0000 (23:19 +0100)]
Merge basic stash support.
Jelmer Vernooij [Fri, 15 Jun 2018 15:44:37 +0000 (16:44 +0100)]
Add a setup.cfg file.
Filipp Frizzy [Mon, 2 Apr 2018 20:13:43 +0000 (23:13 +0300)]
fix TypeError in _ParamikoWrapper
cannot concatenate 'str' and 'NoneType' objects
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>
Jelmer Vernooij [Sun, 3 Jun 2018 20:59:06 +0000 (21:59 +0100)]
Add example for using memoryrepo.
Jelmer Vernooij [Sun, 3 Jun 2018 20:35:03 +0000 (21:35 +0100)]
Use constant for LOCAL_BRANCH_PREFIX.
Jelmer Vernooij [Sat, 19 May 2018 02:09:45 +0000 (03:09 +0100)]
Add support for subdirs and prefix arguments in GitClient.archive.
Jelmer Vernooij [Fri, 18 May 2018 21:24:01 +0000 (22:24 +0100)]
Fix restricted build for python3.3.
Jelmer Vernooij [Fri, 18 May 2018 20:57:13 +0000 (21:57 +0100)]
Add --remote argument to 'dulwich archive'.
Boris Feld [Thu, 17 May 2018 16:30:22 +0000 (18:30 +0200)]
Fix a typo in dulwich.porcelain.status
s/ignoed/ignored
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.
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.
Jelmer Vernooij [Wed, 9 May 2018 20:03:38 +0000 (21:03 +0100)]
Fix indentation.
Jelmer Vernooij [Wed, 9 May 2018 19:40:10 +0000 (20:40 +0100)]
Use os.replace if available.
Jelmer Vernooij [Wed, 9 May 2018 19:25:07 +0000 (20:25 +0100)]
Make fancy_rename python3-compatible.
Jelmer Vernooij [Wed, 9 May 2018 19:17:21 +0000 (20:17 +0100)]
Fix indentation.
Jelmer Vernooij [Wed, 9 May 2018 19:14:53 +0000 (20:14 +0100)]
Fix os.path.sep replacement on Python3.
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.
Jelmer Vernooij [Mon, 7 May 2018 14:44:14 +0000 (15:44 +0100)]
Set source in coveragerc rather than passing on command-line.
Jelmer Vernooij [Mon, 7 May 2018 12:39:04 +0000 (13:39 +0100)]
Update my email address. jelmer@samba.org => jelmer@jelmer.uk.
Jelmer Vernooij [Fri, 4 May 2018 21:44:00 +0000 (22:44 +0100)]
Fix tests on python3.
Jelmer Vernooij [Fri, 4 May 2018 19:04:04 +0000 (20:04 +0100)]
Merge branch 'fix-porcelain-fetch' of https://github.com/dandersson/dulwich
Daniel Andersson [Fri, 4 May 2018 14:58:35 +0000 (16:58 +0200)]
Add NEWS entry
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.
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`.
Jelmer Vernooij [Mon, 16 Apr 2018 18:16:48 +0000 (19:16 +0100)]
Add Repo.get_shallow.
Jelmer Vernooij [Fri, 13 Apr 2018 09:22:59 +0000 (10:22 +0100)]
Fix appveyor build link.
Jelmer Vernooij [Thu, 12 Apr 2018 23:00:58 +0000 (00:00 +0100)]
Fix style errors.
Jelmer Vernooij [Thu, 12 Apr 2018 22:55:12 +0000 (23:55 +0100)]
Add checkout argument to clone. Fixes #503
Jelmer Vernooij [Thu, 12 Apr 2018 22:45:16 +0000 (23:45 +0100)]
Fix check-tutorial.