Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide a branch in Mercurial / TortoiseHg

We are planning on having named branches for client releases of from a core version of our product.

We do not wish to clutter TortoiseHg's branch diagram with unrelated branches i.e. the diagram is going to get massive as we add more and more client's.

Is there a way to hide everything else other than the locally current branch?

like image 765
Alex KeySmith Avatar asked Dec 04 '12 09:12

Alex KeySmith


People also ask

How to change branch in TortoiseHg?

As shown in the docs, all you should need to do is just click on the branch: default button near the top of the commit dialog, and change to a new branch name. With recent versions of Mercurial you need to do a hg push --new-branch to push a new branch to a remote repository.

What is TortoiseHg workbench?

Workbench. TortoiseHg is a Windows shell extension and a series of applications for the Mercurial distributed revision control system. It also includes a Gnome/Nautilus extension and a CLI wrapper application so the TortoiseHg tools can be used on non-Windows platforms.


1 Answers

  1. View → Filter toolbar (Ctrl-S)
  2. In the box, enter something like this:

    branch(default) or branch("branch 1") or branch("branch 2")

  3. Press Enter

Now only the branches default, branch 1 and branch 2 are visible, all others are hidden.

You can close the filter toolbar again without affecting the current filter. The background will stay yellow to alert you that there is an active filter.

If you uncheck the box "filter" it will show all changesets again, but those not matching the curent filter will be greyed out.

To create more advanced filters you can press the small ellipsis (…) to open a query wizard.

like image 61
Tomas Avatar answered Nov 14 '22 21:11

Tomas