changeset 16008:02a497a17257 stable

revset: add tests for 'remote()' predicate
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Fri, 27 Jan 2012 22:29:58 +0900
parents f06c53ca59a9
children f1208827df7c
files tests/test-revset.t
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-revset.t	Fri Jan 27 22:29:58 2012 +0900
+++ b/tests/test-revset.t	Fri Jan 27 22:29:58 2012 +0900
@@ -476,6 +476,24 @@
   $ log 'min(1 or 2) and not 1'
   $ log 'last(1 or 2, 1) and not 2'
 
+tests for 'remote()' predicate:
+#.  (csets in remote) (id)            (remote)
+1.  less than local   current branch  "default"
+2.  same with local   specified       "default"
+3.  more than local   specified       specified
+
+  $ hg clone --quiet -U . ../remote3
+  $ cd ../remote3
+  $ hg update -q 7
+  $ echo r > r
+  $ hg ci -Aqm 10
+  $ log 'remote()'
+  7
+  $ log 'remote("a-b-c-")'
+  2
+  $ cd ../repo
+  $ log 'remote(".a.b.c.", "../remote3")'
+
   $ cd ..
 
 test author/desc/keyword in problematic encoding