Patchwork revsetbenchmark: add some simpler revset for heads and roots

login
register
mail settings
Submitter Pierre-Yves David
Date April 16, 2019, 10:05 p.m.
Message ID <264dd70fbad7f44f9d6b.1555452315@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/39670/
State Accepted
Headers show

Comments

Pierre-Yves David - April 16, 2019, 10:05 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.
Pulkit Goyal - April 16, 2019, 10:41 p.m.
On Wed, Apr 17, 2019 at 3:37 AM Pierre-Yves David <
pierre-yves.david@ens-lyon.org> wrote:

> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@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.
>

Queued this one, many thanks!

Patch

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()))