Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 296
Max Avatar asked Sep 03 '12 09:09

Max


2 Answers

The command hg status -i does exactly that.

like image 197
Jon Avatar answered Oct 26 '22 08:10

Jon


@Jon beat me to the punch with the right answer, but its worth nothing that along with status -i, there is:

  • hg status -m (only modified files)
  • hg status -a (only files that were added)
  • hg status -r (only files that were removed)
  • hg status -d (only files that were deleted)
  • hg status -u (all non-tracked files)
  • hg status -c (files with no changes, ie. "clean")
  • hg status -A (all files, ie, everything)
like image 22
Burhan Khalid Avatar answered Oct 26 '22 09:10

Burhan Khalid