This is an archive of the discontinued Mercurial Phabricator instance.

movedirstate: get copies from dirstate before setting parents
ClosedPublic

Authored by martinvonz on Jan 6 2020, 7:58 PM.

Details

Summary

Setting dirstate parents can modify the copies recorded in the
dirstate when there are two dirstate parents. I don't think we ever
call movedirstate() when there is more than one parent, but it seems
clearer to get the copies from the dirstate first anyway.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage