Mercurial > hg
diff tests/test-hgignore.t @ 27672:f2da9bb87ae0
debugignore: find out why a file is being ignored (issue4856)
This patch adds a capability to hg debugignore: to explain why a given file is
being ignores by mercurial. We display the filename, line and linenumber of the
rule that lead us to ignore the file.
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Tue, 05 Jan 2016 07:47:08 -0800 |
parents | 067d87feeb11 |
children | 6ff556ef5a46 |
line wrap: on
line diff
--- a/tests/test-hgignore.t Tue Jan 05 07:47:08 2016 -0800 +++ b/tests/test-hgignore.t Tue Jan 05 07:47:08 2016 -0800 @@ -168,6 +168,7 @@ $ hg debugignore b.o b.o is ignored + (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 1: '*') $ cd .. @@ -198,6 +199,7 @@ a.c is not ignored $ hg debugignore dir/c.o dir/c.o is ignored + (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 2: 'dir/**/c.o') Check using 'include:' in ignore file @@ -283,3 +285,4 @@ [1] $ hg debugignore dir1/file2 dir1/file2 is ignored + (ignore rule in dir2/.hgignore, line 1: 'file*2')