Page MenuHomePhabricator

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
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz created this revision.Apr 3 2019, 8:47 PM
This revision was automatically updated to reflect the committed changes.