Mercurial > hg
view tests/test-hgweb-filelog @ 7460:3342e6ada4b9
push: use the fast changegroup() path on push
The race doesn't happen on push (because the discovery is done
in the same hg process), so use the fast path instead.
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 02 Dec 2008 19:36:43 +0100 |
parents | 591767e6ea7a |
children | 069b29656401 |
line wrap: on
line source
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" 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') echo % errors cat errors.log