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

Matt Mackall mpm at selenic.com
Sat Jan 16 18:16:27 UTC 2016


On Wed, 2015-12-30 at 16:47 -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1451509906 0
> #      Wed Dec 30 21:11:46 2015 +0000
> # Node ID 1d608b49e9ec5cec469d24b8d008f5accd806ed3
> # Parent  a2350aab89ddc6ddffc556f8ecb0c2398ad348d8
> import: introduce --inexact

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

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.

> 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?

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list