changeset 12604:415ab8911724

keyword: rename variable "cfiles" to "changed" for clarity
author Christian Ebert <blacktrash@gmx.net>
date Fri, 01 Oct 2010 02:13:31 +0200
parents f1646efc54a6
children aa4a6e3ed0c9
files hgext/keyword.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Mon Sep 27 13:13:34 2010 -0500
+++ b/hgext/keyword.py	Fri Oct 01 02:13:31 2010 +0200
@@ -191,10 +191,10 @@
         Caveat: localrepository._link fails on Windows.'''
         return self.match(path) and not 'l' in flagfunc(path)
 
-    def overwrite(self, ctx, candidates, iswctx, expand, cfiles):
+    def overwrite(self, ctx, candidates, iswctx, expand, changed):
         '''Overwrites selected files expanding/shrinking keywords.'''
-        if cfiles is not None:
-            candidates = [f for f in candidates if f in cfiles]
+        if changed is not None:
+            candidates = [f for f in candidates if f in changed]
         candidates = [f for f in candidates if self.iskwfile(f, ctx.flags)]
         if candidates:
             restrict = self.restrict
@@ -510,13 +510,13 @@
             wlock = repo.wlock()
             try:
                 if not dryrun:
-                    cfiles = self['.'].files()
+                    changed = self['.'].files()
                 ret = super(kwrepo, self).rollback(dryrun)
                 if not dryrun:
                     ctx = self['.']
                     modified, added = super(kwrepo, self).status()[:2]
-                    kwt.overwrite(ctx, added, True, False, cfiles)
-                    kwt.overwrite(ctx, modified, True, True, cfiles)
+                    kwt.overwrite(ctx, added, True, False, changed)
+                    kwt.overwrite(ctx, modified, True, True, changed)
                 return ret
             finally:
                 wlock.release()