changeset 12635:45ef87f41f98

test-globalopts: test hg -R file:// and hg -R path-alias
author Brodie Rao <brodie@bitheap.org>
date Mon, 04 Oct 2010 14:26:37 -0500
parents 43f42de733d0
children c24215aa7e69
files tests/test-globalopts.t
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-globalopts.t	Wed Oct 06 23:07:52 2010 +0300
+++ b/tests/test-globalopts.t	Mon Oct 04 14:26:37 2010 -0500
@@ -52,6 +52,20 @@
   summary:     b
   
 
+-R with a URL:
+
+  $ hg -R file:a identify
+  8580ff50825a tip
+  $ hg -R file://localhost/`pwd`/a/ identify
+  8580ff50825a tip
+
+-R with a path alias:
+
+  $ cd c
+  $ hg -R default identify
+  8580ff50825a tip
+  $ cd ..
+
 Implicit -R:
 
   $ hg ann a/a