changeset 12605:aa4a6e3ed0c9

keyword: use workingctx to detect modified and added files after rollback
author Christian Ebert <blacktrash@gmx.net>
date Fri, 01 Oct 2010 02:13:31 +0200
parents 415ab8911724
children 5c8353692123
files hgext/keyword.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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