summaryrefslogtreecommitdiff
path: root/devel/hg-git/files/patch-hggit_gitdirstate.py
diff options
context:
space:
mode:
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