changeset 22923:9e893247a41c

histedit: access status fields by name rather than index
author Martin von Zweigbergk <martinvonz@gmail.com>
date Sat, 04 Oct 2014 21:19:44 -0700
parents ebef5fcf7bd0
children 325babf1de93
files hgext/histedit.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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