This is an archive of the discontinued Mercurial Phabricator instance.

copies: fix crash on in changeset-centric tracing from commit to itself
ClosedPublic

Authored by martinvonz on Jul 23 2019, 12:15 AM.

Details

Summary

When we trace copies from a changeset to itself, the "work" queue ends
up empty and we hit the "assert False" after it.

It was only the last of the three added tests that failed before this
patch. That is because the other two cases have fast paths, so
_committedforwardcopies() is never reached.

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

martinvonz created this revision.Jul 23 2019, 12:15 AM

Intended for stable.

pulkit accepted this revision.Jul 24 2019, 5:11 AM
This revision is now accepted and ready to land.Jul 24 2019, 5:11 AM