[PATCH] revsetbenchmark: add some simpler revset for heads and roots

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Apr 16 18:05:15 EDT 2019


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1554378409 -7200
#      Thu Apr 04 13:46:49 2019 +0200
# Node ID 264dd70fbad7f44f9d6b131b8e40d09b554879e2
# Parent  a362b0b95e42c8f7d46d7e3a0eb4cc531fa5f2d6
# EXP-Topic extra-revset
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 264dd70fbad7
revsetbenchmark: add some simpler revset for heads and roots

This revset might leverage compiled code in the future so lets start to track
them.

diff --git a/contrib/base-revsets.txt b/contrib/base-revsets.txt
--- a/contrib/base-revsets.txt
+++ b/contrib/base-revsets.txt
@@ -47,3 +47,6 @@ parents(20000)
 # The one below is used by rebase
 (children(ancestor(tip~5, tip)) and ::(tip~5))::
 heads(commonancestors(last(head(), 2)))
+heads(-10000:-1)
+roots(-10000:-1)
+only(max(head()), min(head()))


More information about the Mercurial-devel mailing list