Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
34252:945c9816ec1d | 34253:db63872e10cc |
---|---|
760 if fctx is not None: | 760 if fctx is not None: |
761 path = fctx.path() | 761 path = fctx.path() |
762 ctx = fctx.changectx() | 762 ctx = fctx.changectx() |
763 basectx = ctx.p1() | 763 basectx = ctx.p1() |
764 | 764 |
765 style = web.config('web', 'style', 'paper') | 765 style = web.config('web', 'style') |
766 if 'style' in req.form: | 766 if 'style' in req.form: |
767 style = req.form['style'][0] | 767 style = req.form['style'][0] |
768 | 768 |
769 diffs = webutil.diffs(web, tmpl, ctx, basectx, [path], style) | 769 diffs = webutil.diffs(web, tmpl, ctx, basectx, [path], style) |
770 if fctx is not None: | 770 if fctx is not None: |
997 | 997 |
998 repo = web.repo | 998 repo = web.repo |
999 revs = fctx.filelog().revs(start, end - 1) | 999 revs = fctx.filelog().revs(start, end - 1) |
1000 entries = [] | 1000 entries = [] |
1001 | 1001 |
1002 diffstyle = web.config('web', 'style', 'paper') | 1002 diffstyle = web.config('web', 'style') |
1003 if 'style' in req.form: | 1003 if 'style' in req.form: |
1004 diffstyle = req.form['style'][0] | 1004 diffstyle = req.form['style'][0] |
1005 | 1005 |
1006 def diff(fctx, linerange=None): | 1006 def diff(fctx, linerange=None): |
1007 ctx = fctx.changectx() | 1007 ctx = fctx.changectx() |