[PATCH stable] keyword: use status' names instead of index

Christian Ebert blacktrash at gmx.net
Sat Feb 20 03:02:53 CST 2010


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1266656494 -3600
# Branch stable
# Node ID 26420b79576e5d302987e7633423b187568c635b
# Parent  98bc3e195720bd80193d8017ea88fff6d474d44c
keyword: use status' names instead of index

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -265,14 +265,14 @@
         raise util.Abort(_('outstanding uncommitted merge'))
     kwt = kwtools['templater']
     status = _status(ui, repo, kwt, *pats, **opts)
-    modified, added, removed, deleted = status[:4]
+    modified, added, removed, deleted, unknown, ignored, clean = status
     if modified or added or removed or deleted:
         raise util.Abort(_('outstanding uncommitted changes'))
     wlock = lock = None
     try:
         wlock = repo.wlock()
         lock = repo.lock()
-        kwt.overwrite(None, expand, status[6])
+        kwt.overwrite(None, expand, clean)
     finally:
         release(lock, wlock)
 


More information about the Mercurial-devel mailing list