Page MenuHomePhabricator

localrepo: don't allow lookup of working directory revision
ClosedPublic

Authored by martinvonz on Apr 5 2019, 2:34 PM.

Details

Summary

It seems that repo.lookup(), which is what supports the "lookup" wire
protocol command, should not allow the working copy revision
input.

This fixes both the pull test and the convert test I just added.

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 5 2019, 2:34 PM
martinvonz updated this revision to Diff 14688.Apr 5 2019, 3:21 PM
This revision was automatically updated to reflect the committed changes.