Rename info lost after repeated amends

Pierre-Yves David pyd at fb.com
Thu Apr 17 14:30:06 UTC 2014


On 04/17/2014 10:17 AM, Greg Ward wrote:
> 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?

Evolve is have been know to loose rename information (there is a bug for 
it). This has been fixed earlier this week by Julien Cristau from Logilab.

-- 
Pierre-Yves David



More information about the Evolve-testers mailing list