distance to tag
Johannes Totz
j.totz at ucl.ac.uk
Thu Feb 27 15:54:18 UTC 2014
On 27/02/2014 13:32, David Champion wrote:
> * On 27 Feb 2014, Johannes Totz wrote:
>>
>> I guess something like... hg log -r X:Y --template "{node|short}" |
>> wc -l
>>
>> ...would work. But is there a built-in function? I'm mainly on
>> windows, no wc there.
>
> I don't know anymore what kind of scripting tools windows has. Can
> you get string length and use --template='.' ? The length of the
> output would be the distance, give or take.
On Windows:
hg log -r 32:0 --template "b \n" | find /v /c "bla"
Outputs:
33
That looks like what I want...
Thanks everyone!
More information about the Mercurial
mailing list