comparison tests/test-hgwebdir.t @ 13066:86888ae9ce90 stable

hgwebdir: fix incorrect index generation for invalid paths (issue2023) edd07be943dd moved the subdirectory match inside the repository match loop. A virtual path existing/path/invalid/path would then match existing/path, and generate a wrong index page.
author Wagner Bruna <wbruna@softwareexpress.com.br>
date Tue, 30 Nov 2010 12:45:25 -0200
parents d08bb64888bc
children 8ed91088acbb
comparison
equal deleted inserted replaced
13065:de4a18cbfc98 13066:86888ae9ce90
75 75
76 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/c/file/tip/c?style=raw' 76 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/c/file/tip/c?style=raw'
77 404 Not Found 77 404 Not Found
78 78
79 79
80 error: repository c not found 80 error: repository c/file/tip/c not found
81 [1] 81 [1]
82 82
83 atom-log without basedir 83 atom-log without basedir
84 84
85 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/a/atom-log' | grep '<link' 85 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/a/atom-log' | grep '<link'