Ben
Ben

Reputation: 62464

Mercurial not ignoring files

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?

Upvotes: 4

Views: 2179

Answers (1)

Senthess
Senthess

Reputation: 17590

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.

Upvotes: 9

Related Questions