[PATCH 1 of 3] test-globalopts: test hg -R file:// and hg -R path-alias
Brodie Rao
brodie at bitheap.org
Mon Oct 4 15:08:34 CDT 2010
# HG changeset patch
# User Brodie Rao <brodie at bitheap.org>
# Date 1286220397 18000
# Node ID cc8b8d7c31863e0c00d490e130274c0d0ff53f6d
# Parent f365aed7cc5b4ce5f42d1e2d20001e2dc7951c5b
test-globalopts: test hg -R file:// and hg -R path-alias
diff --git a/tests/test-globalopts.t b/tests/test-globalopts.t
--- a/tests/test-globalopts.t
+++ b/tests/test-globalopts.t
@@ -52,6 +52,20 @@ Testing -R/--repository:
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
More information about the Mercurial-devel
mailing list