diff hgext/evolve.py @ 997:f48cd2f48d14

fold: reword error message for public commits This rewords the error message when attempting to fold public csets. It is somewhat clearer to not use contractions in formal writing. It also uses i18n for it. This commit also adds a new test for this error message.
author Jordi Guti?rrez Hermoso <jordigh@octave.org>
date Mon, 30 Jun 2014 13:37:15 -0400
parents b98dd5d3065c
children 85ec2a55fe7c
line wrap: on
line diff
--- a/hgext/evolve.py	Mon Jun 30 13:29:49 2014 -0400
+++ b/hgext/evolve.py	Mon Jun 30 13:37:15 2014 -0400
@@ -2138,7 +2138,7 @@
         raise util.Abort("set has multiple roots")
     root = repo[roots[0]]
     if root.phase() <= phases.public:
-        raise util.Abort("can't fold public revisions")
+        raise util.Abort(_("cannot fold public revisions"))
     heads = repo.revs('heads(%ld)', revs)
     if len(heads) > 1:
         raise util.Abort("set has multiple heads")