equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
3 hg init test |
3 hg init test |
4 cd test |
4 cd test |
5 mkdir sub |
5 mkdir sub |
6 cat >sub/sometext.txt <<ENDSOME |
6 cat >'sub/some "text".txt' <<ENDSOME |
7 This is just some random text |
7 This is just some random text |
8 that will go inside the file and take a few lines. |
8 that will go inside the file and take a few lines. |
9 It is very boring to read, but computers don't |
9 It is very boring to read, but computers don't |
10 care about things like that. |
10 care about things like that. |
11 ENDSOME |
11 ENDSOME |
12 hg add sub/sometext.txt |
12 hg add 'sub/some "text".txt' |
13 hg commit -d "1 0" -m "Just some text" |
13 hg commit -d "1 0" -m "Just some text" |
14 hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid |
14 hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid |
15 cat hg.pid >> $DAEMON_PIDS |
15 cat hg.pid >> $DAEMON_PIDS |
16 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?f=37afcac6d393;file=sub/sometext.txt;style=raw' content-type content-length content-disposition) >getoutput.txt & |
16 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?f=a23bf1310f6e;file=sub/some%20%22text%22.txt;style=raw' content-type content-length content-disposition) >getoutput.txt & |
17 |
17 |
18 sleep 5 |
18 sleep 5 |
19 kill `cat hg.pid` |
19 kill `cat hg.pid` |
20 sleep 1 # wait for server to scream and die |
20 sleep 1 # wait for server to scream and die |
21 cat getoutput.txt |
21 cat getoutput.txt |