# HG changeset patch # User Christian Ebert # Date 1286620531 -3600 # Node ID 8f2c2cc51789ddb3b5f8f5eac176552fb6e5f343 # Parent b742a071ad9c1808adf19add25404176bd843d29 Switch kwtemplater.record in kw_dorecord() Obsoletes the need for a global recordcommands variable. diff -r b742a071ad9c -r 8f2c2cc51789 hgkw/keyword.py --- a/hgkw/keyword.py Sat Oct 09 11:35:24 2010 +0100 +++ b/hgkw/keyword.py Sat Oct 09 11:35:31 2010 +0100 @@ -98,8 +98,6 @@ # not when reading filelog, and unexpand when reading from working dir restricted = 'merge kwexpand kwshrink record qrecord resolve transplant' -# commands using dorecord -recordcommands = 'record qrecord' # names of extensions using dorecord recordextensions = 'record' @@ -155,7 +153,7 @@ self.repo = repo self.match = match.match(repo.root, '', [], inc, exc) self.restrict = kwtools['hgcmd'] in restricted.split() - self.record = kwtools['hgcmd'] in recordcommands.split() + self.record = False kwmaps = self.ui.configitems('keywordmaps') if kwmaps: # override default templates @@ -570,6 +568,7 @@ try: # record returns 0 even when nothing has changed # therefore compare nodes before and after + kwt.record = True ctx = repo['.'] modified, added = repo[None].status()[:2] ret = orig(ui, repo, commitfunc, *pats, **opts)