tests/test-status.t
branchstable
changeset 16144 4546a8513dcd
parent 16098 c6c9b83a1e8a
child 17377 a10f7eeb2588
equal deleted inserted replaced
16143:fceb2964fa6c 16144:4546a8513dcd
   293 
   293 
   294   $ touch empty
   294   $ touch empty
   295   $ hg ci -q -A -m 'add another file'
   295   $ hg ci -q -A -m 'add another file'
   296   $ hg status -A --rev 1:2 010a
   296   $ hg status -A --rev 1:2 010a
   297   C 010a
   297   C 010a
       
   298 
       
   299   $ cd ..
       
   300 
       
   301 test "hg status" with "directory pattern" which matches against files
       
   302 only known on target revision.
       
   303 
       
   304   $ hg init repo6
       
   305   $ cd repo6
       
   306 
       
   307   $ echo a > a.txt
       
   308   $ hg add a.txt
       
   309   $ hg commit -m '#0'
       
   310   $ mkdir -p 1/2/3/4/5
       
   311   $ echo b > 1/2/3/4/5/b.txt
       
   312   $ hg add 1/2/3/4/5/b.txt
       
   313   $ hg commit -m '#1'
       
   314 
       
   315   $ hg update -C 0 > /dev/null
       
   316   $ hg status -A
       
   317   C a.txt
       
   318 
       
   319 the directory matching against specified pattern should be removed,
       
   320 because directory existence prevents 'dirstate.walk()' from showing
       
   321 warning message about such pattern.
       
   322 
       
   323   $ test ! -d 1
       
   324   $ hg status -A --rev 1 1/2/3/4/5/b.txt
       
   325   R 1/2/3/4/5/b.txt
       
   326   $ hg status -A --rev 1 1/2/3/4/5
       
   327   R 1/2/3/4/5/b.txt
       
   328   $ hg status -A --rev 1 1/2/3
       
   329   R 1/2/3/4/5/b.txt
       
   330   $ hg status -A --rev 1 1
       
   331   R 1/2/3/4/5/b.txt
       
   332 
       
   333   $ cd ..