hgext/evolve.py
changeset 998 85ec2a55fe7c
parent 997 f48cd2f48d14
child 1002 195642c1520b
--- a/hgext/evolve.py	Mon Jun 30 13:37:15 2014 -0400
+++ b/hgext/evolve.py	Mon Jun 30 13:38:49 2014 -0400
@@ -2135,13 +2135,15 @@
 
     roots = repo.revs('roots(%ld)', revs)
     if len(roots) > 1:
-        raise util.Abort("set has multiple roots")
+        raise util.Abort(_("cannot fold non-linear revisions "
+                           "(multiple roots given)"))
     root = repo[roots[0]]
     if root.phase() <= phases.public:
         raise util.Abort(_("cannot fold public revisions"))
     heads = repo.revs('heads(%ld)', revs)
     if len(heads) > 1:
-        raise util.Abort("set has multiple heads")
+        raise util.Abort(_("cannot fold non-linear revisions "
+                           "(multiple heads given)"))
     head = repo[heads[0]]
     wlock = lock = None
     try: