Use status' names instead of index
authorChristian Ebert <blacktrash@gmx.net>
Sun, 07 Mar 2010 19:56:37 +0100
changeset 687 857f2f9bd67f
parent 685 6d26c4bafda3
child 688 13bb123ad894
Use status' names instead of index
hgkw/keyword.py
--- a/hgkw/keyword.py	Wed Feb 17 21:56:15 2010 +0100
+++ b/hgkw/keyword.py	Sun Mar 07 19:56:37 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)