Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-annotate.py Tue Mar 13 21:22:14 2018 +0900 +++ b/tests/test-annotate.py Mon Mar 12 20:37:08 2018 +0900 @@ -25,8 +25,8 @@ childdata = b'a\nb2\nc\nc2\nd\n' diffopts = mdiff.diffopts() - def decorate(text, rev): - return ([annotateline(fctx=rev, lineno=i) + def decorate(text, fctx): + return ([annotateline(fctx=fctx, lineno=i) for i in range(1, text.count(b'\n') + 1)], text)