(stable) merge stable
authorChristian Ebert <blacktrash@gmx.net>
Wed, 16 Jun 2010 11:08:43 +0200
branchstable
changeset 770 25fcb8ed70c4
parent 767 0492a5acf652 (current diff)
parent 769 3bf3212b13bc (diff)
child 772 5ac8451a1bc4
(stable) merge
--- a/hgkw/keyword.py	Sun Jun 06 17:25:00 2010 +0900
+++ b/hgkw/keyword.py	Wed Jun 16 11:08:43 2010 +0200
@@ -191,12 +191,12 @@
 
     def overwrite(self, ctx, candidates, iswctx, expand):
         '''Overwrites selected files expanding/shrinking keywords.'''
-        mf = ctx.manifest()
         if self.record:
-            candidates = [f for f in ctx.files() if f in mf]
+            candidates = [f for f in ctx.files() if f in ctx]
         candidates = [f for f in candidates if self.iskwfile(f, ctx.flags)]
         if candidates:
             self.restrict = True        # do not expand when reading
+            mf = ctx.manifest()
             msg = (expand and _('overwriting %s expanding keywords\n')
                    or _('overwriting %s shrinking keywords\n'))
             for f in candidates: