[PATCH 1 of 4] largefiles: use repo[None].walk instead of repo.walk

Augie Fackler raf at durin42.com
Fri May 19 21:39:17 UTC 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1495144838 14400
#      Thu May 18 18:00:38 2017 -0400
# Node ID ea89086c4346e5f38bb1ccb4ea5fa0239ab0c931
# Parent  531e6a57abd252bef59a5921e3761f1e5d80abba
largefiles: use repo[None].walk instead of repo.walk

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -119,7 +119,7 @@ def addlargefiles(ui, repo, isaddremove,
     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


More information about the Mercurial-devel mailing list