changeset 39800:572cd30eaffb stable

revset: add test demonstrating a bug with commonancestor() Specifically, 9 is clearly not in "::8 and ::9". Differential Revision: https://phab.mercurial-scm.org/D4737
author Valentin Gatien-Baron <vgatien-baron@janestreet.com>
date Tue, 25 Sep 2018 15:27:41 -0400
parents f28812c708a5
children cb5134f2318a
files tests/test-revset.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-revset.t	Tue Sep 25 16:03:14 2018 -0400
+++ b/tests/test-revset.t	Tue Sep 25 15:27:41 2018 -0400
@@ -1063,6 +1063,14 @@
   8
   9
 
+  $ hg log -T '{rev}\n' -r 'commonancestors(8 + 9)'
+  0
+  1
+  2
+  4
+  8
+  9
+
 test ancestor variants of empty revision
 
   $ log 'ancestor(none())'