tests/test-hgignore.t
branchstable
changeset 25870 3de48ff62733
parent 25869 a72e304df528
child 27326 ee2d7b5daa8a
equal deleted inserted replaced
25869:a72e304df528 25870:3de48ff62733
   184   ? .hgignore
   184   ? .hgignore
   185   ? otherignore
   185   ? otherignore
   186 
   186 
   187 Check recursive uses of 'include:'
   187 Check recursive uses of 'include:'
   188 
   188 
   189   $ echo "include:nestedignore" >> otherignore
   189   $ echo "include:nested/ignore" >> otherignore
   190   $ echo "glob:*ignore" > nestedignore
   190   $ mkdir nested
       
   191   $ echo "glob:*ignore" > nested/ignore
   191   $ hg status
   192   $ hg status
   192   A dir/b.o
   193   A dir/b.o
   193 
   194 
   194   $ cp otherignore goodignore
   195   $ cp otherignore goodignore
   195   $ echo "include:badignore" >> otherignore
   196   $ echo "include:badignore" >> otherignore
   196   $ hg status
   197   $ hg status
   197   skipping unreadable pattern file 'badignore': No such file or directory
   198   skipping unreadable pattern file 'badignore': No such file or directory
   198   A dir/b.o
   199   A dir/b.o
   199 
   200 
   200   $ mv goodignore otherignore
   201   $ mv goodignore otherignore
       
   202 
       
   203 Check using 'include:' while in a non-root directory
       
   204 
       
   205   $ cd ..
       
   206   $ hg -R ignorerepo status
       
   207   A dir/b.o
       
   208   $ cd ignorerepo
   201 
   209 
   202 Check including subincludes
   210 Check including subincludes
   203 
   211 
   204   $ hg revert -q --all
   212   $ hg revert -q --all
   205   $ hg purge --all --config extensions.purge=
   213   $ hg purge --all --config extensions.purge=