summaryrefslogtreecommitdiff
path: root/devel/hg-git/files/patch-hggit_gitdirstate.py
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-05-03 07:30:32 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-05-03 07:30:32 +0000
commit605fcdb8acb5ebf65295ec410d49e4320d4768ec (patch)
tree5effa015744dab92ea028d842a31cc4df3e52104 /devel/hg-git/files/patch-hggit_gitdirstate.py
parentnet-mgmt/wmi-client: fix installation when PYTHON=on (diff)
devel/hg-git: fix when using with mercurial >= 3.3.3
PR: 199262 Submitted by: Quentin Schwerkolt <schwer_q.lists@outlook.com> Approved by: Marco Bröder <marco.broeder@posteo.eu> (maintainer) Obtained from: https://github.com/schacon/hg-git/commit/6331251
Notes
Notes: svn path=/head/; revision=385234
Diffstat (limited to 'devel/hg-git/files/patch-hggit_gitdirstate.py')
-rw-r--r--devel/hg-git/files/patch-hggit_gitdirstate.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/hg-git/files/patch-hggit_gitdirstate.py b/devel/hg-git/files/patch-hggit_gitdirstate.py
new file mode 100644
index 000000000000..fdf47e3178e6
--- /dev/null
+++ b/devel/hg-git/files/patch-hggit_gitdirstate.py
@@ -0,0 +1,15 @@
+--- hggit/gitdirstate.py.orig 2014-05-09 14:26:29 UTC
++++ hggit/gitdirstate.py
+@@ -161,7 +161,11 @@ class gitdirstate(dirstate.dirstate):
+ results, work, dirsnotfound = self._walkexplicit(match, subrepos)
+
+ skipstep3 = skipstep3 and not (work or dirsnotfound)
+- work = [d for d in work if not dirignore(d)]
++ if work and isinstance(work[0], tuple):
++ # Mercurial >= 3.3.3
++ work = [nd for nd, d in work if not dirignore(d)]
++ else:
++ work = [d for d in work if not dirignore(d)]
+ wadd = work.append
+
+ # step 2: visit subdirectories