test-globalopts: test hg -R file:// and hg -R path-alias
authorBrodie Rao <brodie@bitheap.org>
Mon, 04 Oct 2010 14:26:37 -0500
changeset 12635 45ef87f41f98
parent 12634 43f42de733d0
child 12636 c24215aa7e69
test-globalopts: test hg -R file:// and hg -R path-alias
tests/test-globalopts.t
--- 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