Mercurial > public > mercurial-scm > hg
diff tests/test-churn.t @ 24139:73b3218bb078
churn: deprecate -t option in favour of -T
We use -T consistently elsewhere to refer to the --template option.
The old -t option is now renamed to --oldtemplate so that -t still
works. This has the benign side effect of introducing and immediately
deprecating a new long option.
We also test with both -t and -T options.
author | Jordi Guti?rrez Hermoso <jordigh@octave.org> |
---|---|
date | Tue, 24 Feb 2015 11:37:07 -0500 |
parents | 9846b40d01e7 |
children | 1aee2ab0f902 |
line wrap: on
line diff
--- a/tests/test-churn.t Tue Feb 24 10:55:24 2015 +0100 +++ b/tests/test-churn.t Tue Feb 24 11:37:07 2015 -0500 @@ -171,4 +171,27 @@ El Ni\xc3\xb1o 1 *************** (esc) with space 1 *************** +Test --template argument, with backwards compatiblity + + $ hg churn -t '{author|user}' + user1 4 *************************************************************** + user3 3 *********************************************** + user2 2 ******************************** + nino 1 **************** + with 1 **************** + 0 + user4 0 + $ hg churn -T '{author|user}' + user1 4 *************************************************************** + user3 3 *********************************************** + user2 2 ******************************** + nino 1 **************** + with 1 **************** + 0 + user4 0 + $ hg churn -t 'alltogether' + alltogether 11 ********************************************************* + $ hg churn -T 'alltogether' + alltogether 11 ********************************************************* + $ cd ..