changeset 23628:7d7a4848fff4

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.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 17 Dec 2014 18:53:38 -0800
parents 7aaf987d9e88
children a04c7b74b3d5
files tests/test-hgignore.t
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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