##// END OF EJS Templates
revset: add a `node` key for sorting...
marmoute -
r46278:17a12f53 default
parent child Browse files
Show More
@@ -2293,6 +2293,7 b' def roots(repo, subset, x):'
2293 b'user': lambda c: c.user(),
2293 b'user': lambda c: c.user(),
2294 b'author': lambda c: c.user(),
2294 b'author': lambda c: c.user(),
2295 b'date': lambda c: c.date()[0],
2295 b'date': lambda c: c.date()[0],
2296 b'node': lambda c: c.node(),
2296 }
2297 }
2297
2298
2298
2299
@@ -2356,6 +2357,7 b' def sort(repo, subset, x, order):'
2356 - ``user`` for user name (``author`` can be used as an alias),
2357 - ``user`` for user name (``author`` can be used as an alias),
2357 - ``date`` for the commit date
2358 - ``date`` for the commit date
2358 - ``topo`` for a reverse topographical sort
2359 - ``topo`` for a reverse topographical sort
2360 - ``node`` the nodeid of the revision
2359
2361
2360 The ``topo`` sort order cannot be combined with other sort keys. This sort
2362 The ``topo`` sort order cannot be combined with other sort keys. This sort
2361 takes one optional argument, ``topo.firstbranch``, which takes a revset that
2363 takes one optional argument, ``topo.firstbranch``, which takes a revset that
@@ -2885,7 +2885,7 b' test sorting by multiple keys including '
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
General Comments 0
You need to be logged in to leave comments. Login now