--- a/hgkw/keyword.py Wed Apr 08 23:13:51 2009 +0200
+++ b/hgkw/keyword.py Tue Apr 21 11:37:50 2009 +0100
@@ -179,7 +179,8 @@
candidates = [f for f in files if self.iskwfile(f, ctx.flags)]
if candidates:
self.restrict = True # do not expand when reading
- action = expand and 'expanding' or 'shrinking'
+ msg = (expand and _('overwriting %s expanding keywords\n')
+ or _('overwriting %s shrinking keywords\n'))
for f in candidates:
fp = self.repo.file(f)
data = fp.read(mf[f])
@@ -193,7 +194,7 @@
else:
found = self.re_kw.search(data)
if found:
- notify(_('overwriting %s %s keywords\n') % (f, action))
+ notify(msg % f)
self.repo.wwrite(f, data, mf.flags(f))
self.repo.dirstate.normal(f)
self.restrict = False