##// END OF EJS Templates
subrepo: change default path in hgrc of subrepo after cloning...
subrepo: change default path in hgrc of subrepo after cloning Previous behavior was to put in the cloned subrepos the path found in the original main repo. However it isn't valid for relative path and it seems more logical to reference instead the subrepos working copy path of the original main repo.

File last commit:

r5951:92eb0a01 default
r10378:e1401c74 default
Show More
test-paths
10 lines | 162 B | text/plain | TextLexer
Jesse Glick
Ensure that absolutized paths from hgrc do not contain ../ segments.
r5943 #!/bin/sh
hg init a
hg clone a b
cd a
echo '[paths]' >> .hg/hgrc
echo 'dupe = ../b' >> .hg/hgrc
Bryan O'Sullivan
Simplify test-paths
r5951 hg in dupe | fgrep '../'
Jesse Glick
Ensure that absolutized paths from hgrc do not contain ../ segments.
r5943 cd ..
Bryan O'Sullivan
Simplify test-paths
r5951 hg -R a in dupe | fgrep '../'
Jesse Glick
Ensure that absolutized paths from hgrc do not contain ../ segments.
r5943 true