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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1115335

Title:
  hg displays errors in pre-commit.d/20warn-problem-files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1115335/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to