Show More
@@ -320,7 +320,8 b' def branchentries(repo, stripecount, lim' | |||||
320 |
|
320 | |||
321 | def cleanpath(repo, path): |
|
321 | def cleanpath(repo, path): | |
322 | path = path.lstrip('/') |
|
322 | path = path.lstrip('/') | |
323 |
|
|
323 | auditor = pathutil.pathauditor(repo.root, realfs=False) | |
|
324 | return pathutil.canonpath(repo.root, '', path, auditor=auditor) | |||
324 |
|
325 | |||
325 | def changectx(repo, req): |
|
326 | def changectx(repo, req): | |
326 | changeid = "tip" |
|
327 | changeid = "tip" |
@@ -1231,14 +1231,15 b' Test subrepositories inside intermediate' | |||||
1231 |
|
1231 | |||
1232 | f2 |
|
1232 | f2 | |
1233 |
|
1233 | |||
1234 |
Test accessing file that |
|
1234 | Test accessing file that could be shadowed by another repository if the URL | |
|
1235 | path were audited as a working-directory path: | |||
1235 |
|
1236 | |||
1236 | $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/file/tip/f3/file?style=raw' |
|
1237 | $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/file/tip/f3/file?style=raw' | |
1237 | 403 Forbidden |
|
1238 | 200 Script output follows | |
1238 |
|
||||
1239 |
|
1239 | |||
1240 | error: path 'f3/file' is inside nested repo 'f3' |
|
1240 | f3/file | |
1241 | [1] |
|
1241 | ||
|
1242 | Test accessing working-directory file that is shadowed by another repository | |||
1242 |
|
1243 | |||
1243 |
$ |
|
1244 | $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/file/ffffffffffff/f3/file?style=raw' | |
1244 | 403 Forbidden |
|
1245 | 403 Forbidden |
General Comments 0
You need to be logged in to leave comments.
Login now