Mercurial > hg
comparison tests/test-hgignore.t @ 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 | a4b67bf1f0a5 |
children | a04c7b74b3d5 |
comparison
equal
deleted
inserted
replaced
23627:7aaf987d9e88 | 23628:7d7a4848fff4 |
---|---|
62 ? a.c | 62 ? a.c |
63 ? a.o | 63 ? a.o |
64 ? dir/c.o | 64 ? dir/c.o |
65 ? syntax | 65 ? syntax |
66 | 66 |
67 $ echo "glob:**.o" > .hgignore | 67 Test that patterns from ui.ignore options are read: |
68 | |
69 $ echo > .hgignore | |
70 $ cat >> $HGRCPATH << EOF | |
71 > [ui] | |
72 > ignore.other = $TESTTMP/.hg/testhgignore | |
73 > EOF | |
74 $ echo "glob:**.o" > .hg/testhgignore | |
68 $ hg status | 75 $ hg status |
69 A dir/b.o | 76 A dir/b.o |
70 ? .hgignore | 77 ? .hgignore |
71 ? a.c | 78 ? a.c |
72 ? syntax | 79 ? syntax |
73 | 80 |
81 empty out testhgignore | |
82 $ echo > .hg/testhgignore | |
74 $ echo "glob:*.o" > .hgignore | 83 $ echo "glob:*.o" > .hgignore |
75 $ hg status | 84 $ hg status |
76 A dir/b.o | 85 A dir/b.o |
77 ? .hgignore | 86 ? .hgignore |
78 ? a.c | 87 ? a.c |