Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Many thanks for everyone's help on this. I haven't found an answer to the problem but I did find a workaround that got rid of it. So I'm assuming that at some point when modifying the hgignore regexps mercurial got confused and corrupted it's internal data... or something. I don't know enough internals to know what this could have been.</p> <p>Anyway, should you find yourself in the same boat, here's what I did:</p> <ol> <li>Make sure your .hgignore file says what you want it to and that all the files turning up in the hg status are the ones you want to ignore. </li> <li>Add all the files to be ignored. hg addremove doesn't work because it does honour the hgignore contents, so I used Eclipse's hg plugin and did each file manually (well, I selected them all and Eclipse applied the add to them all individually).</li> <li><p>Revert all added files. I used the following because I'm on linux. (thanks to another poster on a separate question here on SO - which I can now no longer find unfortunately)</p> <p>hg status -an0 | xargs -0 hg revert</p></li> <li><p>repeat the above step until it no longer works. In my case this was sometimes up to as many as 3 reverts in a row! (No idea what it was actually doing though :( )</p></li> <li>commit</li> </ol> <p>You should now no longer see the ignored files in the hg status output.</p> <p>I'm sorry, I have no idea why this worked, or what the original problem was. If anyone does, I'd be very interested to know your thoughts.</p> <p>Many thanks again to everyone :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload