hg mv old new equivalent to mv old new hg addremove

Dr Rainer Woitok rainer.woitok at gmail.com
Mon Jul 27 17:17:49 UTC 2020


Uwe,

On Monday, 2020-07-27 17:01:57 +0200, you wrote:

> ...
> Sorry to nag, but the following scripts seem to produce an identical
> result:

You are right.   If I remember correctly,  earlier versions of Mercurial
did not provide this  "recording removal of test.org  as rename to test-
new.org  (100% similar)" feature.   Now problems might only arise if you
do both, renaming and modifying in the same changeset.  Then I would he-
sitate to rely on  this similarity test  and would prefer  "hg mv"  over
just "mv"  (and if I forgot to use "hg mv" instead of "mv" but remember-
ed before committing, there's "hg mv --after" to correct the situation).

Sincerely,
  Rainer



More information about the Mercurial mailing list