Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial: List all unmerged branches

Tags:

mercurial

How do I list all unmerged branches?

That is, I want a list of all branches that are not closed, and their head is not merged into some other branch.

like image 431
Gili Avatar asked Oct 08 '14 03:10

Gili


1 Answers

According to http://bugs.python.org/issue15917 this should work:

hg log -r "head()-parents(merge())-closed()-tag(tip)" --template "{branch}\n"

The corresponding TortoiseHg filter is

head() and not closed() and not parents(merge()) and not tag(tip)

like image 87
Gili Avatar answered Sep 30 '22 03:09

Gili