hg mv old new equivalent to mv old new hg addremove
Marcus Harnisch
mh-mercurial at online.de
Mon Jul 27 15:14:52 UTC 2020
On 25/07/2020 19.26, Uwe Brauer wrote:
> This seems trivial but I want to be 100 % sure:
>
> Is
>
> hg mv old new
> equivalent to
> mv old new
> hg addremove
Yes. ‘hg addremove’ synthesizes the meta-information about moved files
(perhaps also copied?) based on the similarity of files (default: 100%,
i.e. files must be identical). ‘hg help addremove --verbose’ has the
details.
I've used this sucessfully for importing from another VCS that doesn't
support this kind of functionality.
Cheers,
Marcus
More information about the Mercurial
mailing list