# HG changeset patch # User Boris Feld # Date 1548338595 18000 # Node ID 3267aca2ec7eb5f1351e2140ceb515a15f56282a # Parent 5997eabc7b85f764a57fc55333dea099fc2ab1d4 revsetbenchmark: track some simple use of "only" The only revset is quite useful and has various possible optimisation. tracking its timing seems useful. diff -r 5997eabc7b85 -r 3267aca2ec7e contrib/all-revsets.txt --- a/contrib/all-revsets.txt Fri Mar 01 05:56:18 2019 +0530 +++ b/contrib/all-revsets.txt Thu Jan 24 09:03:15 2019 -0500 @@ -154,3 +154,6 @@ 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))