【发布时间】:2009-11-25 17:57:47
【问题描述】:
Windows 无法获取我的 .hgignore 文件。我从命令行运行 Mercurial,“hg status”在被忽略的目录中显示了很多文件。
.hgignore 文件如下所示(文件开头或每行开头没有空格)。我已经把它放在仓库的根目录下。
\.pyc$
\.pyo$
\.DS_Store
\.Python
\.installed.cfg
^bin$
^build$
^develop-eggs$
^eggs$
^include$
^lib$
^parts$
^pip-log.txt$
^web/localsettings.py$
我尝试将文件保存为 ANSI 和 UTF-8,但似乎没有什么不同。
我知道该文件在 Linux 上运行良好,Windows 中的路径有什么不同吗?
【问题讨论】: