changeset 41273:5409f7ec7850

revsetbenchmarks: add various examples around the 'heads()' revset We are about to work on the performance of this revset. Before doing so we defines various ways to use it.
author Boris Feld <boris.feld@octobus.net>
date Sun, 13 Jan 2019 22:24:11 +0100
parents 71ef4e923886
children 4c6fdc7e2e7d
files contrib/all-revsets.txt
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/all-revsets.txt	Mon Jan 14 16:01:17 2019 +0100
+++ b/contrib/all-revsets.txt	Sun Jan 13 22:24:11 2019 +0100
@@ -139,3 +139,11 @@
 # test finding common ancestors
 heads(commonancestors(last(head(), 2)))
 heads(commonancestors(head()))
+
+# more heads testing
+heads(all())
+heads(-10000:-1)
+(-5000:-1000) and heads(-10000:-1)
+heads(matching(tip, "author"))
+heads(matching(tip, "author")) and -10000:-1
+(-10000:-1) and heads(matching(tip, "author"))