How to check which files are being ignored because of .hgignore?

file, hgignore, mercurial

Solution

The command `hg status -i` does exactly that.

Problem

I'm quite often concerned that my hgignore file may be excluding important files. For example I just noticed that I was excluding all .exe files which excluded some little executable tools which should be kept with the source. It was a simple change to include them but makes me worried that the rules could have un-intended consequences. Is there a way to view a list of all the files which are not being tracked due to the `.hgignore` file? Just so I can periodically review the list to check I'm happy with it.

Original source