jelmer/dulwich.git
7 years agoreadlink on Windows/python3 requires a unicode string.
Jelmer Vernooij [Mon, 1 May 2017 13:58:25 +0000 (13:58 +0000)]
readlink on Windows/python3 requires a unicode string.

7 years agoEnable modules on Python3/windows.
Jelmer Vernooij [Mon, 1 May 2017 13:54:24 +0000 (13:54 +0000)]
Enable modules on Python3/windows.

7 years agoInstall setuptools/wheel for bdist_wheel.
Jelmer Vernooij [Mon, 1 May 2017 13:53:16 +0000 (13:53 +0000)]
Install setuptools/wheel for bdist_wheel.

7 years agoAvoid need to depend on win32pipe, use ctypes instead.
Jelmer Vernooij [Mon, 1 May 2017 13:48:26 +0000 (13:48 +0000)]
Avoid need to depend on win32pipe, use ctypes instead.

7 years agoReuse some of the appveyor.yml code from https://github.com/ogrisel/python-appveyor...
Jelmer Vernooij [Mon, 1 May 2017 13:28:42 +0000 (13:28 +0000)]
Reuse some of the appveyor.yml code from https://github.com/ogrisel/python-appveyor-demo

7 years agoBuild against Python 3.6 on appveyor.
Jelmer Vernooij [Sun, 30 Apr 2017 14:18:15 +0000 (14:18 +0000)]
Build against Python 3.6 on appveyor.

7 years agoProperly close repository during tests, to fix Windows build.
Jelmer Vernooij [Sun, 30 Apr 2017 14:11:55 +0000 (14:11 +0000)]
Properly close repository during tests, to fix Windows build.

7 years agoAdd really basic code example.
Jelmer Vernooij [Sun, 30 Apr 2017 13:44:06 +0000 (13:44 +0000)]
Add really basic code example.

7 years agoAdd documentation about contributing.
Jelmer Vernooij [Sun, 30 Apr 2017 13:36:49 +0000 (13:36 +0000)]
Add documentation about contributing.

7 years agoAdd note about encoding.
Jelmer Vernooij [Sat, 29 Apr 2017 23:57:34 +0000 (23:57 +0000)]
Add note about encoding.

7 years agoMerge branch 'fix_mix_str_and_non-str_arguments' of https://github.com/dzhuang/dulwich
Jelmer Vernooij [Sat, 29 Apr 2017 23:43:55 +0000 (23:43 +0000)]
Merge branch 'fix_mix_str_and_non-str_arguments' of https://github.com/dzhuang/dulwich

7 years agoFix TypeError: mix str and non-str arguments
dzhuang [Tue, 25 Apr 2017 06:11:32 +0000 (14:11 +0800)]
Fix TypeError: mix str and non-str arguments

``path`` is supposed to be a bytestring according to [here](https://github.com/jelmer/dulwich/blob/master/dulwich/client.py#L1168) and [there](https://github.com/jelmer/dulwich/blob/master/dulwich/client.py#L1181), while ``self._base_url`` is a ``str``, that will result in ``TypeError: Cannot mix str and non-str arguments`` when calling ``urlparse.urljoin``.

7 years agoRefresh authors list.
Jelmer Vernooij [Tue, 25 Apr 2017 18:25:18 +0000 (18:25 +0000)]
Refresh authors list.

7 years agoAdd mailmap.
Jelmer Vernooij [Tue, 25 Apr 2017 18:21:07 +0000 (18:21 +0000)]
Add mailmap.

7 years agotypo
Mikhail Terekhov [Tue, 18 Apr 2017 15:16:13 +0000 (11:16 -0400)]
typo

7 years agoRevert "Separately report coverage for c extension tests and non-c extension tests."
Jelmer Vernooij [Sun, 2 Apr 2017 20:04:20 +0000 (20:04 +0000)]
Revert "Separately report coverage for c extension tests and non-c extension tests."

This reverts commit 7c3cc2db5ea6b48ef19404e11452215fba8987ea.

7 years agoFix codecov config.
Jelmer Vernooij [Sat, 1 Apr 2017 17:58:07 +0000 (17:58 +0000)]
Fix codecov config.

7 years agoFix codecov flags to exclude dashes.
Jelmer Vernooij [Sat, 1 Apr 2017 14:35:45 +0000 (14:35 +0000)]
Fix codecov flags to exclude dashes.

7 years agoFix codecov arguments, make required.
Jelmer Vernooij [Sat, 1 Apr 2017 14:31:00 +0000 (14:31 +0000)]
Fix codecov arguments, make required.

7 years agoSeparately report coverage for c extension tests and non-c extension tests.
Jelmer Vernooij [Sat, 1 Apr 2017 14:23:27 +0000 (14:23 +0000)]
Separately report coverage for c extension tests and non-c extension tests.

7 years agoExclude build and .git when looking for style violations.
Jelmer Vernooij [Fri, 31 Mar 2017 02:00:56 +0000 (02:00 +0000)]
Exclude build and .git when looking for style violations.

7 years agoSome style fixes.
Jelmer Vernooij [Fri, 31 Mar 2017 01:54:08 +0000 (01:54 +0000)]
Some style fixes.

7 years agoAdd 'style' target.
Jelmer Vernooij [Fri, 31 Mar 2017 01:51:44 +0000 (01:51 +0000)]
Add 'style' target.

7 years agoMake refspecs argument to dulwich.porcelain.push mandatory.
Jelmer Vernooij [Fri, 31 Mar 2017 00:46:38 +0000 (00:46 +0000)]
Make refspecs argument to dulwich.porcelain.push mandatory.

7 years agoStart on 0.17.4.
Jelmer Vernooij [Mon, 20 Mar 2017 22:06:34 +0000 (22:06 +0000)]
Start on 0.17.4.

7 years agoRelease 0.17.3 dulwich-0.17.3
Jelmer Vernooij [Mon, 20 Mar 2017 22:04:17 +0000 (22:04 +0000)]
Release 0.17.3

7 years agoAdd NEWS entry about pypy3 support.
Jelmer Vernooij [Mon, 20 Mar 2017 22:03:43 +0000 (22:03 +0000)]
Add NEWS entry about pypy3 support.

7 years agoBuild with pypy3.
Jelmer Vernooij [Mon, 20 Mar 2017 20:45:01 +0000 (20:45 +0000)]
Build with pypy3.

7 years agoRemove duplicate _extra, _parents and _encoding from slots for Commit.
Jelmer Vernooij [Mon, 20 Mar 2017 21:33:11 +0000 (21:33 +0000)]
Remove duplicate _extra, _parents and _encoding from slots for Commit.

7 years agoSimplify travis job definitions
Hugo Osvaldo Barrera [Mon, 20 Mar 2017 18:24:53 +0000 (15:24 -0300)]
Simplify travis job definitions

7 years agoSeparate installation/testing into travis's phases
Hugo Osvaldo Barrera [Mon, 20 Mar 2017 18:19:09 +0000 (15:19 -0300)]
Separate installation/testing into travis's phases

Also use travis_retry in case we have hiccups installing dependencies.

7 years agoUse travis' simpler cache definitions
Hugo Osvaldo Barrera [Mon, 20 Mar 2017 18:18:48 +0000 (15:18 -0300)]
Use travis' simpler cache definitions

7 years agoCheck for specific warning rather than matching entire list. Should fix the build...
Jelmer Vernooij [Mon, 20 Mar 2017 18:40:18 +0000 (18:40 +0000)]
Check for specific warning rather than matching entire list. Should fix the build on python 3.4.

7 years agoList Python 3.3 as supported. Fixes #513.
Jelmer Vernooij [Mon, 20 Mar 2017 17:45:30 +0000 (17:45 +0000)]
List Python 3.3 as supported. Fixes #513.

7 years agoRun tests on Python3.3.
Jelmer Vernooij [Mon, 20 Mar 2017 14:39:02 +0000 (14:39 +0000)]
Run tests on Python3.3.

7 years agoClose repositories used in tests.
Jelmer Vernooij [Mon, 20 Mar 2017 14:50:11 +0000 (14:50 +0000)]
Close repositories used in tests.

7 years agoUse ConfigParser.read_file if available.
Jelmer Vernooij [Mon, 20 Mar 2017 14:45:06 +0000 (14:45 +0000)]
Use ConfigParser.read_file if available.

7 years agoActually add source directory. codecov bitbucket/codecov github/codecov samba.org/codecov
Jelmer Vernooij [Sun, 19 Mar 2017 20:40:13 +0000 (20:40 +0000)]
Actually add source directory.

7 years agoEnable codecov.
Jelmer Vernooij [Sun, 19 Mar 2017 20:32:57 +0000 (20:32 +0000)]
Enable codecov.

7 years agoStart on 0.17.3.
Jelmer Vernooij [Sun, 19 Mar 2017 19:39:20 +0000 (19:39 +0000)]
Start on 0.17.3.

7 years agoRelease 0.17.2. dulwich-0.17.2
Jelmer Vernooij [Sun, 19 Mar 2017 19:29:28 +0000 (19:29 +0000)]
Release 0.17.2.

7 years agoProperly quote config values with a # character. Fixes #511
Jelmer Vernooij [Sat, 18 Mar 2017 22:53:09 +0000 (22:53 +0000)]
Properly quote config values with a # character. Fixes #511

7 years agoRun tests against python3.6.
Jelmer Vernooij [Sat, 18 Mar 2017 22:11:40 +0000 (22:11 +0000)]
Run tests against python3.6.

7 years agoUpdate NEWS.
Jelmer Vernooij [Thu, 16 Mar 2017 16:01:42 +0000 (16:01 +0000)]
Update NEWS.

7 years agoReplace PyString_AsString with PyString_AS_STRING
Victor Stinner [Thu, 16 Mar 2017 13:26:45 +0000 (14:26 +0100)]
Replace PyString_AsString with PyString_AS_STRING

Fix issue #509: Replace PyString_AsString with PyString_AS_STRING to
workaround a PyPy bug in cpyext (PyPy older than 5.6).

7 years agoAdd test for #509 based on snippet posted by Victor Stinner.
Jelmer Vernooij [Thu, 16 Mar 2017 15:59:53 +0000 (15:59 +0000)]
Add test for #509 based on snippet posted by Victor Stinner.

7 years agoStart on 0.17.2.
Jelmer Vernooij [Wed, 1 Mar 2017 20:36:32 +0000 (20:36 +0000)]
Start on 0.17.2.

7 years agoRelease 0.17.1. dulwich-0.17.1
Jelmer Vernooij [Wed, 1 Mar 2017 20:26:53 +0000 (20:26 +0000)]
Release 0.17.1.

7 years agoSlight tweak to CONTRIBUTING.
Jelmer Vernooij [Wed, 1 Mar 2017 20:23:18 +0000 (20:23 +0000)]
Slight tweak to CONTRIBUTING.

7 years agoCope with existing submodules during pull. Fixes #505.
Jelmer Vernooij [Wed, 1 Mar 2017 20:20:53 +0000 (20:20 +0000)]
Cope with existing submodules during pull. Fixes #505.

7 years agoStart on 0.17.1.
Jelmer Vernooij [Wed, 1 Mar 2017 20:15:26 +0000 (20:15 +0000)]
Start on 0.17.1.

7 years agoAdd really basic pull command.
Jelmer Vernooij [Wed, 1 Mar 2017 20:14:39 +0000 (20:14 +0000)]
Add really basic pull command.

7 years agoFix remote commands in command-line tool.
Jelmer Vernooij [Wed, 1 Mar 2017 20:10:54 +0000 (20:10 +0000)]
Fix remote commands in command-line tool.

7 years agoRelease 0.17.0. dulwich-0.17.0
Jelmer Vernooij [Wed, 1 Mar 2017 03:32:15 +0000 (03:32 +0000)]
Release 0.17.0.

7 years agoProperly log off after retrieving just refs.
Jelmer Vernooij [Mon, 27 Feb 2017 23:18:53 +0000 (23:18 +0000)]
Properly log off after retrieving just refs.

7 years agoDon't drop first slash for SSH paths, except for those starting with ~.
Jelmer Vernooij [Mon, 27 Feb 2017 23:12:54 +0000 (23:12 +0000)]
Don't drop first slash for SSH paths, except for those starting with ~.

7 years agoSet bufsize=0 when communicating to SSH client. Fixes hangs on Python3. Fixes #434.
Jelmer Vernooij [Sun, 26 Feb 2017 17:30:23 +0000 (17:30 +0000)]
Set bufsize=0 when communicating to SSH client. Fixes hangs on Python3. Fixes #434.

7 years agoAdd NEWS.
Jelmer Vernooij [Tue, 21 Feb 2017 18:53:29 +0000 (18:53 +0000)]
Add NEWS.

7 years agoSHAFile: Do not trim trailing newlines from extra headers
Nicolas Dandrimont [Tue, 21 Feb 2017 15:00:29 +0000 (16:00 +0100)]
SHAFile: Do not trim trailing newlines from extra headers

Some commits contain extra headers with trailing newlines. We need to keep those
intact if we want to be able to round-trip data back to the original.

7 years agoCheck for bytes rather than absence of list. include ought to be an iterable of ids...
Jelmer Vernooij [Tue, 14 Feb 2017 23:12:08 +0000 (23:12 +0000)]
Check for bytes rather than absence of list. include ought to be an iterable of ids of some sort.

7 years agoSupport passing tag ids to Walkers include argument.
Jelmer Vernooij [Tue, 14 Feb 2017 22:38:17 +0000 (22:38 +0000)]
Support passing tag ids to Walkers include argument.

7 years agoFix handling of HEAD in porcelain.clone.
Jelmer Vernooij [Mon, 13 Feb 2017 21:53:29 +0000 (21:53 +0000)]
Fix handling of HEAD in porcelain.clone.

7 years agoAdd porcelain.remote_add.
Jelmer Vernooij [Mon, 13 Feb 2017 21:45:54 +0000 (21:45 +0000)]
Add porcelain.remote_add.

7 years agoRe-enable test_archive.
Jelmer Vernooij [Mon, 6 Feb 2017 00:10:04 +0000 (00:10 +0000)]
Re-enable test_archive.

7 years agoRe-enable tests for test utils.
Jelmer Vernooij [Sun, 5 Feb 2017 23:45:09 +0000 (23:45 +0000)]
Re-enable tests for test utils.

7 years agoAdd coverage config.
Jelmer Vernooij [Sun, 5 Feb 2017 23:41:25 +0000 (23:41 +0000)]
Add coverage config.

7 years agoUse more idiomatic python.
Jelmer Vernooij [Sun, 5 Feb 2017 22:46:43 +0000 (22:46 +0000)]
Use more idiomatic python.

7 years agoFix dulwich-users link, improve README formatting.
Jelmer Vernooij [Sat, 28 Jan 2017 02:02:50 +0000 (02:02 +0000)]
Fix dulwich-users link, improve README formatting.

7 years agoHandle multi-line quoted values in config files. #495.
Jelmer Vernooij [Thu, 26 Jan 2017 21:46:19 +0000 (21:46 +0000)]
Handle multi-line quoted values in config files. #495.

7 years agoFix python3 compatibility.
Jelmer Vernooij [Thu, 26 Jan 2017 21:26:52 +0000 (21:26 +0000)]
Fix python3 compatibility.

7 years agoAllow passing in relative paths to porcelain.add().
Jelmer Vernooij [Thu, 26 Jan 2017 20:51:30 +0000 (20:51 +0000)]
Allow passing in relative paths to porcelain.add().

7 years agoImplement MemoryRepo.set_description.
Jelmer Vernooij [Mon, 23 Jan 2017 10:08:31 +0000 (10:08 +0000)]
Implement MemoryRepo.set_description.

7 years agoAdd test for tag_time.
Jelmer Vernooij [Fri, 20 Jan 2017 20:26:49 +0000 (20:26 +0000)]
Add test for tag_time.

7 years agoAvoid crashing when accessing the tag_time of a headerless tag.
Lionel Flandrin [Fri, 20 Jan 2017 12:40:13 +0000 (13:40 +0100)]
Avoid crashing when accessing the tag_time of a headerless tag.

Return None instead.

7 years agoFix indentation.
Jelmer Vernooij [Fri, 20 Jan 2017 19:41:18 +0000 (19:41 +0000)]
Fix indentation.

7 years agoSquelch errors in test_index under windows
Koen Martens [Fri, 20 Jan 2017 09:45:45 +0000 (10:45 +0100)]
Squelch errors in test_index under windows

7 years agoUpdate link to mailing list. Fixes #490
Jelmer Vernooij [Fri, 20 Jan 2017 13:12:23 +0000 (13:12 +0000)]
Update link to mailing list. Fixes #490

7 years agoRevert docstring changes, as they break pydoctor.
Jelmer Vernooij [Fri, 20 Jan 2017 04:24:45 +0000 (04:24 +0000)]
Revert docstring changes, as they break pydoctor.

7 years agoRemove unnecessary __docformat__ settings, broken text.
Jelmer Vernooij [Fri, 20 Jan 2017 04:21:02 +0000 (04:21 +0000)]
Remove unnecessary __docformat__ settings, broken text.

7 years agofix release robot issue for commit only tag
Mark Mikofski [Wed, 18 Jan 2017 00:42:02 +0000 (16:42 -0800)]
fix release robot issue for commit only tag

- if tag is not annotated, then it will be a commit object, instead of
creating a tag object
- don't check if ref object is tag, instead check if "tags" is in the
ref name
- change docstring to show how release_robot could be used as alternate
to versioneer, ie: copy and paste gist

https://gist.github.com/mikofski/e923750b415e4e4961b65a8eb42999e8#file-xyz__init__-py
- don't use contrib folder as default projdir, instead default to '.'
- return tag meta data if there is any from get_recent_tags() as tuple
(tag time, tag id, tag name) otherwise it's (None, None, None)
- remove test_tag_pattern from release_robot since it's in
test_release_robot()
- add tests

Signed-off-by: Mark Mikofski <mark.mikofski@sunpowercorp.com>
7 years agoRun release_robot tests as part of regular testsuite.
Jelmer Vernooij [Wed, 18 Jan 2017 02:48:47 +0000 (02:48 +0000)]
Run release_robot tests as part of regular testsuite.

7 years agoUpdate MANIFEST.in.
Jelmer Vernooij [Sun, 15 Jan 2017 15:14:43 +0000 (15:14 +0000)]
Update MANIFEST.in.

7 years agoAdd a superclass for Dulwich subcommands.
Jelmer Vernooij [Sun, 15 Jan 2017 15:12:54 +0000 (15:12 +0000)]
Add a superclass for Dulwich subcommands.

7 years agoDon't print "Changes to be committed" header if there are no changes to
Jelmer Vernooij [Sun, 15 Jan 2017 14:55:39 +0000 (14:55 +0000)]
Don't print "Changes to be committed" header if there are no changes to
commit.

7 years agoStart on 0.16.4.
Jelmer Vernooij [Sat, 14 Jan 2017 20:08:39 +0000 (20:08 +0000)]
Start on 0.16.4.

7 years agoRelease 0.16.3. dulwich-0.16.3
Jelmer Vernooij [Sat, 14 Jan 2017 20:01:42 +0000 (20:01 +0000)]
Release 0.16.3.

7 years agoRemove racy check that relies on mtime changing between writes.
Jelmer Vernooij [Sat, 14 Jan 2017 19:50:23 +0000 (19:50 +0000)]
Remove racy check that relies on mtime changing between writes.

7 years agoAvoid double call to os.lstat.
Jelmer Vernooij [Sat, 14 Jan 2017 19:46:04 +0000 (19:46 +0000)]
Avoid double call to os.lstat.

7 years agoRun tests against a few more pythonv versions.
Jelmer Vernooij [Sat, 14 Jan 2017 18:18:28 +0000 (18:18 +0000)]
Run tests against a few more pythonv versions.

7 years agoStart on 0.16.3.
Jelmer Vernooij [Sat, 14 Jan 2017 16:36:42 +0000 (16:36 +0000)]
Start on 0.16.3.

7 years agoRelease 0.16.2. dulwich-0.16.2
Jelmer Vernooij [Sat, 14 Jan 2017 16:33:36 +0000 (16:33 +0000)]
Release 0.16.2.

7 years agoUpdate NEWS
Jelmer Vernooij [Sat, 14 Jan 2017 16:23:39 +0000 (16:23 +0000)]
Update NEWS

7 years agoUse os.sync where possible.
Jelmer Vernooij [Sat, 14 Jan 2017 16:14:55 +0000 (16:14 +0000)]
Use os.sync where possible.

Check st_size to prevent reading existing file unless it has the same
size as the old file in build_file_from_blob.

7 years agoAdd test case for #479 #480
Benoit HERVIER [Wed, 11 Jan 2017 22:41:09 +0000 (23:41 +0100)]
Add test case for #479 #480

7 years agoAvoid useless write and file stats change #479
Benoît HERVIER [Tue, 10 Jan 2017 20:55:33 +0000 (21:55 +0100)]
Avoid useless write and file stats change  #479

Avoid writing file when no change happen and so writing file without modification will change file stats  #479

7 years agoCheck for existance of index file before opening pack.
OnMaster [Thu, 12 Jan 2017 14:50:29 +0000 (15:50 +0100)]
Check for existance of index file before opening pack.

This fixes #482:(Concurrent access to a repository on Windows sometimes fails.

7 years agoRevert formatting change in index.py that breaks windows compatibility.
Koen Martens [Wed, 11 Jan 2017 10:54:08 +0000 (11:54 +0100)]
Revert formatting change in index.py that breaks windows compatibility.

7 years agoUpdate NEWS.
Jelmer Vernooij [Wed, 11 Jan 2017 21:10:09 +0000 (21:10 +0000)]
Update NEWS.

7 years agohandle deleted files when getting unstaged changes
Doug Hellmann [Wed, 11 Jan 2017 20:37:25 +0000 (15:37 -0500)]
handle deleted files when getting unstaged changes

If one of the changes that hasn't been staged involves deleting a file,
blob_from_path_and_stat() throws an OSError. Trap the error and treat
the deleted file as a change by emitting the name of the file.

This bug was reported downstream against reno as
https://bugs.launchpad.net/reno/+bug/1655719

Signed-off-by: Doug Hellmann <doug@doughellmann.com>
7 years agoCope with submodules in build_index_from_tree.
Jelmer Vernooij [Tue, 10 Jan 2017 01:54:06 +0000 (01:54 +0000)]
Cope with submodules in build_index_from_tree.

Fixes #477