diff mercurial/obsolete.py @ 25412:443d4635e630

phases: add `hg help phases` hint to failures to edit public commits There were a couple of locations that were missing this hint after an edition of some kind failed due to the public phase.
author Jordi Guti?rrez Hermoso <jordigh@octave.org>
date Mon, 01 Jun 2015 14:16:52 -0400
parents d298805fb639
children 8d94861842e5
line wrap: on
line diff
--- a/mercurial/obsolete.py	Mon Jun 01 18:05:38 2015 +0000
+++ b/mercurial/obsolete.py	Mon Jun 01 14:16:52 2015 -0400
@@ -1215,7 +1215,8 @@
 
             if not prec.mutable():
                 raise util.Abort("cannot obsolete public changeset: %s"
-                                 % prec)
+                                 % prec,
+                                 hint='see "hg help phases" for details')
             nprec = prec.node()
             nsucs = tuple(s.node() for s in sucs)
             npare = None