jelmer/dulwich.git
6 years agoStyle fixes. blame bitbucket/blame github/blame samba.org/blame
Jelmer Vernooij [Sun, 16 Jul 2017 17:32:41 +0000 (17:32 +0000)]
Style fixes.

6 years agoAvoid creating a new list() during annotate.
Jelmer Vernooij [Fri, 30 Dec 2016 12:17:08 +0000 (12:17 +0000)]
Avoid creating a new list() during annotate.

6 years agoAdd news entry about annotate.
Jelmer Vernooij [Wed, 9 Nov 2016 15:14:43 +0000 (15:14 +0000)]
Add news entry about annotate.

6 years agoUse slightly faster SequenceMatcher.
Jelmer Vernooij [Wed, 9 Nov 2016 14:56:14 +0000 (14:56 +0000)]
Use slightly faster SequenceMatcher.

6 years agoAdd annotate support.
Jelmer Vernooij [Sun, 1 Nov 2015 18:28:04 +0000 (18:28 +0000)]
Add annotate support.

6 years agoSanitize handling of paths for porcelain.add.
Jelmer Vernooij [Sun, 16 Jul 2017 17:51:24 +0000 (17:51 +0000)]
Sanitize handling of paths for porcelain.add.

6 years agoRequire that callers pass in a relative path to IgnoreFilterManager.
Jelmer Vernooij [Sun, 16 Jul 2017 14:49:38 +0000 (14:49 +0000)]
Require that callers pass in a relative path to IgnoreFilterManager.

6 years agoMake sure path is encoded before using it in e.g. tree lookups.
Jelmer Vernooij [Sun, 16 Jul 2017 14:42:51 +0000 (14:42 +0000)]
Make sure path is encoded before using it in e.g. tree lookups.

Should fix tests on Windows.

6 years agoActually remove files from disk in ``dulwich.porcelain.remove``. Fixes
Jelmer Vernooij [Sun, 16 Jul 2017 14:26:58 +0000 (14:26 +0000)]
Actually remove files from disk in ``dulwich.porcelain.remove``. Fixes

6 years agoAdd example based on gitignore manpage.
Jelmer Vernooij [Sun, 16 Jul 2017 14:03:15 +0000 (14:03 +0000)]
Add example based on gitignore manpage.

6 years agoAdd another test for empty path elements.
Jelmer Vernooij [Sun, 16 Jul 2017 13:47:56 +0000 (13:47 +0000)]
Add another test for empty path elements.

6 years agoAsterisk can match an empty string too.
Jelmer Vernooij [Sun, 16 Jul 2017 13:32:45 +0000 (13:32 +0000)]
Asterisk can match an empty string too.

6 years agoHandle .gitignore files with \r\n line endings
Segev Finer [Sun, 16 Jul 2017 12:59:55 +0000 (15:59 +0300)]
Handle .gitignore files with \r\n line endings

6 years agoConsistent formatting of bullet points in NEWS.
Jelmer Vernooij [Sun, 16 Jul 2017 12:10:08 +0000 (12:10 +0000)]
Consistent formatting of bullet points in NEWS.

6 years agoSupport ignored argument to dulwich.porcelain.status.
Jelmer Vernooij [Sun, 16 Jul 2017 12:05:52 +0000 (12:05 +0000)]
Support ignored argument to dulwich.porcelain.status.

6 years agoAdd convenience function for converting path to tree path.
Jelmer Vernooij [Sun, 16 Jul 2017 11:55:24 +0000 (11:55 +0000)]
Add convenience function for converting path to tree path.

6 years agoFix Python3.
Jelmer Vernooij [Sun, 16 Jul 2017 11:50:31 +0000 (11:50 +0000)]
Fix Python3.

6 years agoProperly check for directory paths with trailing slash in IgnoreFilterManager.
Jelmer Vernooij [Sun, 16 Jul 2017 11:24:26 +0000 (11:24 +0000)]
Properly check for directory paths with trailing slash in IgnoreFilterManager.

6 years agoAdd some more documentation.
Jelmer Vernooij [Sun, 16 Jul 2017 11:11:18 +0000 (11:11 +0000)]
Add some more documentation.

6 years agoSupport ignorecase setting.
Jelmer Vernooij [Sun, 16 Jul 2017 11:05:01 +0000 (11:05 +0000)]
Support ignorecase setting.

6 years agoTranslate Windows path separators to slashes.
Jelmer Vernooij [Sat, 15 Jul 2017 18:32:03 +0000 (18:32 +0000)]
Translate Windows path separators to slashes.

6 years agoAttempt to fix build on appveyor.
Jelmer Vernooij [Sat, 15 Jul 2017 18:05:58 +0000 (18:05 +0000)]
Attempt to fix build on appveyor.

6 years agoProperly support submodules in ``porcelain.status``. Fixes #517
Jelmer Vernooij [Sat, 15 Jul 2017 16:33:47 +0000 (16:33 +0000)]
Properly support submodules in ``porcelain.status``. Fixes #517

6 years agoIgnore files in subrepositories.
Jelmer Vernooij [Sat, 15 Jul 2017 16:24:58 +0000 (16:24 +0000)]
Ignore files in subrepositories.

6 years agoHook ignore support into status.
Jelmer Vernooij [Sat, 15 Jul 2017 15:34:04 +0000 (15:34 +0000)]
Hook ignore support into status.

6 years agoAdd Pattern.__str__.
Jelmer Vernooij [Sat, 15 Jul 2017 15:02:31 +0000 (15:02 +0000)]
Add Pattern.__str__.

6 years agoAdd IgnoreFilterManager.find_matching and IgnoreFilter.find_matching, to find actual...
Jelmer Vernooij [Sat, 15 Jul 2017 14:59:30 +0000 (14:59 +0000)]
Add IgnoreFilterManager.find_matching and IgnoreFilter.find_matching, to find actual ignore patterns that matched.

6 years agoCompile regexes, and keep track of pattern string.
Jelmer Vernooij [Sat, 15 Jul 2017 14:40:40 +0000 (14:40 +0000)]
Compile regexes, and keep track of pattern string.

6 years agoImplement IgnoreFilterManager.__repr__.
Jelmer Vernooij [Sat, 15 Jul 2017 14:23:58 +0000 (14:23 +0000)]
Implement IgnoreFilterManager.__repr__.

6 years agoDon't use os.path.sep since that changes with the platform
Segev Finer [Thu, 13 Jul 2017 07:55:22 +0000 (10:55 +0300)]
Don't use os.path.sep since that changes with the platform

We might want to convert all paths to POSIX to make this work
with platform specific paths (Windows paths :P)

6 years agoLook in lower directory ignore files first.
Jelmer Vernooij [Thu, 13 Jul 2017 01:23:58 +0000 (01:23 +0000)]
Look in lower directory ignore files first.

6 years agoImplement check-ignore.
Jelmer Vernooij [Thu, 13 Jul 2017 00:27:20 +0000 (00:27 +0000)]
Implement check-ignore.

6 years agoHonor ignores in dulwich.porcelain.add.
Jelmer Vernooij [Wed, 12 Jul 2017 23:53:48 +0000 (23:53 +0000)]
Honor ignores in dulwich.porcelain.add.

6 years agoignore: Fix default_user_ignore_filter_path when HOME is not set
Segev Finer [Wed, 12 Jul 2017 20:24:58 +0000 (23:24 +0300)]
ignore: Fix default_user_ignore_filter_path when HOME is not set

For example on Windows.

6 years agoFix another flake8 error.
Jelmer Vernooij [Tue, 11 Jul 2017 01:56:20 +0000 (01:56 +0000)]
Fix another flake8 error.

6 years agoFix python3 support for ignores.
Jelmer Vernooij [Tue, 11 Jul 2017 01:45:16 +0000 (01:45 +0000)]
Fix python3 support for ignores.

6 years agoRun style tests in travis.
Jelmer Vernooij [Tue, 11 Jul 2017 01:38:37 +0000 (01:38 +0000)]
Run style tests in travis.

6 years agoFix all flake8 style issues.
Jelmer Vernooij [Tue, 11 Jul 2017 01:37:32 +0000 (01:37 +0000)]
Fix all flake8 style issues.

6 years agoAdd IgnoreFilterManager.
Jelmer Vernooij [Mon, 10 Jul 2017 23:09:44 +0000 (23:09 +0000)]
Add IgnoreFilterManager.

6 years agogitignore patterns without a trailing slash should match directories too.
Segev Finer [Wed, 5 Jul 2017 17:16:08 +0000 (20:16 +0300)]
gitignore patterns without a trailing slash should match directories too.

gitignore patterns with a trailing slash should match both directories
and files, while patterns with a trailing slash should match only
directories.

6 years agoCorrectly handle include, exclude than include in .gitignore
Segev Finer [Tue, 4 Jul 2017 22:06:28 +0000 (01:06 +0300)]
Correctly handle include, exclude than include in .gitignore

For example, for a .gitignore file like:
test
!test
test

"test" should be ignored.

6 years agoA pattern with only a trailing slash should be treated as a glob
Segev Finer [Tue, 4 Jul 2017 22:20:37 +0000 (01:20 +0300)]
A pattern with only a trailing slash should be treated as a glob

A pattern like "bar/" should still ignore "foo/bar/", but "/bar/" should
not.

6 years agoRefresh AUTHORS.
Jelmer Vernooij [Wed, 5 Jul 2017 00:25:45 +0000 (00:25 +0000)]
Refresh AUTHORS.

6 years agoGit ignore *.pyd
Segev Finer [Tue, 4 Jul 2017 21:56:42 +0000 (00:56 +0300)]
Git ignore *.pyd

Compiled extension modules on Windows. Created by `setup.py build_ext --inplace`/`setup.py develop`/`pip install -e`.

6 years agoUse actual patterns in tests.
Jelmer Vernooij [Tue, 4 Jul 2017 11:51:18 +0000 (11:51 +0000)]
Use actual patterns in tests.

6 years agoWrong argument order in ignore.py
Segev Finer [Tue, 4 Jul 2017 11:08:00 +0000 (14:08 +0300)]
Wrong argument order in ignore.py

6 years agoFactor out finding of untracked paths.
Jelmer Vernooij [Sun, 2 Jul 2017 23:40:31 +0000 (23:40 +0000)]
Factor out finding of untracked paths.

6 years agoAvoid unnecessary escaping.
Jelmer Vernooij [Sun, 2 Jul 2017 23:20:33 +0000 (23:20 +0000)]
Avoid unnecessary escaping.

6 years agoCope with / no longer being escaped on Python 3.7.
Jelmer Vernooij [Sun, 2 Jul 2017 22:42:17 +0000 (22:42 +0000)]
Cope with / no longer being escaped on Python 3.7.

6 years agoPut flags at begining of expression, to make Python3.7 happy.
Jelmer Vernooij [Sun, 2 Jul 2017 22:11:19 +0000 (22:11 +0000)]
Put flags at begining of expression, to make Python3.7 happy.

6 years agoFix python3 compatibility.
Jelmer Vernooij [Sun, 2 Jul 2017 21:48:56 +0000 (21:48 +0000)]
Fix python3 compatibility.

6 years agoMerge branch 'ignore'
Jelmer Vernooij [Sun, 2 Jul 2017 19:02:10 +0000 (19:02 +0000)]
Merge branch 'ignore'

6 years agoImprove documentation re ignores.
Jelmer Vernooij [Sun, 2 Jul 2017 19:01:49 +0000 (19:01 +0000)]
Improve documentation re ignores.

6 years agoAdd test for IgnoreFilterStack.
Jelmer Vernooij [Sun, 2 Jul 2017 18:05:27 +0000 (18:05 +0000)]
Add test for IgnoreFilterStack.

6 years agoSupport zero-matching for multi-asterisk patterns.
Jelmer Vernooij [Sun, 2 Jul 2017 17:58:23 +0000 (17:58 +0000)]
Support zero-matching for multi-asterisk patterns.

6 years agoHandle leading **/.
Jelmer Vernooij [Sun, 2 Jul 2017 17:14:39 +0000 (17:14 +0000)]
Handle leading **/.

6 years agoSupport ** in most patterns.
Jelmer Vernooij [Sun, 2 Jul 2017 16:56:05 +0000 (16:56 +0000)]
Support ** in most patterns.

6 years agoImport fnmatch translate, so it can be modified.
Jelmer Vernooij [Sun, 2 Jul 2017 16:43:04 +0000 (16:43 +0000)]
Import fnmatch translate, so it can be modified.

6 years agoInitial support for ignores.
Jelmer Vernooij [Sun, 2 Jul 2017 15:54:24 +0000 (15:54 +0000)]
Initial support for ignores.

6 years agoin update_refs(), deleted refs should be set to ZERO_SHA, not None.
Jelmer Vernooij [Fri, 23 Jun 2017 01:00:01 +0000 (01:00 +0000)]
in update_refs(), deleted refs should be set to ZERO_SHA, not None.

6 years agoIn ``dulwich.porcelain.add``, if no files are specified,
Jelmer Vernooij [Tue, 20 Jun 2017 01:13:23 +0000 (01:13 +0000)]
In ``dulwich.porcelain.add``, if no files are specified,
add from current working directory rather than repository root.
Closes #521

6 years agoPass 'mkdir' argument onto Repo.init_bare() from Repo.clone. Fixes #504
Jelmer Vernooij [Fri, 16 Jun 2017 20:17:15 +0000 (20:17 +0000)]
Pass 'mkdir' argument onto Repo.init_bare() from Repo.clone. Fixes #504

6 years agoClarify docstrnigs for Client.{send_pack,fetch_pack}. Fixes #523
Jelmer Vernooij [Fri, 16 Jun 2017 19:58:14 +0000 (19:58 +0000)]
Clarify docstrnigs for Client.{send_pack,fetch_pack}. Fixes #523

6 years agoDocument push in tutorial.
Jelmer Vernooij [Mon, 15 May 2017 07:02:38 +0000 (07:02 +0000)]
Document push in tutorial.

6 years agoFix typo in porcelain.push() docstring
fviolette [Thu, 4 May 2017 21:07:05 +0000 (23:07 +0200)]
Fix typo in porcelain.push() docstring

6 years agoUse Py_hash_t type in Python3; should fix Python3 hash tests.
Jelmer Vernooij [Mon, 1 May 2017 19:04:24 +0000 (19:04 +0000)]
Use Py_hash_t type in Python3; should fix Python3 hash tests.

6 years agoDrop unnecessary version compatibility code.
Jelmer Vernooij [Mon, 1 May 2017 18:58:33 +0000 (18:58 +0000)]
Drop unnecessary version compatibility code.

6 years agoFix test on Python3 w/ Windows.
Jelmer Vernooij [Mon, 1 May 2017 18:23:02 +0000 (18:23 +0000)]
Fix test on Python3 w/ Windows.

6 years agoSkip test broken on Python3.6 w/ Windows.
Jelmer Vernooij [Mon, 1 May 2017 18:19:15 +0000 (18:19 +0000)]
Skip test broken on Python3.6 w/ Windows.

6 years agoFix handling of invalid utf8 filenames.
Jelmer Vernooij [Mon, 1 May 2017 18:12:59 +0000 (18:12 +0000)]
Fix handling of invalid utf8 filenames.

6 years agoAttempt to fix 64 bit builds on Windows. 64bit-fixes bitbucket/64bit-fixes github/64bit-fixes samba.org/64bit-fixes
Jelmer Vernooij [Mon, 1 May 2017 17:19:37 +0000 (17:19 +0000)]
Attempt to fix 64 bit builds on Windows.

6 years agoCope with type requirements for python3.6 on Windows.
Jelmer Vernooij [Mon, 1 May 2017 17:09:01 +0000 (17:09 +0000)]
Cope with type requirements for python3.6 on Windows.

6 years agoOnly include custom stdint.h on python < 3.6.
Jelmer Vernooij [Mon, 1 May 2017 16:48:32 +0000 (16:48 +0000)]
Only include custom stdint.h on python < 3.6.

6 years agoUpdate NEWS
Jelmer Vernooij [Mon, 1 May 2017 16:33:04 +0000 (16:33 +0000)]
Update NEWS

6 years agoDisable bdist_wininst builds for now - they're breaking with my unicode
Jelmer Vernooij [Mon, 1 May 2017 16:30:54 +0000 (16:30 +0000)]
Disable bdist_wininst builds for now - they're breaking with my unicode
name.

6 years agoThere is no 'byref' in wintypes in python3.
Jelmer Vernooij [Mon, 1 May 2017 16:02:34 +0000 (16:02 +0000)]
There is no 'byref' in wintypes in python3.

6 years agoUse standard strings in more places.
Jelmer Vernooij [Mon, 1 May 2017 15:54:34 +0000 (15:54 +0000)]
Use standard strings in more places.

6 years agoConsistently provide unicode strings to subprocess - needed for Windows.
Jelmer Vernooij [Mon, 1 May 2017 15:00:38 +0000 (15:00 +0000)]
Consistently provide unicode strings to subprocess - needed for Windows.

6 years agoAdd Windows build status badge.
Jelmer Vernooij [Mon, 1 May 2017 14:52:09 +0000 (14:52 +0000)]
Add Windows build status badge.

6 years agoAvoid messing with encodings.
Jelmer Vernooij [Mon, 1 May 2017 14:45:01 +0000 (14:45 +0000)]
Avoid messing with encodings.

6 years agoClarify encoding or symlinks.
Jelmer Vernooij [Mon, 1 May 2017 14:21:18 +0000 (14:21 +0000)]
Clarify encoding or symlinks.

6 years agoRe-encode symlink.
Jelmer Vernooij [Mon, 1 May 2017 14:15:53 +0000 (14:15 +0000)]
Re-encode symlink.

6 years agoMove moduledef to beginning of function.
Jelmer Vernooij [Mon, 1 May 2017 14:07:42 +0000 (14:07 +0000)]
Move moduledef to beginning of function.

MSVC doesn't seem to like mixing statements and definitions.

6 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.

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

6 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.

6 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.

6 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

6 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.

6 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.

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

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

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

6 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

6 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``.

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

6 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.