Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-git-export @ 3702:70c3ee224c08
Don't generate git patches that rename a file to multiple destinations
With this patch, instead of generating N renames, we'll generate
1 rename and N-1 copies.
Ideally the rename should come after the copies instead of before
them, but that'd be harder to do.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 20 Nov 2006 19:32:46 -0200 |
parents | 562a65635bcb |
children | 2308c39b9521 4ced663bebf0 |
comparison
equal
deleted
inserted
replaced
3701:05c8704a3743 | 3702:70c3ee224c08 |
---|---|
125 hg diff --git | 125 hg diff --git |
126 | 126 |
127 echo | 127 echo |
128 echo '% created between r1 and parent of wd; renamed in the wd' | 128 echo '% created between r1 and parent of wd; renamed in the wd' |
129 hg diff --git -r -2 | 129 hg diff --git -r -2 |
130 hg ci -m 'mv brand-new brand-new2' | |
131 | |
132 echo '% one file is copied to many destinations and removed' | |
133 hg cp brand-new2 brand-new3 | |
134 hg mv brand-new2 brand-new3-2 | |
135 hg ci -m 'multiple renames/copies' | |
136 hg diff --git -r -2 -r -1 | |
137 |