# HG changeset patch # User Yuya Nishihara # Date 1541818881 -32400 # Node ID 3b0f07cc9626a20487cc2316c912d0bc0da6b38c # Parent d0a6b2c8f8b6c985b96569d0b97f9198f2f6ced8 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()." diff -r d0a6b2c8f8b6 -r 3b0f07cc9626 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