Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set or change THG (TortoiseHg) branch color

Tags:

tortoisehg

Sometimes by accident, or by who knows what, TortoiseHg changes branch colors.

I tried to find in the documentation how to set branch colors explicitly, but it didn't worked.

I tried an extension named 'color' but don't know how to configure it.

like image 774
d.popov Avatar asked Aug 10 '15 06:08

d.popov


1 Answers

It seems the Workbench settings UI can help with the correct syntax for the config file.

It can be used as documented: branchname:#HTML_Color, just need to put it in the correct setting name

What is in the config file at the end is:

branchcolors = Stable:#FC951E

as seen here, using orange for the Stable branch Stable:#FC951E

As documented officially, the value is SPACE separated list of branches.

Spaces and colons in the branch name must be escaped using a backslash (\)

like image 105
d.popov Avatar answered Jan 01 '23 20:01

d.popov