[PATCH] test-subrepo: document why share magically works even if subrepos are missing
Yuya Nishihara
yuya at tcha.org
Sat Nov 10 03:13:08 UTC 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1541818881 -32400
# Sat Nov 10 12:01:21 2018 +0900
# Node ID ecc1380d217c65025da4b25ec6792ce3a0da0209
# Parent 96eb29b6c0edd5a3483b44a8f8f02eee2a65be70
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 --git a/tests/test-subrepo-recursion.t b/tests/test-subrepo-recursion.t
--- a/tests/test-subrepo-recursion.t
+++ b/tests/test-subrepo-recursion.t
@@ -559,8 +559,9 @@ The newly cloned subrepos contain no wor
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
More information about the Mercurial-devel
mailing list