tests/test-revset.t
changeset 25383 5909ac39b86a
parent 25344 ceaf04bb14ff
child 25385 a26a55406c0a
--- a/tests/test-revset.t	Fri May 29 22:23:58 2015 +0200
+++ b/tests/test-revset.t	Sun May 24 17:53:22 2015 +0900
@@ -858,6 +858,16 @@
   4
   5
 
+test that more than one `-r`s are combined in the right order and deduplicated:
+
+  $ hg log -T '{rev}\n' -r 3 -r 3 -r 4 -r 5:2 -r 'ancestors(4)'
+  3
+  4
+  5
+  2
+  0
+  1
+
 test that `or` operation skips duplicated revisions from right-hand side
 
   $ try 'reverse(1::5) or ancestors(4)'