Set or change THG (TortoiseHg) branch color

一笑奈何 提交于 2019-12-22 04:31:13

问题


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.


回答1:


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

, 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 (\)



来源:https://stackoverflow.com/questions/31913370/set-or-change-thg-tortoisehg-branch-color

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!