Show More
@@ -252,7 +252,10 class histeditstate(object): | |||
|
252 | 252 | for replacement in self.replacements: |
|
253 | 253 | fp.write('%s%s\n' % (node.hex(replacement[0]), ''.join(node.hex(r) |
|
254 | 254 | for r in replacement[1]))) |
|
255 |
|
|
|
255 | backupfile = self.backupfile | |
|
256 | if not backupfile: | |
|
257 | backupfile = '' | |
|
258 | fp.write('%s\n' % backupfile) | |
|
256 | 259 | fp.close() |
|
257 | 260 | |
|
258 | 261 | def _load(self): |
@@ -890,21 +893,22 def _histedit(ui, repo, state, *freeargs | |||
|
890 | 893 | |
|
891 | 894 | def bootstrapcontinue(ui, state, opts): |
|
892 | 895 | repo = state.repo |
|
893 | action, currentnode = state.rules.pop(0) | |
|
894 | ||
|
895 | actobj = actiontable[action].fromrule(state, currentnode) | |
|
896 | if state.rules: | |
|
897 | action, currentnode = state.rules.pop(0) | |
|
896 | 898 | |
|
897 | s = repo.status() | |
|
898 | if s.modified or s.added or s.removed or s.deleted: | |
|
899 | actobj.continuedirty() | |
|
899 | actobj = actiontable[action].fromrule(state, currentnode) | |
|
900 | ||
|
900 | 901 | s = repo.status() |
|
901 | 902 | if s.modified or s.added or s.removed or s.deleted: |
|
902 | raise util.Abort(_("working copy still dirty")) | |
|
903 | actobj.continuedirty() | |
|
904 | s = repo.status() | |
|
905 | if s.modified or s.added or s.removed or s.deleted: | |
|
906 | raise util.Abort(_("working copy still dirty")) | |
|
903 | 907 | |
|
904 | parentctx, replacements = actobj.continueclean() | |
|
908 | parentctx, replacements = actobj.continueclean() | |
|
905 | 909 | |
|
906 | state.parentctxnode = parentctx.node() | |
|
907 | state.replacements.extend(replacements) | |
|
910 | state.parentctxnode = parentctx.node() | |
|
911 | state.replacements.extend(replacements) | |
|
908 | 912 | |
|
909 | 913 | return state |
|
910 | 914 |
General Comments 0
You need to be logged in to leave comments.
Login now