hgkw/keyword.py
changeset 836 53a9228f13de
parent 819 8f2c2cc51789
child 837 448a71a24a84
--- a/hgkw/keyword.py	Sun Oct 10 01:10:13 2010 +0100
+++ b/hgkw/keyword.py	Sun Oct 10 01:07:16 2010 +0100
@@ -574,8 +574,9 @@
             ret = orig(ui, repo, commitfunc, *pats, **opts)
             recctx = repo['.']
             if ctx != recctx:
-                modified = [f for f in modified if f in recctx]
-                added = [f for f in added if f in recctx]
+                changed = recctx.files()
+                modified = [f for f in modified if f in changed]
+                added = [f for f in added if f in changed]
                 kwt.restrict = False
                 kwt.overwrite(recctx, modified, False, True, kwt.re_kwexp.subn)
                 kwt.overwrite(recctx, added, False, True, kwt.re_kw.subn)