# HG changeset patch # User mpm@selenic.com # Date 1124661602 25200 # Node ID 2810c625ca9893ae04c86bc88c99d006ea0f2fc0 # Parent 7ffa91f275ff74a6e969b75182cd3ab822feb44b Add web:style option diff -r 7ffa91f275ff -r 2810c625ca98 doc/hgrc.5.txt --- a/doc/hgrc.5.txt Sun Aug 21 13:18:45 2005 -0700 +++ b/doc/hgrc.5.txt Sun Aug 21 15:00:02 2005 -0700 @@ -134,6 +134,8 @@ Where to output the error log. Default is stderr. templates;; Where to find the HTML templates. Default is install path. + style;; + Which template map style to use. maxchanges;; Maximum number of changes to list on the changelog. Default is 10. maxfiles;; diff -r 7ffa91f275ff -r 2810c625ca98 mercurial/hgweb.py --- 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 diff -r 7ffa91f275ff -r 2810c625ca98 templates/map-rss --- a/templates/map-rss Sun Aug 21 13:18:45 2005 -0700 +++ b/templates/map-rss Sun Aug 21 15:00:02 2005 -0700 @@ -1,3 +1,4 @@ +default = "changelog" header = header-rss.tmpl changelog = changelog-rss.tmpl changelogentry = changelogentry-rss.tmpl