[Python-Dev] Backport troubles with mercurial (original) (raw)

Amaury Forgeot d'Arc amauryfa at gmail.com
Wed Dec 29 09:02:23 CET 2010


2010/12/29 David Cournapeau <cournape at gmail.com>

The easiest way I found to emulate git cherry-pick (which does exactly what you want) with hg is to use import/export commands: http://mercurial.selenic.com/wiki/CommunicatingChanges

It is indeed quite a pain to use in my experience, because you cannot easily refer to the original commit the cherry pick is coming from (i.e. no equivalent to git cherry-pick -x), and the conflict resolution is quite dumb.

This is precisely why I proposed a specific example. Which precise steps do you take? How much typing or manual copy/paste is required for this very simple case? Can you do the merge in less than 10 minutes?

And finally the biased question: can you find one improvement over the current situation with svn?

One alternative is to be careful about where

you apply your patch ( http://stackoverflow.com/questions/3926906/what-is-the-most-efficient-way-to-handle-hg-import-rejects ), but that's not very convenient either.

I've read all this, and this method does not work, for several reasons:

-- Amaury Forgeot d'Arc -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20101229/a6876c77/attachment-0001.html>



More information about the Python-Dev mailing list