changeset 32475:f03dcb3f95a5

tests: add tests for predicates and operators which works with wdir() This one is cluttering up the test file though.
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 22 May 2017 01:35:53 +0530
parents f064e2f72c49
children 14482f8e6ce6
files tests/test-revset.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'