Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-git-export @ 5260:0fc16031bb45
Make hg diff --git -r revA:revB detect (inverted) copies if revA > revB
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 28 Aug 2007 22:48:25 -0300 |
parents | 826659bd8053 |
children |
comparison
equal
deleted
inserted
replaced
5259:8040f2e4cad0 | 5260:0fc16031bb45 |
---|---|
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' -d '0 0' |
79 | 79 |
80 hg diff --git -r 9:11 | 80 hg diff --git -r 9:11 |
81 echo '% reversed' | |
82 hg diff --git -r 11:9 | |
81 | 83 |
82 echo a >> foo | 84 echo a >> foo |
83 hg add foo | 85 hg add foo |
84 hg ci -m 'add foo' | 86 hg ci -m 'add foo' |
85 echo b >> foo | 87 echo b >> foo |
90 hg ci -m 'change bar' | 92 hg ci -m 'change bar' |
91 | 93 |
92 echo | 94 echo |
93 echo '% file created before r1 and renamed before r2' | 95 echo '% file created before r1 and renamed before r2' |
94 hg diff --git -r -3:-1 | 96 hg diff --git -r -3:-1 |
97 echo '% reversed' | |
98 hg diff --git -r -1:-3 | |
95 echo | 99 echo |
96 echo '% file created in r1 and renamed before r2' | 100 echo '% file created in r1 and renamed before r2' |
97 hg diff --git -r -4:-1 | 101 hg diff --git -r -4:-1 |
102 echo '% reversed' | |
103 hg diff --git -r -1:-4 | |
98 echo | 104 echo |
99 echo '% file created after r1 and renamed before r2' | 105 echo '% file created after r1 and renamed before r2' |
100 hg diff --git -r -5:-1 | 106 hg diff --git -r -5:-1 |
107 echo '% reversed' | |
108 hg diff --git -r -1:-5 | |
101 | 109 |
102 echo | 110 echo |
103 echo '% comparing with the working dir' | 111 echo '% comparing with the working dir' |
104 echo >> start | 112 echo >> start |
105 hg ci -m 'change start again' -d '0 0' | 113 hg ci -m 'change start again' -d '0 0' |
137 echo '% one file is copied to many destinations and removed' | 145 echo '% one file is copied to many destinations and removed' |
138 hg cp brand-new2 brand-new3 | 146 hg cp brand-new2 brand-new3 |
139 hg mv brand-new2 brand-new3-2 | 147 hg mv brand-new2 brand-new3-2 |
140 hg ci -m 'multiple renames/copies' | 148 hg ci -m 'multiple renames/copies' |
141 hg diff --git -r -2 -r -1 | 149 hg diff --git -r -2 -r -1 |
150 echo '% reversed' | |
151 hg diff --git -r -1 -r -2 | |
142 | 152 |
143 echo '% there should be a trailing TAB if there are spaces in the file name' | 153 echo '% there should be a trailing TAB if there are spaces in the file name' |
144 echo foo > 'with spaces' | 154 echo foo > 'with spaces' |
145 hg add 'with spaces' | 155 hg add 'with spaces' |
146 hg diff --git | 156 hg diff --git |