[PATCH] Sort removes first when applying updates (fixes issues 750 and 912)

Patrick Mézard pmezard at gmail.com
Fri Jul 11 08:26:07 CDT 2008


Paul Moore a écrit :
> # HG changeset patch
> # User Paul Moore <p.f.moore at gmail.com>
> # Date 1214931571 -3600
> # Node ID 78b3e254478e76d8f5058670f447ae1cbceab708
> # Parent  88a1bcc5c6a7b1729eb97d0509531c0f9f4a606e
> Sort removes first when applying updates (fixes issues 750 and 912)
> 
> This change ensures that removes happen first in applyupdates(). This avoids
> issues where we try to make a case-only rename of a file on a case insensitive
> system. Without this patch, the add of the new name happens before the remove
> of the old one - which results in the file not existing, as the two names are
> effectively the same.
> 
> With the patch, the old name gets removed then the new one gets added, which
> is always safe.

In crew as 482581431dcd, at last. Thanks for the fix.

--
Patrick Mézard


More information about the Mercurial-devel mailing list