Show More
@@ -343,7 +343,7 b' class rebaseruntime(object):' | |||||
343 | if dest.closesbranch() and not self.keepbranchesf: |
|
343 | if dest.closesbranch() and not self.keepbranchesf: | |
344 | self.ui.status(_('reopening closed branch head %s\n') % dest) |
|
344 | self.ui.status(_('reopening closed branch head %s\n') % dest) | |
345 |
|
345 | |||
346 |
def _performrebase(self |
|
346 | def _performrebase(self): | |
347 | repo, ui, opts = self.repo, self.ui, self.opts |
|
347 | repo, ui, opts = self.repo, self.ui, self.opts | |
348 | if self.keepbranchesf: |
|
348 | if self.keepbranchesf: | |
349 | # insert _savebranch at the start of extrafns so if |
|
349 | # insert _savebranch at the start of extrafns so if | |
@@ -393,7 +393,7 b' class rebaseruntime(object):' | |||||
393 | self.state, |
|
393 | self.state, | |
394 | self.targetancestors, |
|
394 | self.targetancestors, | |
395 | self.obsoletenotrebased) |
|
395 | self.obsoletenotrebased) | |
396 |
self.storestatus( |
|
396 | self.storestatus() | |
397 | storecollapsemsg(repo, self.collapsemsg) |
|
397 | storecollapsemsg(repo, self.collapsemsg) | |
398 | if len(repo[None].parents()) == 2: |
|
398 | if len(repo[None].parents()) == 2: | |
399 | repo.ui.debug('resuming interrupted rebase\n') |
|
399 | repo.ui.debug('resuming interrupted rebase\n') | |
@@ -721,12 +721,7 b' def rebase(ui, repo, **opts):' | |||||
721 | if retcode is not None: |
|
721 | if retcode is not None: | |
722 | return retcode |
|
722 | return retcode | |
723 |
|
723 | |||
724 | with repo.transaction('rebase') as tr: |
|
724 | rbsrt._performrebase() | |
725 | try: |
|
|||
726 | rbsrt._performrebase(tr) |
|
|||
727 | except error.InterventionRequired: |
|
|||
728 | tr.close() |
|
|||
729 | raise |
|
|||
730 | rbsrt._finishrebase() |
|
725 | rbsrt._finishrebase() | |
731 | finally: |
|
726 | finally: | |
732 | release(lock, wlock) |
|
727 | release(lock, wlock) |
@@ -374,11 +374,10 b' test aborting an interrupted series (iss' | |||||
374 | $ hg --config extensions.n=$TESTDIR/failfilemerge.py rebase -s 3 -d tip |
|
374 | $ hg --config extensions.n=$TESTDIR/failfilemerge.py rebase -s 3 -d tip | |
375 | rebasing 3:3a71550954f1 "b" |
|
375 | rebasing 3:3a71550954f1 "b" | |
376 | rebasing 4:e80b69427d80 "c" |
|
376 | rebasing 4:e80b69427d80 "c" | |
377 | transaction abort! |
|
|||
378 | rollback completed |
|
|||
379 | abort: ^C |
|
377 | abort: ^C | |
380 | [255] |
|
378 | [255] | |
381 | $ hg rebase --abort |
|
379 | $ hg rebase --abort | |
|
380 | saved backup bundle to $TESTTMP/interrupted/.hg/strip-backup/3d8812cf300d-93041a90-backup.hg (glob) | |||
382 | rebase aborted |
|
381 | rebase aborted | |
383 | $ hg log -G --template "{rev} {desc} {bookmarks}" |
|
382 | $ hg log -G --template "{rev} {desc} {bookmarks}" | |
384 | o 6 no-a |
|
383 | o 6 no-a | |
@@ -399,7 +398,7 b' test aborting an interrupted series (iss' | |||||
399 | parent: 0:df4f53cec30a |
|
398 | parent: 0:df4f53cec30a | |
400 | base |
|
399 | base | |
401 | branch: default |
|
400 | branch: default | |
402 |
commit: |
|
401 | commit: (clean) | |
403 | update: 6 new changesets (update) |
|
402 | update: 6 new changesets (update) | |
404 | phases: 7 draft |
|
403 | phases: 7 draft | |
405 |
|
404 |
@@ -225,6 +225,7 b' Check that the right ancestors is used w' | |||||
225 | ignoring null merge rebase of 8 |
|
225 | ignoring null merge rebase of 8 | |
226 | rebasing 9:e31216eec445 "more changes to f1" |
|
226 | rebasing 9:e31216eec445 "more changes to f1" | |
227 | future parents are 2 and -1 |
|
227 | future parents are 2 and -1 | |
|
228 | rebase status stored | |||
228 | update to 2:4bc80088dc6b |
|
229 | update to 2:4bc80088dc6b | |
229 | resolving manifests |
|
230 | resolving manifests | |
230 | branchmerge: False, force: True, partial: False |
|
231 | branchmerge: False, force: True, partial: False | |
@@ -250,6 +251,7 b' Check that the right ancestors is used w' | |||||
250 | rebased as 19c888675e13 |
|
251 | rebased as 19c888675e13 | |
251 | rebasing 10:2f2496ddf49d "merge" (tip) |
|
252 | rebasing 10:2f2496ddf49d "merge" (tip) | |
252 | future parents are 11 and 7 |
|
253 | future parents are 11 and 7 | |
|
254 | rebase status stored | |||
253 | already in target |
|
255 | already in target | |
254 | merge against 10:2f2496ddf49d |
|
256 | merge against 10:2f2496ddf49d | |
255 | detach base 9:e31216eec445 |
|
257 | detach base 9:e31216eec445 | |
@@ -267,7 +269,6 b' Check that the right ancestors is used w' | |||||
267 | committing changelog |
|
269 | committing changelog | |
268 | rebased as 2a7f09cac94c |
|
270 | rebased as 2a7f09cac94c | |
269 | rebase merging completed |
|
271 | rebase merging completed | |
270 | rebase status stored |
|
|||
271 | update back to initial working directory parent |
|
272 | update back to initial working directory parent | |
272 | resolving manifests |
|
273 | resolving manifests | |
273 | branchmerge: False, force: False, partial: False |
|
274 | branchmerge: False, force: False, partial: False |
General Comments 0
You need to be logged in to leave comments.
Login now