mercurial/hgweb/webcommands.py
changeset 36863 1a1972b1a1ff
parent 36714 250f3168d907
child 36865 3d60a22e27f5
equal deleted inserted replaced
36862:ec0af9c59270 36863:1a1972b1a1ff
   760         path = fctx.path()
   760         path = fctx.path()
   761         ctx = fctx.changectx()
   761         ctx = fctx.changectx()
   762     basectx = ctx.p1()
   762     basectx = ctx.p1()
   763 
   763 
   764     style = web.config('web', 'style')
   764     style = web.config('web', 'style')
   765     if 'style' in req.form:
   765     if 'style' in req.req.qsparams:
   766         style = req.form['style'][0]
   766         style = req.req.qsparams['style']
   767 
   767 
   768     diffs = webutil.diffs(web, tmpl, ctx, basectx, [path], style)
   768     diffs = webutil.diffs(web, tmpl, ctx, basectx, [path], style)
   769     if fctx is not None:
   769     if fctx is not None:
   770         rename = webutil.renamelink(fctx)
   770         rename = webutil.renamelink(fctx)
   771         ctx = fctx
   771         ctx = fctx
  1009     repo = web.repo
  1009     repo = web.repo
  1010     revs = fctx.filelog().revs(start, end - 1)
  1010     revs = fctx.filelog().revs(start, end - 1)
  1011     entries = []
  1011     entries = []
  1012 
  1012 
  1013     diffstyle = web.config('web', 'style')
  1013     diffstyle = web.config('web', 'style')
  1014     if 'style' in req.form:
  1014     if 'style' in req.req.qsparams:
  1015         diffstyle = req.form['style'][0]
  1015         diffstyle = req.req.qsparams['style']
  1016 
  1016 
  1017     def diff(fctx, linerange=None):
  1017     def diff(fctx, linerange=None):
  1018         ctx = fctx.changectx()
  1018         ctx = fctx.changectx()
  1019         basectx = ctx.p1()
  1019         basectx = ctx.p1()
  1020         path = fctx.path()
  1020         path = fctx.path()