This is an archive of the discontinued Mercurial Phabricator instance.

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

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.