comparison hgext/rebase.py @ 46027:1d5189a57405 stable 5.6.1

rebase: clear merge state when aborting in-memory merge on dirty working copy Differential Revision: https://phab.mercurial-scm.org/D9509
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 02 Dec 2020 15:39:01 -0800
parents 5c8230ca37f2
children 2cf61e66c6d0
comparison
equal deleted inserted replaced
46026:39e2cf7cb120 46027:1d5189a57405
636 _( 636 _(
637 b"hit merge conflicts; rebasing that " 637 b"hit merge conflicts; rebasing that "
638 b"commit again in the working copy\n" 638 b"commit again in the working copy\n"
639 ) 639 )
640 ) 640 )
641 cmdutil.bailifchanged(repo) 641 try:
642 cmdutil.bailifchanged(repo)
643 except error.Abort:
644 clearstatus(repo)
645 clearcollapsemsg(repo)
646 raise
642 self.inmemory = False 647 self.inmemory = False
643 self._assignworkingcopy() 648 self._assignworkingcopy()
644 mergemod.update(repo[p1], wc=self.wctx) 649 mergemod.update(repo[p1], wc=self.wctx)
645 rebasenode( 650 rebasenode(
646 repo, 651 repo,