# HG changeset patch # User Matt Harbison # Date 1534562917 14400 # Node ID 8724de87826869acdf0aa0f974260358c8c2db43 # Parent 7a111168659ebdad63f19f5c9d6e3ec6ec7ba98e 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. diff -r 7a111168659e -r 8724de878268 tests/test-http.t --- a/tests/test-http.t Sat Aug 18 23:39:26 2018 -0400 +++ b/tests/test-http.t Fri Aug 17 23:28:37 2018 -0400 @@ -476,7 +476,7 @@ #endif ... 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 manifests adding file changes @@ -484,7 +484,7 @@ new changesets 8b6053c928fe updating to branch default 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/ searching for changes adding changesets @@ -494,6 +494,10 @@ new changesets 5fed3813f7f5:56f9bc90cce6 (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 $ cat > $TESTTMP/cookies.txt << EOF