evolve: show `hg help evolve.interrupted-evolve` in error when conflicts
The help list various flags which you can use during interrupted evolve
resolution and description about what they do. This will be very helpful for
user on how to continue an interrupted evolve.
# Extension which prevent changeset to be turn public by push operation## Copyright 2011 Logilab SA <contact@logilab.fr>## This software may be used and distributed according to the terms of the# GNU General Public License version 2 or any later version.frommercurialimportextensions,utilfrommercurialimportdiscoverydefcheckpublish(orig,repo,remote,outgoing,*args):# is remote publishing?publish=Trueif'phases'inremote.listkeys('namespaces'):remotephases=remote.listkeys('phases')publish=remotephases.get('publishing',False)npublish=0ifpublish:forrevinoutgoing.missing:ifrepo[rev].phase():npublish+=1ifnpublish:repo.ui.warn("Push would publish %s changesets"%npublish)ret=orig(repo,remote,outgoing,*args)ifnpublish:raiseutil.Abort("Publishing push forbidden",hint="Use `hg phase -p <rev>` to manually publish them")returnretdefuisetup(ui):extensions.wrapfunction(discovery,'checkheads',checkpublish)