Mercurial > hg
diff tests/test-remotefilelog-hgweb.t @ 44570:9e63108123a4
remotefilelog: add fake heads() method that allows viewing a file in hgweb
As best I can discern, this is not going to hurt anything, but it'll
cause a couple of options to exist in the UI that are
nonsensical. That seems fine, given the nature of remotefilelog.
Differential Revision: https://phab.mercurial-scm.org/D8299
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 17 Mar 2020 17:26:05 -0400 |
parents | 5483e9c759e4 |
children |
line wrap: on
line diff
--- a/tests/test-remotefilelog-hgweb.t Tue Mar 17 17:21:34 2020 -0400 +++ b/tests/test-remotefilelog-hgweb.t Tue Mar 17 17:26:05 2020 -0400 @@ -24,9 +24,15 @@ $ cd wdir $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log $ cat hg.pid >> $DAEMON_PIDS - $ (get-with-headers.py localhost:$HGPORT 'file/tip/x') - 500 Internal Server Error + $ get-with-headers.py localhost:$HGPORT 'file/tip/x' | head -n 10 + 200 Script output follows - Internal Server Error (no-eol) - [1] + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> + <head> + <link rel="icon" href="/static/hgicon.png" type="image/png" /> + <meta name="robots" content="index, nofollow" /> + <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> + <script type="text/javascript" src="/static/mercurial.js"></script> +