comparison tests/test-revset.t @ 45686:17a12f53dd72

revset: add a `node` key for sorting Sorting by node give an arbitrary, but stable order which is useful for sampling.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 08 Oct 2020 16:14:06 +0200
parents 62435a5b46fe
children b90d7e7f39db
comparison
equal deleted inserted replaced
45685:57b5452a55d5 45686:17a12f53dd72
2883 4 b111 m112 u111 110 14400 2883 4 b111 m112 u111 110 14400
2884 2 b111 m11 u12 111 3600 2884 2 b111 m11 u12 111 3600
2885 3 b112 m111 u11 120 0 2885 3 b112 m111 u11 120 0
2886 0 b12 m111 u112 111 10800 2886 0 b12 m111 u112 111 10800
2887 2887
2888 $ hg log -r 'sort(all(), "-desc -date")' 2888 $ hg log -r 'sort(all(), "-desc -node")'
2889 1 b11 m12 u111 112 7200 2889 1 b11 m12 u111 112 7200
2890 4 b111 m112 u111 110 14400 2890 4 b111 m112 u111 110 14400
2891 3 b112 m111 u11 120 0 2891 3 b112 m111 u11 120 0
2892 0 b12 m111 u112 111 10800 2892 0 b12 m111 u112 111 10800
2893 2 b111 m11 u12 111 3600 2893 2 b111 m11 u12 111 3600