comparison tests/test-revert @ 1487:2bc6cd62a29c

fix handling of files of unsupported type in the walk code if a file was of unsupported type, it was considered as 'seen' while walking. this way it was possible to have file in the dirstate not yielded by the walk function.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 02 Nov 2005 15:46:31 -0800
parents 30146be3437c
children 7544700fd931
comparison
equal deleted inserted replaced
1486:d7809d6e9db2 1487:2bc6cd62a29c
4 echo 123 > a 4 echo 123 > a
5 echo 123 > c 5 echo 123 > c
6 hg add a c 6 hg add a c
7 hg commit -m "first" -d "0 0" a c 7 hg commit -m "first" -d "0 0" a c
8 echo 123 > b 8 echo 123 > b
9 echo %% should show b unknown
9 hg status 10 hg status
10 echo 12 > c 11 echo 12 > c
12 echo %% should show b unknown and c modified
11 hg status 13 hg status
12 hg add b 14 hg add b
15 echo %% should show b added and c modified
13 hg status 16 hg status
14 hg rm a 17 hg rm a
18 echo %% should show a removed, b added and c modified
15 hg status 19 hg status
16 hg revert a 20 hg revert a
21 echo %% should show b added and c modified
17 hg status 22 hg status
18 hg revert b 23 hg revert b
24 echo %% should show b unknown and c modified
19 hg status 25 hg status
20 hg revert c 26 hg revert c
27 echo %% should show b unknown
21 hg status 28 hg status
29 echo %% should show a b and c
22 ls 30 ls
23 31
24 true 32 true