# HG changeset patch # User Christian Ebert # Date 1273060965 -7200 # Node ID 25235530940d61328e0655486009c4fea9e8c18a # Parent a72c2895fc26fad9f60a6eb29369ced69e79358e Omit setting extra variable for record context Since dc2f37864348 the context is always retrieved in kwtemplater.overwrite(). 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: