Show More
@@ -207,6 +207,9 b' class histeditstate(object):' | |||||
207 | self.topmost, self.replacements), fp) |
|
207 | self.topmost, self.replacements), fp) | |
208 | fp.close() |
|
208 | fp.close() | |
209 |
|
209 | |||
|
210 | def clear(self): | |||
|
211 | self.repo.vfs.unlink('histedit-state') | |||
|
212 | ||||
210 | def commitfuncfor(repo, src): |
|
213 | def commitfuncfor(repo, src): | |
211 | """Build a commit function for the replacement of <src> |
|
214 | """Build a commit function for the replacement of <src> | |
212 |
|
215 | |||
@@ -586,7 +589,7 b' def _histedit(ui, repo, *freeargs, **opt' | |||||
586 | pass |
|
589 | pass | |
587 | cleanupnode(ui, repo, 'created', tmpnodes) |
|
590 | cleanupnode(ui, repo, 'created', tmpnodes) | |
588 | cleanupnode(ui, repo, 'temp', leafs) |
|
591 | cleanupnode(ui, repo, 'temp', leafs) | |
589 | os.unlink(os.path.join(repo.path, 'histedit-state')) |
|
592 | state.clear() | |
590 | return |
|
593 | return | |
591 | else: |
|
594 | else: | |
592 | cmdutil.checkunfinished(repo) |
|
595 | cmdutil.checkunfinished(repo) | |
@@ -683,7 +686,7 b' def _histedit(ui, repo, *freeargs, **opt' | |||||
683 | cleanupnode(ui, repo, 'replaced', mapping) |
|
686 | cleanupnode(ui, repo, 'replaced', mapping) | |
684 |
|
687 | |||
685 | cleanupnode(ui, repo, 'temp', tmpnodes) |
|
688 | cleanupnode(ui, repo, 'temp', tmpnodes) | |
686 | os.unlink(os.path.join(repo.path, 'histedit-state')) |
|
689 | state.clear() | |
687 | if os.path.exists(repo.sjoin('undo')): |
|
690 | if os.path.exists(repo.sjoin('undo')): | |
688 | os.unlink(repo.sjoin('undo')) |
|
691 | os.unlink(repo.sjoin('undo')) | |
689 |
|
692 |
General Comments 0
You need to be logged in to leave comments.
Login now