This is an archive of the discontinued Mercurial Phabricator instance.

shortest: extract function for checking if a prefix is a revnum
ClosedPublic

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

Details

Summary

Much of isvalid() was about testing if a prefix is a valid revnum. I
want to reuse that soon, so let's move it out.

There is no significant slowdown from the function call overhead.

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.