##// END OF EJS Templates
rebase: clean up rebasestate from active transaction...
Jun Wu -
r33056:2312e70c default
parent child Browse files
Show More
@@ -1148,6 +1148,10 def restorecollapsemsg(repo, isabort):
1148 1148 def clearstatus(repo):
1149 1149 'Remove the status files'
1150 1150 _clearrebasesetvisibiliy(repo)
1151 # Make sure the active transaction won't write the state file
1152 tr = repo.currenttransaction()
1153 if tr:
1154 tr.removefilegenerator('rebasestate')
1151 1155 repo.vfs.unlinkpath("rebasestate", ignoremissing=True)
1152 1156
1153 1157 def needupdate(repo, state):
@@ -292,6 +292,12 class transaction(object):
292 292 # but for bookmarks that are handled outside this mechanism.
293 293 self._filegenerators[genid] = (order, filenames, genfunc, location)
294 294
295 @active
296 def removefilegenerator(self, genid):
297 """reverse of addfilegenerator, remove a file generator function"""
298 if genid in self._filegenerators:
299 del self._filegenerators[genid]
300
295 301 def _generatefiles(self, suffix='', group=gengroupall):
296 302 # write files registered for generation
297 303 any = False
@@ -954,4 +954,4 Testing rebase being called inside anoth
954 954 rebasing 2:dc0947a82db8 "C" (C tip)
955 955
956 956 $ [ -f .hg/rebasestate ] && echo 'WRONG: rebasestate should not exist'
957 WRONG: rebasestate should not exist
957 [1]
General Comments 0
You need to be logged in to leave comments. Login now