Show More
@@ -98,8 +98,6 b" nokwcommands = ('add addremove annotate " | |||||
98 | # not when reading filelog, and unexpand when reading from working dir |
|
98 | # not when reading filelog, and unexpand when reading from working dir | |
99 | restricted = 'merge kwexpand kwshrink record qrecord resolve transplant' |
|
99 | restricted = 'merge kwexpand kwshrink record qrecord resolve transplant' | |
100 |
|
100 | |||
101 | # commands using dorecord |
|
|||
102 | recordcommands = 'record qrecord' |
|
|||
103 | # names of extensions using dorecord |
|
101 | # names of extensions using dorecord | |
104 | recordextensions = 'record' |
|
102 | recordextensions = 'record' | |
105 |
|
103 | |||
@@ -155,7 +153,7 b' class kwtemplater(object):' | |||||
155 | self.repo = repo |
|
153 | self.repo = repo | |
156 | self.match = match.match(repo.root, '', [], inc, exc) |
|
154 | self.match = match.match(repo.root, '', [], inc, exc) | |
157 | self.restrict = kwtools['hgcmd'] in restricted.split() |
|
155 | self.restrict = kwtools['hgcmd'] in restricted.split() | |
158 | self.record = kwtools['hgcmd'] in recordcommands.split() |
|
156 | self.record = False | |
159 |
|
157 | |||
160 | kwmaps = self.ui.configitems('keywordmaps') |
|
158 | kwmaps = self.ui.configitems('keywordmaps') | |
161 | if kwmaps: # override default templates |
|
159 | if kwmaps: # override default templates | |
@@ -570,6 +568,7 b' def reposetup(ui, repo):' | |||||
570 | try: |
|
568 | try: | |
571 | # record returns 0 even when nothing has changed |
|
569 | # record returns 0 even when nothing has changed | |
572 | # therefore compare nodes before and after |
|
570 | # therefore compare nodes before and after | |
|
571 | kwt.record = True | |||
573 | ctx = repo['.'] |
|
572 | ctx = repo['.'] | |
574 | modified, added = repo[None].status()[:2] |
|
573 | modified, added = repo[None].status()[:2] | |
575 | ret = orig(ui, repo, commitfunc, *pats, **opts) |
|
574 | ret = orig(ui, repo, commitfunc, *pats, **opts) |
General Comments 0
You need to be logged in to leave comments.
Login now