Show More
@@ -886,7 +886,7 b' def comparison(web):' | |||||
886 | pfctx = ctx.parents()[0][path] |
|
886 | pfctx = ctx.parents()[0][path] | |
887 | leftlines = filelines(pfctx) |
|
887 | leftlines = filelines(pfctx) | |
888 |
|
888 | |||
889 |
comparison = webutil.compare( |
|
889 | comparison = webutil.compare(context, leftlines, rightlines) | |
890 | if fctx is not None: |
|
890 | if fctx is not None: | |
891 | rename = webutil.renamelink(fctx) |
|
891 | rename = webutil.renamelink(fctx) | |
892 | ctx = fctx |
|
892 | ctx = fctx |
@@ -633,7 +633,7 b' def _comparegen(context, contextnum, lef' | |||||
633 | l = _getcompblock(leftlines, rightlines, oc) |
|
633 | l = _getcompblock(leftlines, rightlines, oc) | |
634 | yield {'lines': l} |
|
634 | yield {'lines': l} | |
635 |
|
635 | |||
636 |
def compare( |
|
636 | def compare(contextnum, leftlines, rightlines): | |
637 | args = (contextnum, leftlines, rightlines) |
|
637 | args = (contextnum, leftlines, rightlines) | |
638 | return templateutil.mappinggenerator(_comparegen, args=args, |
|
638 | return templateutil.mappinggenerator(_comparegen, args=args, | |
639 | name='comparisonblock') |
|
639 | name='comparisonblock') |
General Comments 0
You need to be logged in to leave comments.
Login now