This is an archive of the discontinued Mercurial Phabricator instance.

shortest: move some safe code out of exception block
ClosedPublic

Authored by martinvonz on May 7 2018, 12:55 PM.

Details

Summary

The RevlogError and WdirUnsupported could be raised by
_partialmatch(), but not by the rest of isvalid(), so let's move the
rest out to make it clearer.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz created this revision.May 7 2018, 12:55 PM
This revision was automatically updated to reflect the committed changes.