Show More
@@ -1148,6 +1148,10 def restorecollapsemsg(repo, isabort): | |||||
1148 | def clearstatus(repo): |
|
1148 | def clearstatus(repo): | |
1149 | 'Remove the status files' |
|
1149 | 'Remove the status files' | |
1150 | _clearrebasesetvisibiliy(repo) |
|
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 | repo.vfs.unlinkpath("rebasestate", ignoremissing=True) |
|
1155 | repo.vfs.unlinkpath("rebasestate", ignoremissing=True) | |
1152 |
|
1156 | |||
1153 | def needupdate(repo, state): |
|
1157 | def needupdate(repo, state): |
@@ -292,6 +292,12 class transaction(object): | |||||
292 | # but for bookmarks that are handled outside this mechanism. |
|
292 | # but for bookmarks that are handled outside this mechanism. | |
293 | self._filegenerators[genid] = (order, filenames, genfunc, location) |
|
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 | def _generatefiles(self, suffix='', group=gengroupall): |
|
301 | def _generatefiles(self, suffix='', group=gengroupall): | |
296 | # write files registered for generation |
|
302 | # write files registered for generation | |
297 | any = False |
|
303 | any = False |
@@ -954,4 +954,4 Testing rebase being called inside anoth | |||||
954 | rebasing 2:dc0947a82db8 "C" (C tip) |
|
954 | rebasing 2:dc0947a82db8 "C" (C tip) | |
955 |
|
955 | |||
956 | $ [ -f .hg/rebasestate ] && echo 'WRONG: rebasestate should not exist' |
|
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