hgext/sparse.py
changeset 41675 ddbebce94665
parent 41150 b05eb98a6b67
child 41676 0531dff73d0b
--- a/hgext/sparse.py	Sun Feb 10 21:33:21 2019 -0800
+++ b/hgext/sparse.py	Sun Feb 10 14:35:36 2019 -0800
@@ -199,7 +199,7 @@
     def walk(orig, self, match, subrepos, unknown, ignored, full=True):
         # hack to not exclude explicitly-specified paths so that they can
         # be warned later on e.g. dirstate.add()
-        em = matchmod.exact(match._root, match._cwd, match.files())
+        em = matchmod.exact(None, None, match.files())
         sm = matchmod.unionmatcher([self._sparsematcher, em])
         match = matchmod.intersectmatchers(match, sm)
         return orig(self, match, subrepos, unknown, ignored, full)