[PATCH 2 of 2] revset: add larger test for heads(ancestors(…))

Boris Feld boris.feld at octobus.net
Mon Jul 16 12:37:15 EDT 2018


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1531752392 -7200
#      Mon Jul 16 16:46:32 2018 +0200
# Node ID 9967063d91c275f21634c36e809d0e9982896d0c
# Parent  d401e0d99b2c8e18bda7e007c2cd7599afbb365c
# EXP-Topic revset-bench
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 9967063d91c2
revset: add larger test for heads(ancestors(…))

It is important to not regress on this benchmark so we move it into the "base"
file. And we add another benchmark with more than two revisions.

diff --git a/contrib/all-revsets.txt b/contrib/all-revsets.txt
--- a/contrib/all-revsets.txt
+++ b/contrib/all-revsets.txt
@@ -138,3 +138,4 @@ secret()
 
 # test finding common ancestors
 heads(commonancestors(last(head(), 2)))
+heads(commonancestors(head()))
diff --git a/contrib/base-revsets.txt b/contrib/base-revsets.txt
--- a/contrib/base-revsets.txt
+++ b/contrib/base-revsets.txt
@@ -46,3 +46,4 @@ parents(20000)
 (20000::) - (20000)
 # The one below is used by rebase
 (children(ancestor(tip~5, tip)) and ::(tip~5))::
+heads(commonancestors(last(head(), 2)))


More information about the Mercurial-devel mailing list