Patchwork [03,of,10] tests: add tests for predicates and operators which works with wdir()

login
register
mail settings
Submitter Pulkit Goyal
Date May 22, 2017, 8:52 p.m.
Message ID <a3b2977ae12717d214ca.1495486333@workspace>
Download mbox | patch
Permalink /patch/20844/
State Accepted
Headers show

Comments

Pulkit Goyal - May 22, 2017, 8:52 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1495397153 -19800
#      Mon May 22 01:35:53 2017 +0530
# Node ID a3b2977ae12717d214ca4f95a8816ca3339e5332
# Parent  41b4ade12b0f9b227824ed62a515970c1ebbeb94
tests: add tests for predicates and operators which works with wdir()

This one is cluttering up the test file though.

Patch

diff --git a/tests/test-revset.t b/tests/test-revset.t
--- a/tests/test-revset.t
+++ b/tests/test-revset.t
@@ -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'