2

如何在 Windows 的 mercurial.ini 中指定 CRLF 编码/解码选项?

该文档提供了以下选项:

[extensions]
win32text =
[decode]
** = cleverdecode:
[encode]
** = cleverencode:

对于所有文件,并且,

[extensions]
win32text =
[decode]
**.txt = cleverdecode:
[encode]
**.txt= cleverencode:

对于一种文件(此处为 .txt 文件)。

我需要指定 *.xml、*.java 等!

4

1 回答 1

4

[decode]在和[encode]部分添加更多行:

[extensions]
win32text =

[decode]
**.txt = cleverdecode:
**.java = cleverdecode:
**.xml = cleverdecode:

[encode]
**.txt = cleverencode:
**.java = cleverencode:
**.xml = cleverencode:

顺便说一句,双星匹配任何路径并跨越目录分隔符。有关hg help patternsMercurial 中所谓的“通配符”选项的更多信息,请参阅参考资料。

于 2009-05-22T21:37:47.257 回答