Mercurial > public > mercurial-scm > hg-stable
comparison tests/test-annotate.py @ 36941:ec46b0ee2e3c
annotate: correct parameter name of decorate() function
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 12 Mar 2018 20:37:08 +0900 |
parents | 7affcabf561e |
children | 434e520adb8c |
comparison
equal
deleted
inserted
replaced
36940:dbae581010ea | 36941:ec46b0ee2e3c |
---|---|
23 p1data = b'a\nb\nc\n' | 23 p1data = b'a\nb\nc\n' |
24 p2data = b'a\nc\nd\n' | 24 p2data = b'a\nc\nd\n' |
25 childdata = b'a\nb2\nc\nc2\nd\n' | 25 childdata = b'a\nb2\nc\nc2\nd\n' |
26 diffopts = mdiff.diffopts() | 26 diffopts = mdiff.diffopts() |
27 | 27 |
28 def decorate(text, rev): | 28 def decorate(text, fctx): |
29 return ([annotateline(fctx=rev, lineno=i) | 29 return ([annotateline(fctx=fctx, lineno=i) |
30 for i in range(1, text.count(b'\n') + 1)], | 30 for i in range(1, text.count(b'\n') + 1)], |
31 text) | 31 text) |
32 | 32 |
33 # Basic usage | 33 # Basic usage |
34 | 34 |