evolve: abort on unknown divergent changeset base
authorDan Villiom Podlaski Christiansen <dan@cabo.dk>
Wed, 31 Jul 2013 19:56:28 +0200
changeset 749 f728edc7fcd1
parent 748 4979ef2c0900
child 750 ddbea2fdee5e
evolve: abort on unknown divergent changeset base ...rather than noisily dying with a KeyError.
hgext/evolve.py
--- a/hgext/evolve.py	Fri Nov 15 19:14:19 2013 -0500
+++ b/hgext/evolve.py	Wed Jul 31 19:56:28 2013 +0200
@@ -1195,7 +1195,8 @@
         newer = [n for n in newer if n and ctx.node() not in n]
         if newer:
             return base, tuple(ctx._repo[o] for o in newer[0])
-    raise KeyError('Base seem unknown. This case is not handled yet.')
+    raise util.Abort('base of divergent changeset not found',
+                     hint='this case is not yet handled')