HomePhabricator

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

Authored by martinvonz.

Description

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

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.

Differential Revision: https://phab.mercurial-scm.org/D8786