问题
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