[issue2684] subrepos pull: update fails after pull from non-default repository

SaintGermain bugs at mercurial.selenic.com
Mon Mar 7 10:13:11 CST 2011


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

Tested with Mercurial V1.8 on Suse Enterprise Server 10.3

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: 15534
nosy: SaintGermain
priority: bug
status: unread
title: subrepos pull: update fails after pull from non-default repository
topic: subrepositories

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


More information about the Mercurial-devel mailing list