This is an archive of the discontinued Mercurial Phabricator instance.

templater: make templatepaths() return a single path, or None
ClosedPublic

Authored by martinvonz on Jul 22 2020, 1:24 AM.

Details

Summary

The function returns either a singleton list or an empty list, so it
makes more sense to return a value or None. The plural in the name
also doesn't make sense, but templatepath() is already taken, so I
renamed it to templatedir() instead.

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.