Message11620

Author SaintGermain
Recipients danchr
Date 2010-02-06.15:03:28
Content
Ok I've tried with the tip instead of 1.4.3 and it somehow works better, but
still some bug.

New Test Case:
mkdir mercurial mercurial2
cd mercurial
hg init /tmp/nested_absolute
echo test > /tmp/nested_absolute/foo
hg -R /tmp/nested_absolute add
hg -R /tmp/nested_absolute ci -mtest
hg init nested_relative
echo test2 > nested_relative/foo2
hg -R nested_relative add
hg -R nested_relative ci -mtest2
hg init main
echo nested_relative = ../nested_relative > main/.hgsub
echo nested_absolute = /tmp/nested_absolute >> main/.hgsub
hg -R main add
hg -R main ci -m "add subrepos"
cd ..
hg clone mercurial/main mercurial2/main
cat mercurial2/main/nested_absolute/.hg/hgrc
mercurial2/main/nested_relative/.hg/hgrc

I got as result:
[paths]
default = /tmp/nested_absolute
[paths]
default = ../nested_relative

The relative subrepos defaut path is not correctly set (should be
../mercurial/nested_relative or /tmp/mercurial/nested_relative). And somehow
I don't think that this is logical to reference the absolute URL in the
originial repo instead of referencing the working copy.

I will make another patch (on the tip this time !) and send it to the devel
mailing-list
History
Date User Action Args
2010-02-06 15:03:29SaintGermainsetmessageid: <1265468609.24.0.790327464909.issue2026@mercurial.selenic.com>
2010-02-06 15:03:29SaintGermainsetrecipients: + danchr
2010-02-06 15:03:29SaintGermainlinkissue2026 messages
2010-02-06 15:03:28SaintGermaincreate