tests/test-revset.t
changeset 25385 a26a55406c0a
parent 25383 5909ac39b86a
child 25632 015c0d1087a3
--- a/tests/test-revset.t	Sun May 24 17:59:55 2015 +0900
+++ b/tests/test-revset.t	Sun May 24 18:11:33 2015 +0900
@@ -1084,6 +1084,13 @@
   0
   1
 
+test that repeated `-r` options never eat up stack (issue4565)
+(uses `-r 0::1` to avoid possible optimization at old-style parser)
+
+  $ hg log -T '{rev}\n' `python -c "for i in xrange(500): print '-r 0::1 ',"`
+  0
+  1
+
 check that conversion to only works
   $ try --optimize '::3 - ::1'
   (minus