diff tests/test-annotate @ 4640:178778ca648f

Merge with crew-stable
author Patrick Mezard <pmezard@gmail.com>
date Wed, 20 Jun 2007 00:22:51 +0200
parents 46280c004f22 c7371aa0c153
children 7a7d4937272b
line wrap: on
line diff
--- a/tests/test-annotate	Tue Jun 19 08:51:34 2007 +0200
+++ b/tests/test-annotate	Wed Jun 20 00:22:51 2007 +0200
@@ -76,3 +76,19 @@
 
 echo % linkrev vs rev
 hg annotate -r tip a
+
+# test issue 589
+# annotate was crashing when trying to --follow something 
+# like A -> B -> A
+echo % generate ABA rename configuration
+echo foo > foo
+hg add foo
+hg ci -m addfoo
+hg rename foo bar
+hg ci -m renamefoo
+hg rename bar foo
+hg ci -m renamebar
+
+echo % annotate after ABA with follow
+hg annotate --follow foo
+