mercurial/hgweb/webcommands.py
changeset 31660 c2dbd818e884
parent 31082 abb92b3d370e
child 31661 f36dc643ffdc
equal deleted inserted replaced
31659:0eec36112e58 31660:c2dbd818e884
   754     if fctx is not None:
   754     if fctx is not None:
   755         path = fctx.path()
   755         path = fctx.path()
   756         ctx = fctx.changectx()
   756         ctx = fctx.changectx()
   757     basectx = ctx.p1()
   757     basectx = ctx.p1()
   758 
   758 
   759     parity = paritygen(web.stripecount)
       
   760     style = web.config('web', 'style', 'paper')
   759     style = web.config('web', 'style', 'paper')
   761     if 'style' in req.form:
   760     if 'style' in req.form:
   762         style = req.form['style'][0]
   761         style = req.form['style'][0]
   763 
   762 
   764     diffs = webutil.diffs(web.repo, tmpl, ctx, basectx, [path], parity, style)
   763     diffs = webutil.diffs(web, tmpl, ctx, basectx, [path], style)
   765     if fctx is not None:
   764     if fctx is not None:
   766         rename = webutil.renamelink(fctx)
   765         rename = webutil.renamelink(fctx)
   767         ctx = fctx
   766         ctx = fctx
   768     else:
   767     else:
   769         rename = []
   768         rename = []