From patchwork Fri Oct 10 22:20:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [13, of, 16, V3] histedit: access status fields by name rather than index From: Martin von Zweigbergk X-Patchwork-Id: 6203 Message-Id: To: mercurial-devel@selenic.com Date: Fri, 10 Oct 2014 15:20:45 -0700 # HG changeset patch # User Martin von Zweigbergk # Date 1412482784 25200 # Sat Oct 04 21:19:44 2014 -0700 # Node ID f310c2996fea1b8894fa454eae1312cb3c1689bf # Parent 05c48c38b07acbf8c8ab98e9749fa060f8a3ae0c histedit: access status fields by name rather than index 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