Omit setting extra variable for record context
authorChristian Ebert <blacktrash@gmx.net>
Wed, 05 May 2010 14:02:45 +0200
changeset 747 25235530940d
parent 745 a72c2895fc26
child 748 eb7991ee81dd
child 749 9f46c562c4b5
Omit setting extra variable for record context Since dc2f37864348 the context is always retrieved in kwtemplater.overwrite().
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: