--- 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)