equal
deleted
inserted
replaced
|
1 hg init test |
|
2 cd test |
|
3 |
|
4 echo b > b |
|
5 hg ci -Am "b" |
|
6 |
|
7 echo a > a |
|
8 hg ci -Am "first a" |
|
9 |
|
10 hg rm a |
|
11 hg ci -m "del a" |
|
12 |
|
13 echo b > a |
|
14 hg ci -Am "second a" |
|
15 |
|
16 hg rm a |
|
17 hg ci -m "del2 a" |
|
18 |
|
19 hg log -p |
|
20 |
|
21 hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
22 cat hg.pid >> $DAEMON_PIDS |
|
23 |
|
24 echo % tip - two revisions |
|
25 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a') |
|
26 |
|
27 echo % second version - two revisions |
|
28 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a') |
|
29 |
|
30 echo % first deleted - one revision |
|
31 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a') |
|
32 |
|
33 echo % first version - one revision |
|
34 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a') |
|
35 |
|
36 echo % before addition - error |
|
37 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a') |
|
38 |
|
39 echo % errors |
|
40 cat errors.log |