diff tests/test-git-export @ 3696:562a65635bcb

diff: better detection of renames when comparing with the working dir.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 20 Nov 2006 19:32:38 -0200
parents 3a2fc90d27d6
children 70c3ee224c08
line wrap: on
line diff
--- a/tests/test-git-export
+++ b/tests/test-git-export
@@ -112,3 +112,18 @@ hg diff --git
 echo
 echo "% ...but there's another copy between the original rev and the wd"
 hg diff --git -r -2
+echo
+echo "% ...but the source of the copy was created after the original rev"
+hg diff --git -r -3
+hg ci -m 'mv created2 created3'
+
+echo > brand-new
+hg add brand-new
+hg ci -m 'add brand-new'
+hg mv brand-new brand-new2
+echo '% created in parent of wd; renamed in the wd'
+hg diff --git
+
+echo
+echo '% created between r1 and parent of wd; renamed in the wd'
+hg diff --git -r -2