Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
24138:eabe44ec5af5 | 24139:73b3218bb078 |
---|---|
169 user2 2 ***************************** | 169 user2 2 ***************************** |
170 user4 2 ***************************** | 170 user4 2 ***************************** |
171 El Ni\xc3\xb1o 1 *************** (esc) | 171 El Ni\xc3\xb1o 1 *************** (esc) |
172 with space 1 *************** | 172 with space 1 *************** |
173 | 173 |
174 Test --template argument, with backwards compatiblity | |
175 | |
176 $ hg churn -t '{author|user}' | |
177 user1 4 *************************************************************** | |
178 user3 3 *********************************************** | |
179 user2 2 ******************************** | |
180 nino 1 **************** | |
181 with 1 **************** | |
182 0 | |
183 user4 0 | |
184 $ hg churn -T '{author|user}' | |
185 user1 4 *************************************************************** | |
186 user3 3 *********************************************** | |
187 user2 2 ******************************** | |
188 nino 1 **************** | |
189 with 1 **************** | |
190 0 | |
191 user4 0 | |
192 $ hg churn -t 'alltogether' | |
193 alltogether 11 ********************************************************* | |
194 $ hg churn -T 'alltogether' | |
195 alltogether 11 ********************************************************* | |
196 | |
174 $ cd .. | 197 $ cd .. |