keyword: omit setting extra variable for record context

Since ab6bbeb1b787 the context is always retrieved in
kwtemplater.overwrite().
This commit is contained in:
Christian Ebert 2010-05-05 14:02:45 +02:00
parent fa236c2f0a
commit 7ef7102e51

View File

@ -502,8 +502,7 @@ def reposetup(ui, repo):
# 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: