This is an archive of the discontinued Mercurial Phabricator instance.

templater: reuse check for both "map-cmdline.<name>" and "<name>"
AbandonedPublic

Authored by martinvonz on Jul 24 2020, 1:23 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

We had two callers of templatepath() that did the same test for both
"map-cmdline.<name>" and "<name>", so let's move that into
templatepath() so we can reuse it. It should be harmless for the `hg
debuginstall` (it just means an extra file-system check in the case of
broken installs).

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage