contrib/base-revsets.txt
changeset 25608 2fea23d035d8
parent 25545 34d8d4930c88
child 25609 67a2192dcb64
equal deleted inserted replaced
25607:ddb2a648fdbd 25608:2fea23d035d8
       
     1 # Base Revsets to be used with revsetbenchmarks.py script
       
     2 #
       
     3 # The goal of this file is to gather a limited amount of revsets that allow a
       
     4 # good coverage of the internal revsets mechanisms.  Revsets included should not
       
     5 # be selected for their individual implementation, but for what they reveal of
       
     6 # the internal implementation of smartsets classes (and their interactions).
       
     7 #
       
     8 # Use and update this file when you change internal implementation of these
       
     9 # smartsets classes. Please include a comment explaining what each of your
       
    10 # addition is testing. Also check if your changes to the smartset class makes
       
    11 # some of the tests inadequate and replace them with a new one testing the same
       
    12 # behavior.
       
    13 #
       
    14 # The current content of this file is currently likely not reaching this goal
       
    15 # entirely, feel free, to audit its content and comment on each revset to
       
    16 # highlight what internal mechanisms they test.
       
    17 
       
    18 all()
       
    19 draft()
       
    20 ::tip
       
    21 draft() and ::tip
       
    22 ::tip and draft()
       
    23 0::tip
       
    24 roots(0::tip)
       
    25 author(lmoscovicz)
       
    26 author(mpm)
       
    27 author(lmoscovicz) or author(mpm)
       
    28 author(mpm) or author(lmoscovicz)
       
    29 tip:0
       
    30 0::
       
    31 # those two `roots(...)` inputs are close to what phase movement use.
       
    32 roots((tip~100::) - (tip~100::tip))
       
    33 roots((0::) - (0::tip))
       
    34 42:68 and roots(42:tip)
       
    35 ::p1(p1(tip))::
       
    36 public()
       
    37 :10000 and public()
       
    38 draft()
       
    39 :10000 and draft()
       
    40 roots((0:tip)::)
       
    41 (not public() - obsolete())
       
    42 (_intlist('20000\x0020001')) and merge()
       
    43 parents(20000)
       
    44 (20000::) - (20000)
       
    45 # The one below is used by rebase
       
    46 (children(ancestor(tip~5, tip)) and ::(tip~5))::