Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hg log between two changesets of a branch

Tags:

mercurial

I working on a release so I need to specify a list of checked in tasks between two revisions of a branch.

This would work on the default branch hg log -r x:y

But I am not on the default branch, and I cannot find the syntax for specify a branch AND query for checked in between two revisions with hg log.

I think I am missing the obvious here but I don't know where.

like image 218
largotiticaca Avatar asked Oct 28 '13 16:10

largotiticaca


1 Answers

Use revsets, e.g. like so:

hg log -r "x:y and branch('mybranch')"

This should list all commits (numerically) between x and y that are also colored 'mybranch'.

If you prefer topological range (this is what most people understand with the term "branch") instead of simple numerical range, use '::' instead of ':', but check for order of x and y ( x < y ).

like image 174
Face Avatar answered Sep 21 '22 18:09

Face