status: pre-indent the dirstate status code
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 20 Feb 2023 17:22:57 +0100
changeset 50133 21b6ce3ade35
parent 50132 3dd7e54ff7f1
child 50134 0d6173373fa5
status: pre-indent the dirstate status code This make the next changeset clearer.
mercurial/context.py
--- a/mercurial/context.py	Mon Feb 20 15:18:07 2023 +0100
+++ b/mercurial/context.py	Mon Feb 20 17:22:57 2023 +0100
@@ -1899,25 +1899,26 @@
         subrepos = []
         if b'.hgsub' in self:
             subrepos = sorted(self.substate)
-        cmp, s, mtime_boundary = self._repo.dirstate.status(
-            match, subrepos, ignored=ignored, clean=clean, unknown=unknown
-        )
-
-        # check for any possibly clean files
-        fixup = []
-        if cmp:
-            modified2, deleted2, clean_set, fixup = self._checklookup(
-                cmp, mtime_boundary
+        if True:
+            cmp, s, mtime_boundary = self._repo.dirstate.status(
+                match, subrepos, ignored=ignored, clean=clean, unknown=unknown
             )
-            s.modified.extend(modified2)
-            s.deleted.extend(deleted2)
-
-            if clean_set and clean:
-                s.clean.extend(clean_set)
-            if fixup and clean:
-                s.clean.extend((f for f, _ in fixup))
-
-        self._poststatusfixup(s, fixup)
+
+            # check for any possibly clean files
+            fixup = []
+            if cmp:
+                modified2, deleted2, clean_set, fixup = self._checklookup(
+                    cmp, mtime_boundary
+                )
+                s.modified.extend(modified2)
+                s.deleted.extend(deleted2)
+
+                if clean_set and clean:
+                    s.clean.extend(clean_set)
+                if fixup and clean:
+                    s.clean.extend((f for f, _ in fixup))
+
+            self._poststatusfixup(s, fixup)
 
         if match.always():
             # cache for performance