(stable) merge with default stable
authorChristian Ebert <blacktrash@gmx.net>
Tue, 25 Nov 2008 18:13:54 +0100
branchstable
changeset 508 d75b1455090e
parent 505 a93358a05b80 (current diff)
parent 507 51296bd1652f (diff)
child 510 ee27d91bacae
(stable) merge with default
--- a/hgkw/keyword.py	Fri Nov 14 19:10:09 2008 +0100
+++ b/hgkw/keyword.py	Tue Nov 25 18:13:54 2008 +0100
@@ -167,14 +167,12 @@
 
     def overwrite(self, node, expand, files):
         '''Overwrites selected files expanding/shrinking keywords.'''
+        ctx = self.repo[node]
+        mf = ctx.manifest()
         if node is not None:     # commit
-            ctx = self.repo[node]
-            mf = ctx.manifest()
             files = [f for f in ctx.files() if f in mf]
             notify = self.ui.debug
         else:                    # kwexpand/kwshrink
-            ctx = self.repo[None]
-            mf = ctx.manifest()
             notify = self.ui.note
         candidates = [f for f in files if self.iskwfile(f, ctx.flags)]
         if candidates: