Thinking about this a bit more, it would be best to forget about the exclude_internal function in that file.
For one, it ignores all directories from different SCMs. This could be bad when I'm using bzr, but have .git directories... When I have ignored those files is a different story I think.
It also fails for filenames containing special characters, newline for example.
Thinking about this a bit more, it would be best to forget about the exclude_internal function in that file.
For one, it ignores all directories from different SCMs. This could be bad when I'm using bzr, but have .git directories... When I have ignored those files is a different story I think.
It also fails for filenames containing special characters, newline for example.
What about
find . '(' -path .hg -prune ')' -o -print0 | xargs -0r hg status -n