Mercurial > hg
view tests/test-hgweb-filelog @ 8320:a1305c1c8d8e
inotify: inotify.server.walk() simplify algorithm
Do not yield (bool, tuple) in a subfunction and check later:
'if not bool: yield tuple'.
Instead simplify so the tuple doesnt get yielded on the first time, to avoid
systematic checks.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 04 May 2009 16:57:52 +0900 |
parents | f2fa1a9eede6 |
children | cb93eee1fbcd |
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 mv b c hg ci -m "mv b" echo c >> c hg ci -m "change c" 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 % should show base link, use spartan because it shows it ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan') echo % errors cat errors.log