Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-commands.t @ 18478:886936ecc21b stable
hgweb: don't attempt to show hidden bookmarks (issue3774)
localrepository._bookmarks is unfiltered, but hgweb gets a filtered
repo. This fixes the resulting traceback on the 'bookmarks' page.
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Fri, 25 Jan 2013 11:43:54 -0600 |
parents | ae7215f4f7b9 |
children | 5ef3c7081008 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Fri Jan 25 14:50:18 2013 -0600 +++ b/tests/test-hgweb-commands.t Fri Jan 25 11:43:54 2013 -0600 @@ -1370,4 +1370,20 @@ $ cat errors.log +issue3774 + + $ hg phase -fs 4 + $ hg bookmark -r4 secret + $ cat > hgweb.cgi <<HGWEB + > from mercurial import demandimport; demandimport.enable() + > from mercurial.hgweb import hgweb + > from mercurial.hgweb import wsgicgi + > app = hgweb('.', 'test') + > wsgicgi.launch(app) + > HGWEB + $ . "$TESTDIR/cgienv" + $ PATH_INFO=/bookmarks; export PATH_INFO + $ QUERY_STRING='style=raw' + $ python hgweb.cgi + $ cd ..