diff mercurial/hgweb.py @ 986:2810c625ca98

Add web:style option
author mpm@selenic.com
date Sun, 21 Aug 2005 15:00:02 -0700
parents edc368e0b9aa
children bfe12654764d
line wrap: on
line diff
--- a/mercurial/hgweb.py	Sun Aug 21 13:18:45 2005 -0700
+++ b/mercurial/hgweb.py	Sun Aug 21 15:00:02 2005 -0700
@@ -626,8 +626,11 @@
         t = self.templates or self.repo.ui.config("web", "templates",
                                                   templatepath())
         m = os.path.join(t, "map")
+        style = self.repo.ui.config("web", "style", "")
         if args.has_key('style'):
-            b = os.path.basename("map-" + args['style'][0])
+            style = args['style'][0]
+        if style:
+            b = os.path.basename("map-" + style)
             p = os.path.join(t, b)
             if os.path.isfile(p): m = p