Show More
@@ -178,6 +178,7 b' class rebaseruntime(object):' | |||||
178 | # --continue or --abort)), the original repo should be used so |
|
178 | # --continue or --abort)), the original repo should be used so | |
179 | # visibility-dependent revsets are correct. |
|
179 | # visibility-dependent revsets are correct. | |
180 | self.prepared = False |
|
180 | self.prepared = False | |
|
181 | self.resume = False | |||
181 | self._repo = repo |
|
182 | self._repo = repo | |
182 |
|
183 | |||
183 | self.ui = ui |
|
184 | self.ui = ui | |
@@ -367,6 +368,7 b' class rebaseruntime(object):' | |||||
367 | _checkobsrebase(self.repo, self.ui, obsoleteset, skippedset) |
|
368 | _checkobsrebase(self.repo, self.ui, obsoleteset, skippedset) | |
368 |
|
369 | |||
369 | def _prepareabortorcontinue(self, isabort, backup=True, suppwarns=False): |
|
370 | def _prepareabortorcontinue(self, isabort, backup=True, suppwarns=False): | |
|
371 | self.resume = True | |||
370 | try: |
|
372 | try: | |
371 | self.restorestatus() |
|
373 | self.restorestatus() | |
372 | self.collapsemsg = restorecollapsemsg(self.repo, isabort) |
|
374 | self.collapsemsg = restorecollapsemsg(self.repo, isabort) | |
@@ -606,8 +608,9 b' class rebaseruntime(object):' | |||||
606 | self.skipped, |
|
608 | self.skipped, | |
607 | self.obsoletenotrebased, |
|
609 | self.obsoletenotrebased, | |
608 | ) |
|
610 | ) | |
609 | if not self.inmemory and len(repo[None].parents()) == 2: |
|
611 | if self.resume and self.wctx.p1().rev() == p1: | |
610 | repo.ui.debug(b'resuming interrupted rebase\n') |
|
612 | repo.ui.debug(b'resuming interrupted rebase\n') | |
|
613 | self.resume = False | |||
611 | else: |
|
614 | else: | |
612 | overrides = {(b'ui', b'forcemerge'): opts.get(b'tool', b'')} |
|
615 | overrides = {(b'ui', b'forcemerge'): opts.get(b'tool', b'')} | |
613 | with ui.configoverride(overrides, b'rebase'): |
|
616 | with ui.configoverride(overrides, b'rebase'): |
General Comments 0
You need to be logged in to leave comments.
Login now