diff -r 72a272f1f756 -r eb7991ee81dd hgkw/keyword.py --- a/hgkw/keyword.py Tue May 04 01:15:34 2010 +0200 +++ b/hgkw/keyword.py Wed May 05 17:16:00 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: