test-hgignore: add testing for ui.ignore
I couldn't find any tests for this, and we're going to make changes here in
upcoming patches.
--- a/tests/test-hgignore.t Wed Dec 10 22:09:46 2014 -0500
+++ b/tests/test-hgignore.t Wed Dec 17 18:53:38 2014 -0800
@@ -64,13 +64,22 @@
? dir/c.o
? syntax
- $ echo "glob:**.o" > .hgignore
+Test that patterns from ui.ignore options are read:
+
+ $ echo > .hgignore
+ $ cat >> $HGRCPATH << EOF
+ > [ui]
+ > ignore.other = $TESTTMP/.hg/testhgignore
+ > EOF
+ $ echo "glob:**.o" > .hg/testhgignore
$ hg status
A dir/b.o
? .hgignore
? a.c
? syntax
+empty out testhgignore
+ $ echo > .hg/testhgignore
$ echo "glob:*.o" > .hgignore
$ hg status
A dir/b.o