mercurial/cmdutil.py
branchstable
changeset 21944 0483ff40e326
parent 21924 5375ba75df40
child 21966 be94ed4baa5d
--- a/mercurial/cmdutil.py	Mon Jul 21 11:44:20 2014 +0900
+++ b/mercurial/cmdutil.py	Fri Jul 25 15:35:09 2014 -0500
@@ -1126,6 +1126,10 @@
             tmpl = templater.parsestring(t, quoted=False)
         return tmpl, None
 
+    if tmpl == 'list':
+        ui.write(_("available styles: %s\n") % templater.stylelist())
+        raise util.Abort(_("specify a template"))
+
     # perhaps it's a path to a map or a template
     if ('/' in tmpl or '\\' in tmpl) and os.path.isfile(tmpl):
         # is it a mapfile for a style?