[PATCH] keyword: omit setting extra variable for record context

Christian Ebert blacktrash at gmx.net
Wed May 5 07:03:03 CDT 2010


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1273060965 -7200
# Node ID 871088c223ec5745c55c1a485c8dbefafd7c2ec4
# Parent  d561249319096ddcd4c02e980b31f3312a424b33
keyword: omit setting extra variable for record context

Since dc2f37864348 the context is always retrieved in
kwtemplater.overwrite().

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -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:


More information about the Mercurial-devel mailing list