Mercurial > public > mercurial-scm > hg-stable
diff tests/test-fastannotate-hg.t @ 39934:47cb6750dea3
annotate: rename {line_number} to {lineno} (BC)
I think {lineno} looks more like a common template keyword. It isn't called
a {line} to avoid conflicts with the element name of {lines} and the
{_|splitlines} filter.
https://www.mercurial-scm.org/wiki/GenericTemplatingPlan#Dictionary
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 30 Sep 2018 15:35:17 +0900 |
parents | ddca38941b2b |
children | b6673e9bdcf6 |
line wrap: on
line diff
--- a/tests/test-fastannotate-hg.t Sun Sep 30 15:15:27 2018 +0900 +++ b/tests/test-fastannotate-hg.t Sun Sep 30 15:35:17 2018 +0900 @@ -77,7 +77,7 @@ $ hg annotate -Tjson -cdfnul a [ { - "lines": [{"date": [1.0, 0], "line": "a\n", "line_number": 1, "node": "8435f90966e442695d2ded29fdade2bac5ad8065", "path": "a", "rev": 0, "user": "nobody"}], + "lines": [{"date": [1.0, 0], "line": "a\n", "lineno": 1, "node": "8435f90966e442695d2ded29fdade2bac5ad8065", "path": "a", "rev": 0, "user": "nobody"}], "path": "a" } ]