diff mercurial/rewriteutil.py @ 47059: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
line wrap: on
line diff
--- a/mercurial/rewriteutil.py	Tue Apr 27 14:59:45 2021 -0700
+++ b/mercurial/rewriteutil.py	Thu Feb 11 15:11:10 2021 -0800
@@ -54,7 +54,10 @@
 
     newunstable = disallowednewunstable(repo, revs)
     if newunstable:
-        raise error.InputError(_(b"cannot %s changeset with children") % action)
+        hint = _(b"see 'hg help evolution.instability'")
+        raise error.InputError(
+            _(b"cannot %s changeset with children") % action, hint=hint
+        )
 
 
 def disallowednewunstable(repo, revs):