Mercurial > hg
comparison tests/test-http.t @ 39184:8724de878268
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.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 17 Aug 2018 23:28:37 -0400 |
parents | b4b7427b5786 |
children | 143efea71c2a |
comparison
equal
deleted
inserted
replaced
39183:7a111168659e | 39184:8724de878268 |
---|---|
474 no changes found | 474 no changes found |
475 $ cat error.log | 475 $ cat error.log |
476 #endif | 476 #endif |
477 | 477 |
478 ... and also keep partial clones and pulls working | 478 ... and also keep partial clones and pulls working |
479 $ hg clone http://localhost:$HGPORT1 --rev 0 test-partial-clone | 479 $ hg clone http://localhost:$HGPORT1 --rev 0 test/partial/clone |
480 adding changesets | 480 adding changesets |
481 adding manifests | 481 adding manifests |
482 adding file changes | 482 adding file changes |
483 added 1 changesets with 4 changes to 4 files | 483 added 1 changesets with 4 changes to 4 files |
484 new changesets 8b6053c928fe | 484 new changesets 8b6053c928fe |
485 updating to branch default | 485 updating to branch default |
486 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 486 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
487 $ hg pull -R test-partial-clone | 487 $ hg pull -R test/partial/clone |
488 pulling from http://localhost:$HGPORT1/ | 488 pulling from http://localhost:$HGPORT1/ |
489 searching for changes | 489 searching for changes |
490 adding changesets | 490 adding changesets |
491 adding manifests | 491 adding manifests |
492 adding file changes | 492 adding file changes |
493 added 2 changesets with 3 changes to 3 files | 493 added 2 changesets with 3 changes to 3 files |
494 new changesets 5fed3813f7f5:56f9bc90cce6 | 494 new changesets 5fed3813f7f5:56f9bc90cce6 |
495 (run 'hg update' to get a working copy) | 495 (run 'hg update' to get a working copy) |
496 | |
497 $ hg clone test/partial/clone test/another/clone | |
498 abort: $ENOTDIR$: 'test/another/clone' | |
499 [255] | |
496 | 500 |
497 corrupt cookies file should yield a warning | 501 corrupt cookies file should yield a warning |
498 | 502 |
499 $ cat > $TESTTMP/cookies.txt << EOF | 503 $ cat > $TESTTMP/cookies.txt << EOF |
500 > bad format | 504 > bad format |