Rename info lost after repeated amends

Greg Ward greg at gerg.ca
Thu Apr 17 14:17:16 UTC 2014


Hi all --

I just got bitten by a bug that I think I have seen before: I'm
working on a single changeset that reorganizes a project, so there are
a lot of plain renames and a lot of renames that include small changes
(update imports, etc.).

I was *scrupulously* careful about using "hg mv". I reviewed "hg diff"
before every "hg amend" to make sure my renames were being recorded as
renames.

And yet, reviewing "hg pdiff" before pushing, I find a bunch of my
renames are no longer renames -- they're just "remove oldname, add
newname" with no copy information to link the two. ;-( I believe I can
workaround the problem with "hg rename --after" and another "hg
amend", but yuck. I shouldn't have to.

Has anyone else seen this? Do I need to work on cooking up a
reproduction script?

       Greg



More information about the Evolve-testers mailing list