changeset 11096:871088c223ec

keyword: omit setting extra variable for record context Since dc2f37864348 the context is always retrieved in kwtemplater.overwrite().
author Christian Ebert <blacktrash@gmx.net>
date Wed, 05 May 2010 14:02:45 +0200
parents d56124931909
children 9651fa5a3cbf
files hgext/keyword.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Wed May 05 09:25:09 2010 +0200
+++ b/hgext/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: