# HG changeset patch # User Martin von Zweigbergk # Date 1412482784 25200 # Node ID 9e893247a41caadce193738547e74e41ab180d5b # Parent ebef5fcf7bd0d5306af18e281b02d9c7d61d49e4 histedit: access status fields by name rather than index diff -r ebef5fcf7bd0 -r 9e893247a41c 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