revsetbenchmarks: add various examples around the 'heads()' revset
authorBoris Feld <boris.feld@octobus.net>
Sun, 13 Jan 2019 22:24:11 +0100
changeset 41273 5409f7ec7850
parent 41272 71ef4e923886
child 41274 4c6fdc7e2e7d
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.
contrib/all-revsets.txt
--- 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"))