[PATCH 3 of 3 RFC] import: add new --faithful flag to use metadata but relax checks

Sean Farley sean at farley.io
Fri Mar 11 15:26:56 EST 2016


Augie Fackler <raf at durin42.com> writes:

> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1457539063 18000
> #      Wed Mar 09 10:57:43 2016 -0500
> # Node ID 7d53477e4496e8f2b16b12ed445407e79bbb787b
> # Parent  602504c64084d85820c883a43b02951a61e992f5
> # EXP-Topic import
> import: add new --faithful flag to use metadata but relax checks
>
> Sometimes it's helpful to import a patch with as much of the metadata
> (especially parents) intact as possible, but some bit of extra didn't
> make the trip through the exported patch. This gives users a tool to
> preserve as much metadata as possible without having to get an exact
> byte-for-byte match on the import process.

It's unclear to me that we need a new option for this. As a user, the
presence of --partial, --exact, and --import-branch is a bit overloaded.
I have many times wondered why as much as possible metadata isn't
already imported and why --no-commit or --partial don't relax those
checks already.


More information about the Mercurial-devel mailing list