This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: fix crash on `hg addremove` of added-but-deleted file
ClosedPublic

Authored by martinvonz on Apr 3 2019, 8:47 PM.

Details

Summary

If you hg add a file and then delete it from disk, and then run `hg
addremove`, the file ends up in the "removed" set that gets passed to
the findrenames() override. We then crash because the file is not in
the working copy parent. This patch fixes that.

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.Apr 3 2019, 8:47 PM
This revision was automatically updated to reflect the committed changes.