Show More
@@ -10,7 +10,6 b' 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 | |
@@ -2355,7 +2354,7 b' def roots(repo, subset, x):' | |||||
2355 | return subset & s.filter(filter, condrepr=b'<roots>') |
|
2354 | return subset & s.filter(filter, condrepr=b'<roots>') | |
2356 |
|
2355 | |||
2357 |
|
2356 | |||
2358 | MAXINT = sys.maxsize |
|
2357 | MAXINT = (1 << 31) - 1 | |
2359 | MININT = -MAXINT - 1 |
|
2358 | MININT = -MAXINT - 1 | |
2360 |
|
2359 | |||
2361 |
|
2360 |
@@ -2981,16 +2981,16 b' random sort' | |||||
2981 | $ hg log --rev 'sort(all(), "-random")' | wc -l |
|
2981 | $ hg log --rev 'sort(all(), "-random")' | wc -l | |
2982 | \s*8 (re) |
|
2982 | \s*8 (re) | |
2983 | $ hg log --rev 'sort(all(), "random", random.seed=celeste)' |
|
2983 | $ hg log --rev 'sort(all(), "random", random.seed=celeste)' | |
|
2984 | 0 b12 m111 u112 111 10800 | |||
|
2985 | 4 b111 m112 u111 110 14400 | |||
|
2986 | 2 b111 m11 u12 111 3600 | |||
2984 | 6 b111 t2 tu 130 0 |
|
2987 | 6 b111 t2 tu 130 0 | |
|
2988 | 1 b11 m12 u111 112 7200 | |||
2985 | 7 b111 t3 tu 130 0 |
|
2989 | 7 b111 t3 tu 130 0 | |
2986 | 4 b111 m112 u111 110 14400 |
|
|||
2987 | 3 b112 m111 u11 120 0 |
|
|||
2988 | 5 b111 t1 tu 130 0 |
|
2990 | 5 b111 t1 tu 130 0 | |
|
2991 | 3 b112 m111 u11 120 0 | |||
|
2992 | $ hg log --rev 'first(sort(all(), "random", random.seed=celeste))' | |||
2989 | 0 b12 m111 u112 111 10800 |
|
2993 | 0 b12 m111 u112 111 10800 | |
2990 | 1 b11 m12 u111 112 7200 |
|
|||
2991 | 2 b111 m11 u12 111 3600 |
|
|||
2992 | $ hg log --rev 'first(sort(all(), "random", random.seed=celeste))' |
|
|||
2993 | 6 b111 t2 tu 130 0 |
|
|||
2994 |
|
2994 | |||
2995 |
|
2995 | |||
2996 | topographical sorting can't be combined with other sort keys, and you can't |
|
2996 | topographical sorting can't be combined with other sort keys, and you can't |
General Comments 0
You need to be logged in to leave comments.
Login now