Mercurial > public > mercurial-scm > hg-stable
diff hgext/histedit.py @ 38512:39db5a01cd53
cleanup: pass in overwrite flag to hg.updaterepo() as named argument
For clarity.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Jul 2018 21:40:55 +0900 |
parents | 03e7ec8180f0 |
children | 7b57b1ed5c0f |
line wrap: on
line diff
--- a/hgext/histedit.py Sat Jun 30 07:23:02 2018 +0530 +++ b/hgext/histedit.py Sun Jul 01 21:40:55 2018 +0900 @@ -784,7 +784,7 @@ def finishfold(self, ui, repo, ctx, oldctx, newnode, internalchanges): parent = ctx.parents()[0].node() - hg.updaterepo(repo, parent, False) + hg.updaterepo(repo, parent, overwrite=False) ### prepare new commit data commitopts = {} commitopts['user'] = ctx.user() @@ -815,7 +815,7 @@ skipprompt=self.skipprompt()) if n is None: return ctx, [] - hg.updaterepo(repo, n, False) + hg.updaterepo(repo, n, overwrite=False) replacements = [(oldctx.node(), (newnode,)), (ctx.node(), (n,)), (newnode, (n,)), @@ -1177,7 +1177,7 @@ def _finishhistedit(ui, repo, state, fm): """This action runs when histedit is finishing its session""" - hg.updaterepo(repo, state.parentctxnode, False) + hg.updaterepo(repo, state.parentctxnode, overwrite=False) mapping, tmpnodes, created, ntm = processreplacement(state) if mapping: