Mercurial > public > mercurial-scm > hg-stable
diff mercurial/obsolete.py @ 25411:d298805fb639
phases: rewrite "immutable changeset" to "public changeset"
The phrase "cannot edit immutable changeset" is kind of tautological.
Of course unchangeable things can't be changed. We instead mention
"public" and provide a hint so that we can point to the actual
problem. Even in cases where some operation other than edition cannot
be performed, "public" gives the root cause that results in the
"immutable" effect.
There is a precedent for saying "public" instead of "immutable", for
example, in `hg commit --amend`.
author | Jordi Guti?rrez Hermoso <jordigh@octave.org> |
---|---|
date | Mon, 01 Jun 2015 18:05:38 +0000 |
parents | 22f4ce49044d |
children | 443d4635e630 |
line wrap: on
line diff
--- a/mercurial/obsolete.py Tue Jun 02 15:04:39 2015 -0400 +++ b/mercurial/obsolete.py Mon Jun 01 18:05:38 2015 +0000 @@ -1214,7 +1214,7 @@ localmetadata.update(rel[2]) if not prec.mutable(): - raise util.Abort("cannot obsolete immutable changeset: %s" + raise util.Abort("cannot obsolete public changeset: %s" % prec) nprec = prec.node() nsucs = tuple(s.node() for s in sucs)