summaryrefslogtreecommitdiff
path: root/tests/test-subrepo-paths.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-subrepo-paths.t')
-rw-r--r--tests/test-subrepo-paths.t30
1 files changed, 5 insertions, 25 deletions
diff --git a/tests/test-subrepo-paths.t b/tests/test-subrepo-paths.t
index fd5c9c9..b3f5931 100644
--- a/tests/test-subrepo-paths.t
+++ b/tests/test-subrepo-paths.t
@@ -1,23 +1,20 @@
$ hg init outer
$ cd outer
- $ echo '[paths]' >> .hg/hgrc
- $ echo 'default = http://example.net/' >> .hg/hgrc
-
hg debugsub with no remapping
- $ echo 'sub = libfoo' > .hgsub
+ $ echo 'sub = http://example.net/libfoo' > .hgsub
$ hg add .hgsub
$ hg debugsub
path sub
- source libfoo
+ source http://example.net/libfoo
revision
hg debugsub with remapping
- $ echo '[subpaths]' >> .hg/hgrc
- $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc # no-check-code
+ $ echo '[subpaths]' > .hg/hgrc
+ $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc
$ hg debugsub
path sub
@@ -33,21 +30,6 @@ test cumulative remapping, the $HGRCPATH file is loaded first
source C:\libs\bar-lib\
revision
-test absolute source path -- testing with a URL is important since
-standard os.path.join wont treat that as an absolute path
-
- $ echo 'abs = http://example.net/abs' > .hgsub
- $ hg debugsub
- path abs
- source http://example.net/abs
- revision
-
- $ echo 'abs = /abs' > .hgsub
- $ hg debugsub
- path abs
- source /abs
- revision
-
test bad subpaths pattern
$ cat > .hg/hgrc <<EOF
@@ -55,7 +37,5 @@ test bad subpaths pattern
> .* = \1
> EOF
$ hg debugsub
- abort: bad subrepository pattern in $TESTTMP/outer/.hg/hgrc:2: invalid group reference (glob)
+ abort: bad subrepository pattern in $TESTTMP/outer/.hg/hgrc:2: invalid group reference
[255]
-
- $ cd ..