test-annotate: add a test for issue 589.
authorPatrick Mezard <pmezard@gmail.com>
Wed, 20 Jun 2007 00:10:21 +0200
changeset 4639 c7371aa0c153
parent 4638 3c7fc13c4bfa
child 4640 178778ca648f
child 4641 54b735135fd3
test-annotate: add a test for issue 589.
tests/test-annotate
tests/test-annotate.out
--- a/tests/test-annotate	Wed Jun 20 00:10:21 2007 +0200
+++ b/tests/test-annotate	Wed Jun 20 00:10:21 2007 +0200
@@ -74,3 +74,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
+
--- a/tests/test-annotate.out	Wed Jun 20 00:10:21 2007 +0200
+++ b/tests/test-annotate.out	Wed Jun 20 00:10:21 2007 +0200
@@ -52,3 +52,6 @@
 0: a
 1: a
 1: a
+% generate ABA rename configuration
+% annotate after ABA with follow
+foo: foo