Mercurial > hg
comparison tests/test-subrepo-recursion.t @ 40586: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 | fb490d798be0 |
children | 1a6bb5a85e30 |
comparison
equal
deleted
inserted
replaced
40585:d0a6b2c8f8b6 | 40586:3b0f07cc9626 |
---|---|
557 parent: -1:000000000000 (no revision checked out) | 557 parent: -1:000000000000 (no revision checked out) |
558 branch: default | 558 branch: default |
559 commit: (clean) | 559 commit: (clean) |
560 update: 4 new changesets (update) | 560 update: 4 new changesets (update) |
561 | 561 |
562 Sharing a local repo without the locally referenced subrepo (i.e. it was never | 562 Sharing a local repo with missing local subrepos (i.e. it was never updated |
563 updated from null) works, but clone fails. | 563 from null) works because the default path is copied from the source repo, |
564 whereas clone should fail. | |
564 | 565 |
565 $ hg --config progress.disable=True clone -U ../empty ../empty2 | 566 $ hg --config progress.disable=True clone -U ../empty ../empty2 |
566 | 567 |
567 $ hg --config extensions.share= --config progress.disable=True \ | 568 $ hg --config extensions.share= --config progress.disable=True \ |
568 > share ../empty2 ../empty_share | 569 > share ../empty2 ../empty_share |