Heads from merged branches

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun Dec 1 22:53:21 UTC 2013


On 12/01/2013 02:42 PM, anatoly techtonik wrote:
> The workaround is to declare the branch closed in the merge
> commit. Using "hg commit --close-branch" will make the branch
> disappear from the "hg branch" output. In addition to this, the
> command "hg heads --closed" will show the closed branch as well.
> I don't want to close branches. I want them to show in `branches` command
> without any additional switches so that I can switch to them when needed.
> The confusing part is heads output. Is it possible to change the default
> behaviour to be basic --topo stuff?
You can easily create an alias doing what you want

[alias]
thead=head --topo

-- 
Pierre-Yves



More information about the Mercurial mailing list