This is an archive of the discontinued Mercurial Phabricator instance.

radix204: implement prefix lookup
AbandonedPublic

Authored by quark on Nov 2 2017, 2:45 PM.
Tags
None
Subscribers
None

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

The prefix lookup feature is used in sourcecontrol where the user provides an
incomplete hex string asking for the full commit hash. This diff implements it.

Test Plan

cargo test --lib. Also check kcov report to make sure every line in
lookup_prefix is covered.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Nov 2 2017, 2:45 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 2 2017, 2:45 PM
quark updated this revision to Diff 3252.Nov 3 2017, 2:17 AM
quark edited the summary of this revision. (Show Details)Nov 6 2017, 2:10 PM
quark updated this revision to Diff 3297.
quark abandoned this revision.Nov 11 2017, 1:34 AM

This becomes shorter after some refactoring. Therefore folded to a previous patch.