tests/test-annotate
changeset 4640 178778ca648f
parent 4361 46280c004f22
parent 4639 c7371aa0c153
child 4659 7a7d4937272b
--- a/tests/test-annotate
+++ b/tests/test-annotate
@@ -76,3 +76,19 @@ hg annotate -nf b
 
 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
+