comparison mercurial/rewriteutil.py @ 47018:7a90fddb13b0

rewriteutil: point to help about instability when rewriting creates orphan This replicates the message from the evolve extension. Differential Revision: https://phab.mercurial-scm.org/D10517
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 11 Feb 2021 15:11:10 -0800
parents 8ad2f43fe37b
children c4dbbaecaad3
comparison
equal deleted inserted replaced
47017:da4e6d7a8fdd 47018:7a90fddb13b0
52 hint = _(b"see 'hg help phases' for details") 52 hint = _(b"see 'hg help phases' for details")
53 raise error.InputError(msg, hint=hint) 53 raise error.InputError(msg, hint=hint)
54 54
55 newunstable = disallowednewunstable(repo, revs) 55 newunstable = disallowednewunstable(repo, revs)
56 if newunstable: 56 if newunstable:
57 raise error.InputError(_(b"cannot %s changeset with children") % action) 57 hint = _(b"see 'hg help evolution.instability'")
58 raise error.InputError(
59 _(b"cannot %s changeset with children") % action, hint=hint
60 )
58 61
59 62
60 def disallowednewunstable(repo, revs): 63 def disallowednewunstable(repo, revs):
61 """Checks whether editing the revs will create new unstable changesets and 64 """Checks whether editing the revs will create new unstable changesets and
62 are we allowed to create them. 65 are we allowed to create them.