Issue2024

Title subrepos pull : pulling from a clone does't work
Priority urgent Status chatting
Superseder Nosy List SaintGermain, mpm, mrbkap
Assigned To mrbkap Topics subrepositories

Created on 2010-02-04.19:49:38 by SaintGermain, last changed 2010-02-05.18:01:51 by mpm.

Messages
msg11613 (view) Author: mpm Date: 2010-02-05.18:01:51
Known problem. The subrepo in your second example is pulled from
main/nested, because the pull source is not being propagated down to the
subrepo code.
msg11605 (view) Author: SaintGermain Date: 2010-02-04.19:49:38
Tested with Mercurial V1.4.3 on Suse Enterprise Server 10.2

In case of a master repo 'main' with a nested repo 'nested'. If we clone
that 'main' to 'main2', it is possible for main2 to pull from main1 but not
the opposite.

First way (it works) :
hg init main
cd main
hg init nested
echo test > nested/foo
hg -R nested add nested/foo
echo nested = nested > .hgsub
hg add .hgsub
hg ci -mtest
cd ..
hg clone main main2
cd main
echo modification > nested/foo
hg ci -mmodif
cd ..
cd main2
hg pull ../main
hg update

Second way (it doesn't work) :
hg init main
cd main
hg init nested
echo test > nested/foo
hg -R nested add nested/foo
echo nested = nested > .hgsub
hg add .hgsub
hg ci -mtest
cd ..
hg clone main main2
cd main2
echo modification > nested/foo
hg ci -mmodif
cd ..
cd main
hg pull ../main2
hg update
History
Date User Action Args
2010-02-05 18:01:51mpmsetstatus: unread -> chatting
assignedto: mrbkap
messages: + msg11613
nosy: + mrbkap, mpm
2010-02-04 19:49:38SaintGermaincreate