equal
deleted
inserted
replaced
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() |