diff tests/test-revset.t @ 25383:5909ac39b86a

revrange: drop unnecessary deduplication of revisions Because "l" is a smartset, duplicated entries are omitted by addsets.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 24 May 2015 17:53:22 +0900
parents ceaf04bb14ff
children a26a55406c0a
line wrap: on
line diff
--- 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)'