Mercurial - how to find first commit on specific branch -


i wan't determine age of "foo" branch. understand impossible info straight. trying write command find information first commit on "foo" branch.

hg log -r "parents(min(branch(foo)))" 

this 1 returns not want. can me?

does give need?

hg log -r "branch(default) , 0:" -l 1 --template "{date|isodate}\n" 

i think gives date of first changeset on named branch.

so, first changeset on branch "testbranch"

% hg log -r "branch(testbranch) , 0:" -l 1 changeset:   107:bd91c8e6fa5f branch:      testbranch user:        nick pierpoint date:        fri may 15 15:16:44 2015 +0100 summary:     test 1 

... adding template date:

% hg log -r "branch(testbranch) , 0:" -l 1 --template "{date|isodate}\n" 2015-05-15 15:16 +0100 

your min works if want return single changeset:

% hg log -r "min(branch(testbranch))" changeset:   107:bd91c8e6fa5f branch:      testbranch user:        nick pierpoint <nick.pierpoint@uk.bp.com> date:        fri may 15 15:16:44 2015 +0100 summary:     test 1 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -