Show More
@@ -134,6 +134,8 b' web::' | |||||
134 | Where to output the error log. Default is stderr. |
|
134 | Where to output the error log. Default is stderr. | |
135 | templates;; |
|
135 | templates;; | |
136 | Where to find the HTML templates. Default is install path. |
|
136 | Where to find the HTML templates. Default is install path. | |
|
137 | style;; | |||
|
138 | Which template map style to use. | |||
137 | maxchanges;; |
|
139 | maxchanges;; | |
138 | Maximum number of changes to list on the changelog. Default is 10. |
|
140 | Maximum number of changes to list on the changelog. Default is 10. | |
139 | maxfiles;; |
|
141 | maxfiles;; |
@@ -626,8 +626,11 b' class hgweb:' | |||||
626 | t = self.templates or self.repo.ui.config("web", "templates", |
|
626 | t = self.templates or self.repo.ui.config("web", "templates", | |
627 | templatepath()) |
|
627 | templatepath()) | |
628 | m = os.path.join(t, "map") |
|
628 | m = os.path.join(t, "map") | |
|
629 | style = self.repo.ui.config("web", "style", "") | |||
629 | if args.has_key('style'): |
|
630 | if args.has_key('style'): | |
630 |
|
|
631 | style = args['style'][0] | |
|
632 | if style: | |||
|
633 | b = os.path.basename("map-" + style) | |||
631 | p = os.path.join(t, b) |
|
634 | p = os.path.join(t, b) | |
632 | if os.path.isfile(p): m = p |
|
635 | if os.path.isfile(p): m = p | |
633 |
|
636 |
General Comments 0
You need to be logged in to leave comments.
Login now