2009-05-17 04:15:21 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2008-11-01 15:07:24 +03:00
|
|
|
hg init test
|
|
|
|
cd test
|
|
|
|
|
|
|
|
echo b > b
|
|
|
|
hg ci -Am "b"
|
|
|
|
|
|
|
|
echo a > a
|
|
|
|
hg ci -Am "first a"
|
|
|
|
|
|
|
|
hg rm a
|
|
|
|
hg ci -m "del a"
|
|
|
|
|
|
|
|
echo b > a
|
|
|
|
hg ci -Am "second a"
|
|
|
|
|
|
|
|
hg rm a
|
|
|
|
hg ci -m "del2 a"
|
|
|
|
|
2009-01-09 19:34:06 +03:00
|
|
|
hg mv b c
|
|
|
|
hg ci -m "mv b"
|
|
|
|
|
2009-01-12 15:20:09 +03:00
|
|
|
echo c >> c
|
|
|
|
hg ci -m "change c"
|
|
|
|
|
2008-11-01 15:07:24 +03:00
|
|
|
hg log -p
|
|
|
|
|
|
|
|
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
|
|
|
|
cat hg.pid >> $DAEMON_PIDS
|
|
|
|
|
|
|
|
echo % tip - two revisions
|
|
|
|
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a')
|
|
|
|
|
|
|
|
echo % second version - two revisions
|
|
|
|
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a')
|
|
|
|
|
|
|
|
echo % first deleted - one revision
|
|
|
|
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a')
|
|
|
|
|
|
|
|
echo % first version - one revision
|
|
|
|
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a')
|
|
|
|
|
|
|
|
echo % before addition - error
|
|
|
|
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a')
|
|
|
|
|
2009-01-09 19:34:06 +03:00
|
|
|
echo % should show base link, use spartan because it shows it
|
|
|
|
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan')
|
|
|
|
|
2008-11-01 15:07:24 +03:00
|
|
|
echo % errors
|
|
|
|
cat errors.log
|