Mercurial > evolve
changeset 4426:7d97e08d13a0 stable
evolve: fix the dirstate after setting parents with dirty wdir (issue5930)
Before this patch, during an interrupted evolve it can be confused
about copies. This patch fix the dirstate when parents are changed
using dirstate.setparents() with a dirty wdir.
Changes in test file reflect the fixed behaviour.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Thu, 07 Mar 2019 01:47:14 +0530 |
parents | 43c24cf6d24b |
children | 9e2ee7dc5e34 |
files | hgext3rd/evolve/evolvecmd.py tests/test-evolve-continue.t |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/evolvecmd.py Thu Mar 07 01:02:05 2019 +0530 +++ b/hgext3rd/evolve/evolvecmd.py Thu Mar 07 01:47:14 2019 +0530 @@ -825,6 +825,7 @@ repo.dirstate.write(tr) # fix up dirstate for copies and renames copies.duplicatecopies(repo, repo[None], dest.rev(), orig.p1().rev()) + dirstatedance(repo, dest, orig.node(), None) class LocalMergeFailure(MergeFailure, exc.__class__): pass