mercurial/cmdutil.py
changeset 50910 1270677d740b
parent 50828 13ad1b2ad3b4
child 50928 d718eddf01d9
--- a/mercurial/cmdutil.py	Wed Aug 30 00:50:28 2023 +0200
+++ b/mercurial/cmdutil.py	Wed Aug 30 13:01:10 2023 +0200
@@ -813,18 +813,17 @@
     # creating a dirnode object for the root of the repo
     rootobj = dirnode(b'')
     pstatus = (
-        b'modified',
-        b'added',
-        b'deleted',
-        b'clean',
-        b'unknown',
-        b'ignored',
-        b'removed',
+        ('modified', b'm'),
+        ('added', b'a'),
+        ('deleted', b'd'),
+        ('clean', b'c'),
+        ('unknown', b'u'),
+        ('ignored', b'i'),
+        ('removed', b'r'),
     )
 
     tersedict = {}
-    for attrname in pstatus:
-        statuschar = attrname[0:1]
+    for attrname, statuschar in pstatus:
         for f in getattr(statuslist, attrname):
             rootobj.addfile(f, statuschar)
         tersedict[statuschar] = []