Show More
@@ -252,7 +252,10 class histeditstate(object): | |||||
252 | for replacement in self.replacements: |
|
252 | for replacement in self.replacements: | |
253 | fp.write('%s%s\n' % (node.hex(replacement[0]), ''.join(node.hex(r) |
|
253 | fp.write('%s%s\n' % (node.hex(replacement[0]), ''.join(node.hex(r) | |
254 | for r in replacement[1]))) |
|
254 | for r in replacement[1]))) | |
255 |
|
|
255 | backupfile = self.backupfile | |
|
256 | if not backupfile: | |||
|
257 | backupfile = '' | |||
|
258 | fp.write('%s\n' % backupfile) | |||
256 | fp.close() |
|
259 | fp.close() | |
257 |
|
260 | |||
258 | def _load(self): |
|
261 | def _load(self): | |
@@ -890,21 +893,22 def _histedit(ui, repo, state, *freeargs | |||||
890 |
|
893 | |||
891 | def bootstrapcontinue(ui, state, opts): |
|
894 | def bootstrapcontinue(ui, state, opts): | |
892 | repo = state.repo |
|
895 | repo = state.repo | |
893 | action, currentnode = state.rules.pop(0) |
|
896 | if state.rules: | |
894 |
|
897 | action, currentnode = state.rules.pop(0) | ||
895 | actobj = actiontable[action].fromrule(state, currentnode) |
|
|||
896 |
|
898 | |||
897 | s = repo.status() |
|
899 | actobj = actiontable[action].fromrule(state, currentnode) | |
898 | if s.modified or s.added or s.removed or s.deleted: |
|
900 | ||
899 | actobj.continuedirty() |
|
|||
900 | s = repo.status() |
|
901 | s = repo.status() | |
901 | if s.modified or s.added or s.removed or s.deleted: |
|
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() |
|
910 | state.parentctxnode = parentctx.node() | |
907 | state.replacements.extend(replacements) |
|
911 | state.replacements.extend(replacements) | |
908 |
|
912 | |||
909 | return state |
|
913 | return state | |
910 |
|
914 |
@@ -1,5 +1,12 | |||||
1 | This file tests the behavior of run-tests.py itself. |
|
1 | This file tests the behavior of run-tests.py itself. | |
2 |
|
2 | |||
|
3 | Avoid interference from actual test env: | |||
|
4 | ||||
|
5 | $ unset HGTEST_JOBS | |||
|
6 | $ unset HGTEST_TIMEOUT | |||
|
7 | $ unset HGTEST_PORT | |||
|
8 | $ unset HGTEST_SHELL | |||
|
9 | ||||
3 | Smoke test |
|
10 | Smoke test | |
4 |
|
|
11 | ============ | |
5 |
|
12 |
General Comments 0
You need to be logged in to leave comments.
Login now