changeset 20369 | 9c6b86dd2ed2 |
parent 20079 | d4838302305c |
child 20370 | aa51392da507 |
--- a/tests/test-command-template.t Wed Feb 05 18:09:07 2014 -0600 +++ b/tests/test-command-template.t Fri Jan 17 00:10:37 2014 -0800 @@ -1626,3 +1626,14 @@ $ hg log -r 0 --template '{if(branches, "yes", "no")}\n' no + +Test shortest(node) function: + + $ echo b > b + $ hg ci -qAm b + $ hg log --template '{shortest(node)}\n' + d97c + f776 + $ hg log --template '{shortest(node, 10)}\n' + d97c383ae3 + f7769ec2ab