Mercurial > public > mercurial-scm > hg-stable
comparison tests/test-git-export @ 8167:6c82beaaa11a
tests: removed redundant "-d '0 0'" from test scripts
The tests are executed with a .hgrc file which adds "-d '0 0'" by
default.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 26 Apr 2009 14:29:02 +0200 |
parents | 0fc16031bb45 |
children |
comparison
equal
deleted
inserted
replaced
8166:56719b1aa6f4 | 8167:6c82beaaa11a |
---|---|
2 | 2 |
3 hg init a | 3 hg init a |
4 cd a | 4 cd a |
5 | 5 |
6 echo start > start | 6 echo start > start |
7 hg ci -Amstart -d '0 0' | 7 hg ci -Amstart |
8 echo new > new | 8 echo new > new |
9 hg ci -Amnew -d '0 0' | 9 hg ci -Amnew |
10 echo '% new file' | 10 echo '% new file' |
11 hg diff --git -r 0 | 11 hg diff --git -r 0 |
12 | 12 |
13 hg cp new copy | 13 hg cp new copy |
14 hg ci -mcopy -d '0 0' | 14 hg ci -mcopy |
15 echo '% copy' | 15 echo '% copy' |
16 hg diff --git -r 1:tip | 16 hg diff --git -r 1:tip |
17 | 17 |
18 hg mv copy rename | 18 hg mv copy rename |
19 hg ci -mrename -d '0 0' | 19 hg ci -mrename |
20 echo '% rename' | 20 echo '% rename' |
21 hg diff --git -r 2:tip | 21 hg diff --git -r 2:tip |
22 | 22 |
23 hg rm rename | 23 hg rm rename |
24 hg ci -mdelete -d '0 0' | 24 hg ci -mdelete |
25 echo '% delete' | 25 echo '% delete' |
26 hg diff --git -r 3:tip | 26 hg diff --git -r 3:tip |
27 | 27 |
28 cat > src <<EOF | 28 cat > src <<EOF |
29 1 | 29 1 |
30 2 | 30 2 |
31 3 | 31 3 |
32 4 | 32 4 |
33 5 | 33 5 |
34 EOF | 34 EOF |
35 hg ci -Amsrc -d '0 0' | 35 hg ci -Amsrc |
36 chmod +x src | 36 chmod +x src |
37 hg ci -munexec -d '0 0' | 37 hg ci -munexec |
38 echo '% chmod 644' | 38 echo '% chmod 644' |
39 hg diff --git -r 5:tip | 39 hg diff --git -r 5:tip |
40 | 40 |
41 hg mv src dst | 41 hg mv src dst |
42 chmod -x dst | 42 chmod -x dst |
43 echo a >> dst | 43 echo a >> dst |
44 hg ci -mrenamemod -d '0 0' | 44 hg ci -mrenamemod |
45 echo '% rename+mod+chmod' | 45 echo '% rename+mod+chmod' |
46 hg diff --git -r 6:tip | 46 hg diff --git -r 6:tip |
47 | 47 |
48 echo '% nonexistent in tip+chmod' | 48 echo '% nonexistent in tip+chmod' |
49 hg diff --git -r 5:6 | 49 hg diff --git -r 5:6 |
66 hg diff --git | 66 hg diff --git |
67 | 67 |
68 echo | 68 echo |
69 echo '% diff across many revisions' | 69 echo '% diff across many revisions' |
70 hg mv dst dst2 | 70 hg mv dst dst2 |
71 hg ci -m 'mv dst dst2' -d '0 0' | 71 hg ci -m 'mv dst dst2' |
72 | 72 |
73 echo >> start | 73 echo >> start |
74 hg ci -m 'change start' -d '0 0' | 74 hg ci -m 'change start' |
75 | 75 |
76 hg revert -r -2 start | 76 hg revert -r -2 start |
77 hg mv dst2 dst3 | 77 hg mv dst2 dst3 |
78 hg ci -m 'mv dst2 dst3; revert start' -d '0 0' | 78 hg ci -m 'mv dst2 dst3; revert start' |
79 | 79 |
80 hg diff --git -r 9:11 | 80 hg diff --git -r 9:11 |
81 echo '% reversed' | 81 echo '% reversed' |
82 hg diff --git -r 11:9 | 82 hg diff --git -r 11:9 |
83 | 83 |
108 hg diff --git -r -1:-5 | 108 hg diff --git -r -1:-5 |
109 | 109 |
110 echo | 110 echo |
111 echo '% comparing with the working dir' | 111 echo '% comparing with the working dir' |
112 echo >> start | 112 echo >> start |
113 hg ci -m 'change start again' -d '0 0' | 113 hg ci -m 'change start again' |
114 | 114 |
115 echo > created | 115 echo > created |
116 hg add created | 116 hg add created |
117 hg ci -m 'add created' | 117 hg ci -m 'add created' |
118 | 118 |