Mercurial > hg-stable
comparison tests/test-command-template.t @ 26486:8a732c322ca7
templatekw: add {changes}, {distance} and {tag} to the {latesttag} keyword
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 24 Aug 2015 23:30:17 -0400 |
parents | 43bf9471fae9 |
children | 875e5d89dc86 |
comparison
equal
deleted
inserted
replaced
26485:43bf9471fae9 | 26486:8a732c322ca7 |
---|---|
2688 3: at3:t3+0 | 2688 3: at3:t3+0 |
2689 2: t2+0 | 2689 2: t2+0 |
2690 1: t1+0 | 2690 1: t1+0 |
2691 0: null+1 | 2691 0: null+1 |
2692 | 2692 |
2693 $ hg log --template "{rev}: {latesttag % '{tag}+{distance},{changes} '}\n" | |
2694 10: t5+5,5 | |
2695 9: t5+4,4 | |
2696 8: t5+3,3 | |
2697 7: t5+2,2 | |
2698 6: t5+1,1 | |
2699 5: t5+0,0 | |
2700 4: at3+1,1 t3+1,1 | |
2701 3: at3+0,0 t3+0,0 | |
2702 2: t2+0,0 | |
2703 1: t1+0,0 | |
2704 0: null+1,1 | |
2705 | |
2693 $ hg log --template "{rev}: {latesttag('re:^t[13]$') % '{tag}, C: {changes}, D: {distance}'}\n" | 2706 $ hg log --template "{rev}: {latesttag('re:^t[13]$') % '{tag}, C: {changes}, D: {distance}'}\n" |
2694 10: t3, C: 8, D: 7 | 2707 10: t3, C: 8, D: 7 |
2695 9: t3, C: 7, D: 6 | 2708 9: t3, C: 7, D: 6 |
2696 8: t3, C: 6, D: 5 | 2709 8: t3, C: 6, D: 5 |
2697 7: t3, C: 5, D: 4 | 2710 7: t3, C: 5, D: 4 |