Mercurial > evolve
comparison hgext/evolve.py @ 1638:5b7596805f7f
evolve: treat no support as non fatal
When running evolve --all, unhandled edges should not block other
revisions from being solved.
author | timeless@gmail.com |
---|---|
date | Thu, 14 Apr 2016 15:02:10 +0000 |
parents | 078e6777ac15 |
children | ff0ff0f28a13 |
comparison
equal
deleted
inserted
replaced
1637:078e6777ac15 | 1638:5b7596805f7f |
---|---|
1874 pctx = orig.p1() | 1874 pctx = orig.p1() |
1875 if len(orig.parents()) == 2: | 1875 if len(orig.parents()) == 2: |
1876 if not pctx.obsolete(): | 1876 if not pctx.obsolete(): |
1877 pctx = orig.p2() # second parent is obsolete ? | 1877 pctx = orig.p2() # second parent is obsolete ? |
1878 elif orig.p2().obsolete(): | 1878 elif orig.p2().obsolete(): |
1879 raise error.Abort(_("no support for evolving merge changesets " | 1879 hint = _("Redo the merge and use `hg prune <old> " |
1880 "with two obsolete parents yet"), | 1880 "--succ <new>` to obsolete the old one") |
1881 hint=_("Redo the merge and use `hg prune <old> " | 1881 ui.warn(_("warning: no support for evolving merge changesets " |
1882 "--succ <new>` to obsolete the old one")) | 1882 "with two obsolete parents yet\n") + |
1883 _("(%s)\n") % hint) | |
1884 return False | |
1883 | 1885 |
1884 if not pctx.obsolete(): | 1886 if not pctx.obsolete(): |
1885 ui.warn(_("cannot solve instability of %s, skipping\n") % orig) | 1887 ui.warn(_("cannot solve instability of %s, skipping\n") % orig) |
1886 return False | 1888 return False |
1887 obs = pctx | 1889 obs = pctx |