histedit: access status fields by name rather than index
authorMartin von Zweigbergk <martinvonz@gmail.com>
Sat, 04 Oct 2014 21:19:44 -0700
changeset 22923 9e893247a41c
parent 22922 ebef5fcf7bd0
child 22924 325babf1de93
histedit: access status fields by name rather than index
hgext/histedit.py
--- a/hgext/histedit.py	Fri Oct 03 22:12:43 2014 -0700
+++ b/hgext/histedit.py	Sat Oct 04 21:19:44 2014 -0700
@@ -681,8 +681,8 @@
 
     # Commit dirty working directory if necessary
     new = None
-    m, a, r, d = repo.status()[:4]
-    if m or a or r or d:
+    s = repo.status()
+    if s.modified or s.added or s.removed or s.deleted:
         # prepare the message for the commit to comes
         if action in ('f', 'fold', 'r', 'roll'):
             message = 'fold-temp-revision %s' % currentnode