This is an archive of the discontinued Mercurial Phabricator instance.

shortest: make {shortest("fffffffff")} work again
ClosedPublic

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

Details

Summary

{shortest("fffffffff")} should shorten it to the shortest unambiguous
prefix for the working directory. It used to do that until I broke it
in 7b2955624777 (scmutil: make shortesthexnodeidprefix() take a full
binary nodeid, 2018-04-14), when we started returning the full hex
nodeid for any working directory prefix shorter than 40 hex
digits. This patch fixes it by catching WdirUnsupported
specifically.

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.May 7 2018, 12:37 PM
martinvonz edited the summary of this revision. (Show Details)May 7 2018, 6:18 PM
martinvonz updated this revision to Diff 8487.
This revision was automatically updated to reflect the committed changes.