##// END OF EJS Templates
phases: add `hg help phases` hint to failures to edit public commits...
Jordi Gutiérrez Hermoso -
r25412:443d4635 default
parent child Browse files
Show More
@@ -928,7 +928,8 b' def between(repo, old, new, keep):'
928 raise util.Abort(_('cannot edit history that contains merges'))
928 raise util.Abort(_('cannot edit history that contains merges'))
929 root = ctxs[0] # list is already sorted by repo.set
929 root = ctxs[0] # list is already sorted by repo.set
930 if not root.mutable():
930 if not root.mutable():
931 raise util.Abort(_('cannot edit public changeset: %s') % root)
931 raise util.Abort(_('cannot edit public changeset: %s') % root,
932 hint=_('see "hg help phases" for details'))
932 return [c.node() for c in ctxs]
933 return [c.node() for c in ctxs]
933
934
934 def makedesc(repo, action, rev):
935 def makedesc(repo, action, rev):
@@ -1215,7 +1215,8 b' def createmarkers(repo, relations, flag='
1215
1215
1216 if not prec.mutable():
1216 if not prec.mutable():
1217 raise util.Abort("cannot obsolete public changeset: %s"
1217 raise util.Abort("cannot obsolete public changeset: %s"
1218 % prec)
1218 % prec,
1219 hint='see "hg help phases" for details')
1219 nprec = prec.node()
1220 nprec = prec.node()
1220 nsucs = tuple(s.node() for s in sucs)
1221 nsucs = tuple(s.node() for s in sucs)
1221 npare = None
1222 npare = None
@@ -220,6 +220,7 b' Check that histedit respect immutability'
220
220
221 $ hg histedit -r '.~2'
221 $ hg histedit -r '.~2'
222 abort: cannot edit public changeset: cb9a9f314b8b
222 abort: cannot edit public changeset: cb9a9f314b8b
223 (see "hg help phases" for details)
223 [255]
224 [255]
224
225
225
226
General Comments 0
You need to be logged in to leave comments. Login now