branch | stable |
changeset 20312 | 268a5ab5c27b |
parent 20067 | 3d8bfe2ecf6d |
child 20369 | 9c6b86dd2ed2 |
child 20661 | 7e627fe63e5e |
--- a/mercurial/templater.py Thu Jan 23 14:31:05 2014 -0600 +++ b/mercurial/templater.py Thu Jan 23 01:29:50 2014 +0100 @@ -447,8 +447,10 @@ engines = {'default': engine} def stylelist(): - path = templatepath()[0] - dirlist = os.listdir(path) + paths = templatepath() + if not paths: + return _('no templates found, try `hg debuginstall` for more info') + dirlist = os.listdir(paths[0]) stylelist = [] for file in dirlist: split = file.split(".")