[PATCH] revsetbenchmark: track some simple use of "only"

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Apr 26 20:44:46 EDT 2019


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1548338595 18000
#      Thu Jan 24 09:03:15 2019 -0500
# Node ID 1029dde2db77dd880cb970b8dadb025f04925aee
# Parent  5997eabc7b85f764a57fc55333dea099fc2ab1d4
# EXP-Topic revset.only
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 1029dde2db77
revsetbenchmark: track some simple use of "only"

The only revset is quite useful and has various possible optimisation. tracking
its timing seems useful.

diff --git a/contrib/all-revsets.txt b/contrib/all-revsets.txt
--- a/contrib/all-revsets.txt
+++ b/contrib/all-revsets.txt
@@ -154,3 +154,6 @@ roots(-10000:-1)
 roots(matching(tip, "author"))
 roots(matching(tip, "author")) and -10000:-1
 (-10000:-1) and roots(matching(tip, "author"))
+only(max(head()))
+only(max(head()), min(head()))
+only(max(head()), limit(head(), 1, 1))


More information about the Mercurial-devel mailing list