我如何使用 tortoisehg authorcolor 设置?

How do I use tortoisehg authorcolor setting?

TortoiseHg 有两个作者颜色设置

[tortoisehg]
authorcolor = True
authorcolor.USERNAME = color
  1. 是否可以不使用第一行而使用第二行?我假设不会,尽管我主要感兴趣的是为我的提交赋予不同的颜色。

  2. 如何使用具体表格?我见过的唯一例子是 authorcolor.Bob = blue。但是我的 'username',正如前面在文件中列出的那样,是 Terry Jan Reedy <email@some.place>。我如何将其转换为 USERNAME 的替代品?我已经尝试过各种引号组合或不组合,以及是否使用电子邮件组合。不幸的是,我的默认颜色是单调的绿色,这是最不显眼的颜色之一。还有,可以用什么color

  1. Two 设置是 THG 2.0 的美好时光(3.8 有点 "ancient",是吗?!)。现在我在 GUI 中找不到 any 对预定义 authorcolor 的引用(将状态与分支着色 f.e 进行比较)。现在,我想,他们分配了semi-automatically(如果启用)和author-color选择基于(不知何故很差"translated"?)author-string(见只有三位作者的回购样本和共同的/短的/前导部分两个)。

不,您不能在没有 authorcolor = True 的情况下使用 authorcolor.USERNAME = color,因为 authorcolor 的默认值为 false,没有着色

    Mercurial 中的
  1. Author-id 可以是(理论上)任何,这是 free-form 字段而 "Full Username " 只是被广泛接受的约定。当|如果你想使用authorcolor.USERNAME,你必须使用完整的用户名,因为它在你的[ui] username =或变更集中定义(因为even single additional space leading to a string-mismatch

在屏幕截图中查看 "luca" 和 "dedalus" 用户的颜色 是的,用户名 中的特殊字符必须 转义(我发现 commiter-id 中只有 e-mail 的 repo,但 "authorcolor.email@domain.tld" 也失败了),也许我们可以对 branch-names 使用转义规则(未测试,太懒了)

PS: 反正就是为了纪念我created ticket THG,大家可以支持关注一下,要的话