keyword: use workingctx to detect modified and added files after rollback
authorChristian Ebert <blacktrash@gmx.net>
Fri, 01 Oct 2010 02:13:31 +0200
changeset 12605 aa4a6e3ed0c9
parent 12604 415ab8911724
child 12606 5c8353692123
keyword: use workingctx to detect modified and added files after rollback
hgext/keyword.py
--- a/hgext/keyword.py	Fri Oct 01 02:13:31 2010 +0200
+++ b/hgext/keyword.py	Fri Oct 01 02:13:31 2010 +0200
@@ -514,7 +514,7 @@
                 ret = super(kwrepo, self).rollback(dryrun)
                 if not dryrun:
                     ctx = self['.']
-                    modified, added = super(kwrepo, self).status()[:2]
+                    modified, added = self[None].status()[:2]
                     kwt.overwrite(ctx, added, True, False, changed)
                     kwt.overwrite(ctx, modified, True, True, changed)
                 return ret