D5144: subrepo: access status members by name instead of by position
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Oct 18 11:03:22 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6f152067ba57: subrepo: access status members by name instead of by position (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5144?vs=12218&id=12235
REVISION DETAIL
https://phab.mercurial-scm.org/D5144
AFFECTED FILES
mercurial/subrepo.py
CHANGE DETAILS
diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -1583,17 +1583,15 @@
if self._gitmissing():
return []
- (modified, added, removed,
- deleted, unknown, ignored, clean) = self.status(None, unknown=True,
- clean=True)
+ s = self.status(None, unknown=True, clean=True)
tracked = set()
# dirstates 'amn' warn, 'r' is added again
- for l in (modified, added, deleted, clean):
+ for l in (s.modified, s.added, s.deleted, s.clean):
tracked.update(l)
# Unknown files not of interest will be rejected by the matcher
- files = unknown
+ files = s.unknown
files.extend(match.files())
rejected = []
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list