[issue2024] subrepos pull : pulling from a clone does't work

SaintGermain bugs at mercurial.selenic.com
Thu Feb 4 19:49:38 UTC 2010


New submission from SaintGermain <saintger at gmail.com>:

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

----------
messages: 11605
nosy: SaintGermain
priority: urgent
status: unread
title: subrepos pull : pulling from a clone does't work
topic: subrepositories

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2024>
____________________________________________________


More information about the Mercurial-devel mailing list