diff hgext/largefiles/overrides.py @ 32421:c87db79b9507

cleanup: reuse existing wctx variables instead of calling repo[None] Incidentally, this apparently means we load .hgsub one time less as well, which affects a test case.
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 20 May 2017 22:27:52 -0700
parents 124ee239d9cb
children 4a23cdb32968
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Thu May 18 16:43:56 2017 -0400
+++ b/hgext/largefiles/overrides.py	Sat May 20 22:27:52 2017 -0700
@@ -119,7 +119,7 @@
     m = matcher
 
     wctx = repo[None]
-    for f in repo[None].walk(matchmod.badmatch(m, lambda x, y: None)):
+    for f in wctx.walk(matchmod.badmatch(m, lambda x, y: None)):
         exact = m.exact(f)
         lfile = lfutil.standin(f) in wctx
         nfile = f in wctx