diff tests/test-revset.t @ 32661:a3064fe3e495

revset: add support for integer and hex wdir identifiers As I said before, partial 'ff...' hash isn't supported yet.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 03 Jun 2017 20:39:33 +0900
parents bb18728ea617
children 9f840d99054c
line wrap: on
line diff
--- a/tests/test-revset.t	Fri Aug 19 18:40:35 2016 +0900
+++ b/tests/test-revset.t	Sat Jun 03 20:39:33 2017 +0900
@@ -1280,6 +1280,20 @@
   $ log '(all() + wdir()) & last(. + wdir())'
   2147483647
 
+Test working-directory integer revision and node id
+(BUG: '0:wdir()' is still needed to populate wdir revision)
+
+  $ hg debugrevspec '0:wdir() & 2147483647'
+  2147483647
+  $ hg debugrevspec '0:wdir() & rev(2147483647)'
+  2147483647
+  $ hg debugrevspec '0:wdir() & ffffffffffffffffffffffffffffffffffffffff'
+  2147483647
+  $ hg debugrevspec '0:wdir() & id(ffffffffffffffffffffffffffffffffffffffff)'
+  2147483647
+  $ hg debugrevspec '0:wdir() & id(ffffffffffff)'
+BROKEN: should be '2147483647'
+
   $ log 'outgoing()'
   8
   9