mercurial/revset.py
changeset 49972 1bd33932713d
parent 49725 f632b9e1e047
parent 49946 76c128d4de4e
child 50384 92f71d40fc1d
equal deleted inserted replaced
49967:5698c5eee12b 49972:1bd33932713d
     8 
     8 
     9 import binascii
     9 import binascii
    10 import functools
    10 import functools
    11 import random
    11 import random
    12 import re
    12 import re
    13 import sys
       
    14 
    13 
    15 from .i18n import _
    14 from .i18n import _
    16 from .pycompat import getattr
    15 from .pycompat import getattr
    17 from .node import (
    16 from .node import (
    18     bin,
    17     bin,
  2350         return True
  2349         return True
  2351 
  2350 
  2352     return subset & s.filter(filter, condrepr=b'<roots>')
  2351     return subset & s.filter(filter, condrepr=b'<roots>')
  2353 
  2352 
  2354 
  2353 
  2355 MAXINT = sys.maxsize
  2354 MAXINT = (1 << 31) - 1
  2356 MININT = -MAXINT - 1
  2355 MININT = -MAXINT - 1
  2357 
  2356 
  2358 
  2357 
  2359 def pick_random(c, gen=random):
  2358 def pick_random(c, gen=random):
  2360     # exists as its own function to make it possible to overwrite the seed
  2359     # exists as its own function to make it possible to overwrite the seed