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
Showing
- mercurial/debugcommands.py 2 additions, 2 deletionsmercurial/debugcommands.py
- mercurial/hgweb/hgwebdir_mod.py 1 addition, 1 deletionmercurial/hgweb/hgwebdir_mod.py
- mercurial/hgweb/webcommands.py 1 addition, 1 deletionmercurial/hgweb/webcommands.py
- mercurial/templater.py 15 additions, 18 deletionsmercurial/templater.py
Loading
Please register or sign in to comment