diff tests/test-revset.t @ 21925:7142e04b438e

revset: avoid a ValueError when 'only()' is given an empty set This previously died in _revdescendants() taking the min() of the first set to only(), when it was empty. An empty second set already worked. Likewise, descendants() already handled an empty set.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 18 Jul 2014 19:46:56 -0400
parents e967c3b08705
children 95af98616aa7
line wrap: on
line diff
--- a/tests/test-revset.t	Tue Jul 15 23:34:13 2014 +0900
+++ b/tests/test-revset.t	Fri Jul 18 19:46:56 2014 -0400
@@ -427,6 +427,16 @@
   7
   8
   9
+
+Test empty set input
+  $ log 'only(p2())'
+  $ log 'only(p1(), p2())'
+  0
+  1
+  2
+  4
+  8
+  9
   $ log 'outgoing()'
   8
   9