diff mercurial/hgweb/webcommands.py @ 34253:db63872e10cc

configitems: register the 'web.style' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:45:52 +0200
parents a6c18628dff1
children f6492f482c60
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Jun 30 03:45:51 2017 +0200
+++ b/mercurial/hgweb/webcommands.py	Fri Jun 30 03:45:52 2017 +0200
@@ -762,7 +762,7 @@
         ctx = fctx.changectx()
     basectx = ctx.p1()
 
-    style = web.config('web', 'style', 'paper')
+    style = web.config('web', 'style')
     if 'style' in req.form:
         style = req.form['style'][0]
 
@@ -999,7 +999,7 @@
     revs = fctx.filelog().revs(start, end - 1)
     entries = []
 
-    diffstyle = web.config('web', 'style', 'paper')
+    diffstyle = web.config('web', 'style')
     if 'style' in req.form:
         diffstyle = req.form['style'][0]