(stable) merge with default stable
authorChristian Ebert <blacktrash@gmx.net>
Wed, 26 Nov 2008 09:35:38 +0100
branchstable
changeset 510 ee27d91bacae
parent 508 d75b1455090e (current diff)
parent 509 16b690351c0d (diff)
child 511 fbe7b0409072
(stable) merge with default
--- a/hgkw/keyword.py	Tue Nov 25 18:13:54 2008 +0100
+++ b/hgkw/keyword.py	Wed Nov 26 09:35:38 2008 +0100
@@ -350,8 +350,8 @@
     ui.note(_('unhooked all commit hooks\n'))
     ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg))
     repo.commit(text=msg)
-    format = ui.verbose and ' in %s' % path or ''
-    demostatus('%s keywords expanded%s' % (kwstatus, format))
+    fmt = ui.verbose and ' in %s' % path or ''
+    demostatus('%s keywords expanded%s' % (kwstatus, fmt))
     ui.write(repo.wread(fn))
     ui.debug(_('\nremoving temporary repo %s\n') % tmpdir)
     shutil.rmtree(tmpdir, ignore_errors=True)
@@ -384,9 +384,9 @@
     if opts.get('all') or opts.get('ignore'):
         kwfstats += (('I', [f for f in files if f not in kwfiles]),)
     for char, filenames in kwfstats:
-        format = (opts.get('all') or ui.verbose) and '%s %%s\n' % char or '%s\n'
+        fmt = (opts.get('all') or ui.verbose) and '%s %%s\n' % char or '%s\n'
         for f in filenames:
-            ui.write(format % repo.pathto(f, cwd))
+            ui.write(fmt % repo.pathto(f, cwd))
 
 def shrink(ui, repo, *pats, **opts):
     '''revert expanded keywords in working directory