Skip to content
Snippets Groups Projects
Commit 8724de87 authored by Matt Harbison's avatar Matt Harbison
Browse files

tests: demonstrate an inconsistency when cloning to a missing directory tree

I noticed that `hg share` is unable to create more than one missing directory on
the path, and thought it was inconsistent with clone.  It turns out that the
path for copying/linking the remote store has the same limitation, but cloning
from a remote repo doesn't.
parent 7a111168
No related branches found
No related tags found
No related merge requests found
...@@ -476,7 +476,7 @@ ...@@ -476,7 +476,7 @@
#endif #endif
... and also keep partial clones and pulls working ... and also keep partial clones and pulls working
$ hg clone http://localhost:$HGPORT1 --rev 0 test-partial-clone $ hg clone http://localhost:$HGPORT1 --rev 0 test/partial/clone
adding changesets adding changesets
adding manifests adding manifests
adding file changes adding file changes
...@@ -484,7 +484,7 @@ ...@@ -484,7 +484,7 @@
new changesets 8b6053c928fe new changesets 8b6053c928fe
updating to branch default updating to branch default
4 files updated, 0 files merged, 0 files removed, 0 files unresolved 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg pull -R test-partial-clone $ hg pull -R test/partial/clone
pulling from http://localhost:$HGPORT1/ pulling from http://localhost:$HGPORT1/
searching for changes searching for changes
adding changesets adding changesets
...@@ -494,6 +494,10 @@ ...@@ -494,6 +494,10 @@
new changesets 5fed3813f7f5:56f9bc90cce6 new changesets 5fed3813f7f5:56f9bc90cce6
(run 'hg update' to get a working copy) (run 'hg update' to get a working copy)
$ hg clone test/partial/clone test/another/clone
abort: $ENOTDIR$: 'test/another/clone'
[255]
corrupt cookies file should yield a warning corrupt cookies file should yield a warning
$ cat > $TESTTMP/cookies.txt << EOF $ cat > $TESTTMP/cookies.txt << EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment