Debian Codegraph @

tests/test-remotefilelog-hgweb.t

raw
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' | head -n 10
28 200 Script output follows
29
30 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
31 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
32 <head>
33 <link rel="icon" href="/static/hgicon.png" type="image/png" />
34 <meta name="robots" content="index, nofollow" />
35 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
36 <script type="text/javascript" src="/static/mercurial.js"></script>
37
38