changeset 40633:3b0f07cc9626

test-subrepo: document why share magically works even if subrepos are missing I was confused how it's working while reviewing fb490d798be0, "share: reload repo after adjusting it in postshare()."
author Yuya Nishihara <yuya@tcha.org>
date Sat, 10 Nov 2018 12:01:21 +0900
parents d0a6b2c8f8b6
children 5542bc9125c9
files tests/test-subrepo-recursion.t
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-subrepo-recursion.t	Sun Nov 11 14:13:08 2018 -0500
+++ b/tests/test-subrepo-recursion.t	Sat Nov 10 12:01:21 2018 +0900
@@ -559,8 +559,9 @@
   commit: (clean)
   update: 4 new changesets (update)
 
-Sharing a local repo without the locally referenced subrepo (i.e. it was never
-updated from null) works, but clone fails.
+Sharing a local repo with missing local subrepos (i.e. it was never updated
+from null) works because the default path is copied from the source repo,
+whereas clone should fail.
 
   $ hg --config progress.disable=True clone -U ../empty ../empty2