[PATCH 1 of 7] tests: demonstrate an inconsistency when cloning to a missing directory tree

Matt Harbison mharbison72 at gmail.com
Sat Aug 18 19:17:00 UTC 2018


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1534562917 14400
#      Fri Aug 17 23:28:37 2018 -0400
# Node ID 8da858a0bfb4d37ef5f3d9a1717c92729555faff
# Parent  a98e926b2f5b2404f2255f56fa967389550a0b96
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 --git a/tests/test-http.t b/tests/test-http.t
--- a/tests/test-http.t
+++ b/tests/test-http.t
@@ -476,7 +476,7 @@ disable pull-based clones
 #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 @@ disable pull-based clones
   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 @@ disable pull-based clones
   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


More information about the Mercurial-devel mailing list