开发者

Mercurial not ignoring files

开发者 https://www.devze.com 2023-03-16 14:13 出处:网络
I\'ve tried multiple ways to block a folder of logs from Mercurial but it continues to be seen by hg status.I have other ignore commands that are being obeyed, but this folder for some reason won\'t b

I've tried multiple ways to block a folder of logs from Mercurial but it continues to be seen by hg status. I have other ignore commands that are being obeyed, but this folder for some reason won't be ignored. I've tried...

syntax: glob
sitename/system/logs

regexp:^sitename/system/logs$

glob:sitename/system/logs

Despite all of these methods in place I continue to see the following in hg status

M sitename/system/logs/log-2010-11-03.php开发者_如何学运维
M sitename/system/logs/log-2010-11-04.php

Any ideas on what I'm doing wrong?


Yes. The problem is you added the file. That's why you see an M. Stop tracking the file, and then your ignore will work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号