changeset 40342:6f152067ba57

subrepo: access status members by name instead of by position Taking my first Mercurial project closer to completion. Differential Revision: https://phab.mercurial-scm.org/D5144
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 17 Oct 2018 11:43:39 -0700
parents d916ed3ca951
children a69d5823af6d
files mercurial/subrepo.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Tue Oct 16 07:21:00 2018 -0700
+++ b/mercurial/subrepo.py	Wed Oct 17 11:43:39 2018 -0700
@@ -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 = []