hgext/largefiles/overrides.py
changeset 25440 1a95c57959f6
parent 25189 1c8c33eaea0a
child 25467 f64dbe06f3d0
--- a/hgext/largefiles/overrides.py	Thu Jun 04 22:02:22 2015 -0400
+++ b/hgext/largefiles/overrides.py	Thu Jun 04 22:11:18 2015 -0400
@@ -100,10 +100,10 @@
             lfmatcher = match_.match(repo.root, '', list(lfpats))
 
     lfnames = []
-    m = copy.copy(matcher)
-    m.bad = lambda x, y: None
+    m = matcher
+
     wctx = repo[None]
-    for f in repo.walk(m):
+    for f in repo.walk(match_.badmatch(m, lambda x, y: None)):
         exact = m.exact(f)
         lfile = lfutil.standin(f) in wctx
         nfile = f in wctx