test-hgignore: add testing for ui.ignore
authorSiddharth Agarwal <sid0@fb.com>
Wed, 17 Dec 2014 18:53:38 -0800
changeset 23628 7d7a4848fff4
parent 23627 7aaf987d9e88
child 23629 a04c7b74b3d5
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.
tests/test-hgignore.t
--- 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