tests: add tests for predicates and operators which works with wdir()
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 22 May 2017 01:35:53 +0530
changeset 32437 f03dcb3f95a5
parent 32436 f064e2f72c49
child 32438 14482f8e6ce6
tests: add tests for predicates and operators which works with wdir() This one is cluttering up the test file though.
tests/test-revset.t
--- a/tests/test-revset.t	Mon May 22 01:01:45 2017 +0530
+++ b/tests/test-revset.t	Mon May 22 01:35:53 2017 +0530
@@ -1227,6 +1227,14 @@
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   $ hg debugrevspec 'wdir()^'
   7
+  $ hg debugrevspec 'wdir()^0'
+  2147483647
+  $ hg debugrevspec 'wdir()~0'
+  2147483647
+  $ hg debugrevspec 'p1(wdir())'
+  7
+  $ hg debugrevspec 'parents(wdir())'
+  7
   $ hg debugrevspec 'wdir()^1'
   7
   $ hg debugrevspec 'wdir()^2'