test-subrepo: document why share magically works even if subrepos are missing
authorYuya Nishihara <yuya@tcha.org>
Sat, 10 Nov 2018 12:01:21 +0900
changeset 40586 3b0f07cc9626
parent 40585 d0a6b2c8f8b6
child 40587 5542bc9125c9
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()."
tests/test-subrepo-recursion.t
--- 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