largefiles: use repo[None].walk instead of repo.walk
authorAugie Fackler <augie@google.com>
Thu, 18 May 2017 18:00:38 -0400
changeset 32361 124ee239d9cb
parent 32360 af3ef002395d
child 32362 7b3c27af90c2
largefiles: use repo[None].walk instead of repo.walk
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Tue Apr 25 17:43:30 2017 -0700
+++ b/hgext/largefiles/overrides.py	Thu May 18 18:00:38 2017 -0400
@@ -119,7 +119,7 @@
     m = matcher
 
     wctx = repo[None]
-    for f in repo.walk(matchmod.badmatch(m, lambda x, y: None)):
+    for f in repo[None].walk(matchmod.badmatch(m, lambda x, y: None)):
         exact = m.exact(f)
         lfile = lfutil.standin(f) in wctx
         nfile = f in wctx