diff hgext/largefiles/lfutil.py @ 34344:ac0cd81e2f83

dirstate: use keyword arguments to clarify status()'s callers The arguments are especially non-obvious because the order is different from dirstate.walk(). Differential Revision: https://phab.mercurial-scm.org/D847
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 29 Sep 2017 14:49:05 -0700
parents 255c761a52db
children bb6544b1c56e
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py	Fri Sep 29 14:19:36 2017 -0700
+++ b/hgext/largefiles/lfutil.py	Fri Sep 29 14:49:05 2017 -0700
@@ -169,7 +169,8 @@
 def lfdirstatestatus(lfdirstate, repo):
     pctx = repo['.']
     match = matchmod.always(repo.root, repo.getcwd())
-    unsure, s = lfdirstate.status(match, [], False, False, False)
+    unsure, s = lfdirstate.status(match, subrepos=[], ignored=False,
+                                  clean=False, unknown=False)
     modified, clean = s.modified, s.clean
     for lfile in unsure:
         try:
@@ -551,8 +552,8 @@
         # large.
         lfdirstate = openlfdirstate(ui, repo)
         dirtymatch = matchmod.always(repo.root, repo.getcwd())
-        unsure, s = lfdirstate.status(dirtymatch, [], False, False,
-                                      False)
+        unsure, s = lfdirstate.status(dirtymatch, subrepos=[], ignored=False,
+                                      clean=False, unknown=False)
         modifiedfiles = unsure + s.modified + s.added + s.removed
         lfiles = listlfiles(repo)
         # this only loops through largefiles that exist (not