comparison mercurial/revset.py @ 49972:1bd33932713d

branching: merge with stable
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 31 Jan 2023 11:41:59 +0100
parents f632b9e1e047 76c128d4de4e
children 92f71d40fc1d
comparison
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