mercurial/rewriteutil.py
changeset 47070 d90f6237b3aa
parent 47069 5b6dd0d9171b
child 47271 055f7b9f2307
--- a/mercurial/rewriteutil.py	Tue May 04 10:16:34 2021 -0700
+++ b/mercurial/rewriteutil.py	Tue May 04 10:49:32 2021 -0700
@@ -80,7 +80,9 @@
     if newunstable:
         hint = _(b"see 'hg help evolution.instability'")
         raise error.InputError(
-            _(b"cannot %s changeset with children") % action, hint=hint
+            _(b"cannot %s changeset, as that will orphan %d descendants")
+            % (action, len(newunstable)),
+            hint=hint,
         )
 
     if not obsolete.isenabled(repo, obsolete.allowdivergenceopt):