Patchwork [12,of,15,v2] histedit: access status fields by name rather than index

login
register
mail settings
Submitter Martin von Zweigbergk
Date Oct. 5, 2014, 6:08 a.m.
Message ID <399a14bbd6d53b0d4588.1412489289@handduk2.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/6137/
State Superseded
Commit 9e893247a41caadce193738547e74e41ab180d5b
Headers show

Comments

Martin von Zweigbergk - Oct. 5, 2014, 6:08 a.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@gmail.com>
# Date 1412482784 25200
#      Sat Oct 04 21:19:44 2014 -0700
# Node ID 399a14bbd6d53b0d458833eef317a3caeacd3b53
# Parent  4287d826ff0fc6f50ee11d5b0b1d4eeeaa7e3779
histedit: access status fields by name rather than index

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -688,8 +688,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