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

login
register
mail settings
Submitter Boris Feld
Date July 16, 2018, 4:37 p.m.
Message ID <9967063d91c275f21634.1531759035@FB-lair>
Download mbox | patch
Permalink /patch/32867/
State Accepted
Headers show

Comments

Boris Feld - July 16, 2018, 4:37 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@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.
Augie Fackler - July 16, 2018, 5:33 p.m.
On Mon, Jul 16, 2018 at 06:37:15PM +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld@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(…))

queued, thanks

Patch

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