2

我在 Windows 上使用 Mercurial 进行跨平台项目,使用 eol 扩展名将行尾转换为 Unix 格式,这主要工作,除了 .hgeol 和 .hgignore 没有被翻译。我的 .hgeol 看起来像这样:

[patterns]
** = native
.* = native

我从文档中得到 ** 行,然后添加 .* 以防它像 Unix shell 扩展一样工作,否则会忽略以 . 开头的文件名。但还是不行。还有什么我需要做的吗?

4

1 回答 1

1

The source of eol.py explicitly disable translations for files starting with .hg*:

self.cfg.set('patterns', '.hg*', 'BIN')

If that is a problem for you, please open an issue in our bugtracker (I don't know why they chose to disable it for this files).

于 2011-03-20T23:17:17.473 回答