comparison tests/test-revset.t @ 49946:76c128d4de4e stable

revset: the `random` sort should not depend on sys.maxsize (issue6770)
author Julien Cristau <jcristau@mozilla.com>
date Tue, 06 Dec 2022 15:11:51 +0100
parents 6dbe74669eba
children
comparison
equal deleted inserted replaced
49945:d00ac86fbd78 49946:76c128d4de4e
2979 $ hg log --rev 'sort(all(), "random")' | wc -l 2979 $ hg log --rev 'sort(all(), "random")' | wc -l
2980 \s*8 (re) 2980 \s*8 (re)
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 2990 5 b111 t1 tu 130 0
2987 3 b112 m111 u11 120 0 2991 3 b112 m111 u11 120 0
2988 5 b111 t1 tu 130 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
2997 use the topo.firstbranch option when topo sort is not active: 2997 use the topo.firstbranch option when topo sort is not active:
2998 2998