mercurial/localrepo.py
changeset 1618 ff339dd21976
parent 1617 ece5d785e87a
child 1619 1ba0d7041ac4
--- a/mercurial/localrepo.py	Thu Jan 12 12:22:28 2006 +0100
+++ b/mercurial/localrepo.py	Thu Jan 12 13:35:09 2006 +0100
@@ -355,9 +355,9 @@
                 else:
                     self.ui.warn(_("%s not tracked!\n") % f)
         else:
-            (c, a, d, u) = self.changes(match=match)
-            commit = c + a
-            remove = d
+            modified, added, removed, unknown = self.changes(match=match)
+            commit = modified + added
+            remove = removed
 
         p1, p2 = self.dirstate.parents()
         c1 = self.changelog.read(p1)
@@ -1392,13 +1392,13 @@
         ma = self.manifest.read(man)
         mfa = self.manifest.readflags(man)
 
-        (c, a, d, u) = self.changes()
+        modified, added, removed, unknown = self.changes()
 
         if allow and not forcemerge:
-            if c or a or d:
+            if modified or added or removed:
                 raise util.Abort(_("outstanding uncommited changes"))
         if not forcemerge and not force:
-            for f in u:
+            for f in unknown:
                 if f in m2:
                     t1 = self.wread(f)
                     t2 = self.file(f).read(m2[f])
@@ -1425,16 +1425,16 @@
         # construct a working dir manifest
         mw = m1.copy()
         mfw = mf1.copy()
-        umap = dict.fromkeys(u)
+        umap = dict.fromkeys(unknown)
 
-        for f in a + c + u:
+        for f in added + modified + unknown:
             mw[f] = ""
             mfw[f] = util.is_exec(self.wjoin(f), mfw.get(f, False))
 
         if moddirstate:
             wlock = self.wlock()
 
-        for f in d:
+        for f in removed:
             if f in mw:
                 del mw[f]