[PATCH 5 of 5] import: introduce --inexact

timeless timeless at gmail.com
Sun Jan 17 15:57:06 CST 2016


Matt Mackall wrote:
> There are so many timeless patches in my inbox that I've lost the plot on all of
> them.

Sorry about that. Many of them aren't related. There were a few
attempts at a command for this one, but none of them were liked. Your
suggestion below sounds great.

> But I'm not excited by this one. My first question here would be: why doesn't --
> bypass just work for this use case? Oh, because --bypass defaults to "." rather
> than the patch parent without --exact.

Right.

>> This allows for a patch where the # Parent node is correct,
>> but the # Node is incorrect, allowing for memory based
>> grafting against alternative Nodes merely by doing:
>> hg export REV | rewrite Parent | hg import --inexact --bypass -
>
> If that's your goal, wouldn't something like:
>
> hg export REV | hg import --bypass --dest <somerev>
>
> ..be much better?

Yes. I can't send that before Wednesday, so I think I'll queue it
after the freeze.


More information about the Mercurial-devel mailing list