--- a/tests/test-revset2.t Mon Oct 03 17:24:52 2022 -0400
+++ b/tests/test-revset2.t Tue Oct 04 12:34:50 2022 -0400
@@ -1487,6 +1487,13 @@
-1
$ log 'roots(wdir())'
2147483647
+ $ log 'sort(., -topo)'
+ -1
+ $ log 'sort(. or wdir(), -topo)'
+ -1
+ 2147483647
+ $ log 'sort(wdir(), -topo)'
+ 2147483647
$ echo default0 >> a
$ hg ci -Aqm0
@@ -1509,6 +1516,12 @@
5
$ log 'roots(wdir())'
2147483647
+ $ log 'sort(. or wdir() or .^, -topo)'
+ 4
+ 5
+ 2147483647
+ $ log 'sort(wdir(), -topo)'
+ 2147483647
"null" revision belongs to "default" branch (issue4683)