comparison hgext/rebase.py @ 42108:1b5cec8b6a1e

rebase: fix bug that prevented dry-run rebases from printing failures As far as I can tell it should be fine to unconditionally skip _prepareabortorcontinue if we're in the process of raising an Abort here. Differential Revision: https://phab.mercurial-scm.org/D6226
author Augie Fackler <augie@google.com>
date Fri, 12 Apr 2019 12:06:13 -0400
parents 566daffc607d
children 80a213f9ed87
comparison
equal deleted inserted replaced
42107:8890fce7c13d 42108:1b5cec8b6a1e
947 _origrebase(ui, repo, action, opts, rbsrt, inmemory=True, 947 _origrebase(ui, repo, action, opts, rbsrt, inmemory=True,
948 leaveunfinished=True) 948 leaveunfinished=True)
949 except error.InMemoryMergeConflictsError: 949 except error.InMemoryMergeConflictsError:
950 ui.status(_('hit a merge conflict\n')) 950 ui.status(_('hit a merge conflict\n'))
951 return 1 951 return 1
952 except error.Abort:
953 needsabort = False
954 raise
952 else: 955 else:
953 if confirm: 956 if confirm:
954 ui.status(_('rebase completed successfully\n')) 957 ui.status(_('rebase completed successfully\n'))
955 if not ui.promptchoice(_(b'apply changes (yn)?' 958 if not ui.promptchoice(_(b'apply changes (yn)?'
956 b'$$ &Yes $$ &No')): 959 b'$$ &Yes $$ &No')):