##// 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:

r7586:e9d3a11e default
r10378:e1401c74 default
Show More
test-audit-path.out
30 lines | 874 B | text/plain | TextLexer
/ tests / test-audit-path.out
Bryan O'Sullivan
Make audit_path more stringent....
r5158 % should fail
abort: path contains illegal component: .hg/00changelog.i
adding a/a
% should fail
abort: path 'b/b' traverses symbolic link 'b'
% should succeed
% should still fail - maybe
abort: path 'b/b' traverses symbolic link 'b'
Peter Arrenbrecht
test-audit-path: add more tests (issue 1450)
r7554 % unbundle tampered bundle
adding changesets
adding manifests
adding file changes
Peter Arrenbrecht
test-audit-path: add one more test (issue 1450)
r7586 added 5 changesets with 6 changes to 6 files (+4 heads)
Peter Arrenbrecht
test-audit-path: add more tests (issue 1450)
r7554 (run 'hg heads' to see heads, 'hg merge' to merge)
% attack .hg/test
.hg/test
abort: path contains illegal component: .hg/test
% attack foo/.hg/test
foo/.hg/test
abort: path 'foo/.hg/test' is inside repo 'foo'
% attack back/test where back symlinks to ..
back
back/test
abort: path 'back/test' traverses symbolic link 'back'
% attack ../test
../test
abort: path contains illegal component: ../test
Peter Arrenbrecht
test-audit-path: add one more test (issue 1450)
r7586 % attack /tmp/test
/tmp/test
abort: No such file or directory: [HGTMP]/test-audit-path/target//tmp/test