0

Basically, I want to get all my open branches, like this:

hg log --rev "author('ME') and head() and not closed()"

and show the branch name in the result when I run this command in the terminal.

Keenan Diggs
  • 2,287
  • 16
  • 17
  • This question is technically a dupe, however (https://stackoverflow.com/questions/30881351/mercurial-get-branch-name-by-changeset) is, unfortunately, neither Google nor Stackoverflow search friendly for this problem situation. So this question is an additional discovery vector for the information. – Keenan Diggs Jan 10 '19 at 19:25

1 Answers1

0

I found out templates can handle this.

hg log --rev "author('ME') and head() and not closed()" --template {branch\n}
Keenan Diggs
  • 2,287
  • 16
  • 17