--- a/tests/test-revset2.t Tue Sep 20 14:04:54 2022 +0200
+++ b/tests/test-revset2.t Mon Oct 03 17:24:52 2022 -0400
@@ -1481,6 +1481,13 @@
$ hg init namedbranch
$ cd namedbranch
+ $ log 'roots(.)'
+ -1
+ $ log 'roots(. or wdir())'
+ -1
+ $ log 'roots(wdir())'
+ 2147483647
+
$ echo default0 >> a
$ hg ci -Aqm0
$ echo default1 >> a
@@ -1498,6 +1505,11 @@
$ echo default5 >> a
$ hg ci -m5
+ $ log 'roots(. or wdir())'
+ 5
+ $ log 'roots(wdir())'
+ 2147483647
+
"null" revision belongs to "default" branch (issue4683)
$ log 'branch(null)'