comparison tests/test-remotefilelog-hgweb.t @ 44569:5483e9c759e4

tests: add test for remotefilelog interactions with hgweb It's not uncommon for hg users to rely on hgweb as a simple GUI and history browser (I do this all the time on Mercurial), but we lack any tests to ensure things keep working. At present, this merely demonstrates the "view contents of a single file" endpoint is broken. I'll fix that in a subsequent change. Differential Revision: https://phab.mercurial-scm.org/D8298
author Augie Fackler <augie@google.com>
date Tue, 17 Mar 2020 17:21:34 -0400
parents
children 9e63108123a4
comparison
equal deleted inserted replaced
44568:3aab524a8480 44569:5483e9c759e4
1 #require no-windows serve
2
3 $ . "$TESTDIR/remotefilelog-library.sh"
4
5 $ cat >> $HGRCPATH <<EOF
6 > [extensions]
7 > remotefilelog=
8 > share=
9 > EOF
10
11 $ hg init master
12 $ cd master
13 $ cat >> .hg/hgrc <<EOF
14 > [remotefilelog]
15 > server=True
16 > EOF
17 $ echo x > x
18 $ hg commit -qAm x
19
20 $ cd ..
21
22
23 $ hgcloneshallow ssh://user@dummy/master wdir --noupdate -q
24 $ cd wdir
25 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
26 $ cat hg.pid >> $DAEMON_PIDS
27 $ (get-with-headers.py localhost:$HGPORT 'file/tip/x')
28 500 Internal Server Error
29
30 Internal Server Error (no-eol)
31 [1]
32