diff -r a72c2895fc26 -r 25235530940d hgkw/keyword.py --- a/hgkw/keyword.py Sun May 02 22:39:43 2010 +0200 +++ b/hgkw/keyword.py Wed May 05 14:02:45 2010 +0200 @@ -502,8 +502,7 @@ # therefore compare nodes before and after ctx = repo['.'] ret = orig(ui, repo, commitfunc, *pats, **opts) - recctx = repo['.'] - if ctx != recctx: + if ctx != repo['.']: kwt.overwrite('.', True, None) return ret finally: