D4640: narrow: add test showing that local-to-local narrow clones don't work

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Tue Sep 18 21:22:39 UTC 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  It turns out they've never actually worked: prior to some recent
  refactoring they just unintentionally followed the full-clone path,
  which we unintentionally relied on in a test at Google.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D4640

AFFECTED FILES
  tests/test-narrow-clone.t

CHANGE DETAILS

diff --git a/tests/test-narrow-clone.t b/tests/test-narrow-clone.t
--- a/tests/test-narrow-clone.t
+++ b/tests/test-narrow-clone.t
@@ -61,6 +61,19 @@
 
   $ cd ..
 
+BUG: local-to-local narrow clones should work, but don't.
+
+  $ hg clone --narrow master narrow-via-localpeer --noupdate --include "dir/src/f10"
+  requesting all changes
+  abort: server doesn't support narrow clones
+  [255]
+  $ hg tracked -R narrow-via-localpeer
+  abort: repository narrow-via-localpeer not found!
+  [255]
+  $ rm -r narrow-via-localpeer
+  rm: narrow-via-localpeer: $ENOENT$
+  [1]
+
 narrow clone with a newline should fail
 
   $ hg clone --narrow ssh://user@dummy/master narrow_fail --noupdate --include 'dir/src/f10



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list