Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-git-export Mon Nov 20 19:32:45 2006 -0200 +++ b/tests/test-git-export Mon Nov 20 19:32:46 2006 -0200 @@ -127,3 +127,11 @@ echo echo '% created between r1 and parent of wd; renamed in the wd' hg diff --git -r -2 +hg ci -m 'mv brand-new brand-new2' + +echo '% one file is copied to many destinations and removed' +hg cp brand-new2 brand-new3 +hg mv brand-new2 brand-new3-2 +hg ci -m 'multiple renames/copies' +hg diff --git -r -2 -r -1 +