changeset 10603:f511df3a4357

keyword: use status' names instead of index
author Christian Ebert <blacktrash@gmx.net>
date Sun, 07 Mar 2010 13:03:03 +0100
parents 94145b531cf9
children 9a36d159595f
files hgext/keyword.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Sun Mar 07 17:44:43 2010 +0100
+++ b/hgext/keyword.py	Sun Mar 07 13:03:03 2010 +0100
@@ -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)