comparison hgext/histedit.py @ 44270:f546d2170b0f

merge: introduce a clean_update() for that use-case I find it hard to understand what value to pass for all the arguments to `merge.update()`. I would like to introduce functions that are more specific to each use-case. We already have `graft()`. This patch introduces a `clean_update()` and uses it in some places to show that it works. Differential Revision: https://phab.mercurial-scm.org/D7902
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 15 Jan 2020 15:30:25 -0800
parents cb8b67016110
children d543ef183eb8
comparison
equal deleted inserted replaced
44269:48a1a974a92c 44270:f546d2170b0f
943 _(b'checkout changeset and apply further changesets from there'), 943 _(b'checkout changeset and apply further changesets from there'),
944 ) 944 )
945 class base(histeditaction): 945 class base(histeditaction):
946 def run(self): 946 def run(self):
947 if self.repo[b'.'].node() != self.node: 947 if self.repo[b'.'].node() != self.node:
948 mergemod.update(self.repo, self.node, branchmerge=False, force=True) 948 mergemod.clean_update(self.repo[self.node])
949 return self.continueclean() 949 return self.continueclean()
950 950
951 def continuedirty(self): 951 def continuedirty(self):
952 abortdirty() 952 abortdirty()
953 953