Reputation: 196
We have quite many branches in our repository, I wonder if there is a quick way to list out all active branches created by myself.
Upvotes: 3
Views: 791
Reputation: 6044
You get all children of any branch point, whether named branch or unnamed branch by means of using revlogs:
hg log -r"children(branchpoint())"
Additionally you want to throw in not closed()
and want to restrict it to yourself as user via -u YOURNAME
.
Throw in a bit of bash and you get a list of active branches which you contributed to by
hg log -u YOURNAME -r"children(branchpoint()) and not closed()" --template="{branch}: {rev}:{node|short}\n" | sort | uniq
I rather use --template="{branch}: {rev}:{node|short} {desc}\n"
in order to better see also the revisions and first commit message - but you can just limit it to `{branch}\n'.
Also see hg help revset for (further) help on advanced log searches - it allows very well refined searches. You might do without bash's sort and unique by using them even more extensively.
EDIT: changed quotes from single to double
Upvotes: 4