largotiticaca
largotiticaca

Reputation: 383

hg log between two changesets of a branch

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.

Upvotes: 10

Views: 6888

Answers (1)

Face
Face

Reputation: 511

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 ).

Upvotes: 11

Related Questions