This is an archive of the discontinued Mercurial Phabricator instance.

repoview: pin revisions for `local` and `other` when a merge is active
ClosedPublic

Authored by mharbison72 on Sep 4 2020, 5:44 PM.

Details

Summary

I've hit this a couple of times, where pulling with a dirty wdir obsoletes
p1 and updating to the successor results in merge conflicts. The problem was
resolving them failed immediately, complaining that the old checkout was
filtered.

The change in test-rebase-obsolete.t is because there's an outstanding merge
conflict in a rebase operation. The summary prompt to merge seems incorrect for
this scenario, but that's an existing issue.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mharbison72 created this revision.Sep 4 2020, 5:44 PM

I'm not sure if the other op_state files need similar treatment. The fact that this catches a rebase mid operation makes me think this will cover everything.

pulkit accepted this revision.Sep 8 2020, 3:34 AM
This revision is now accepted and ready to land.Sep 8 2020, 3:34 AM