diff -r f2ecc5733c89 -r b7ca37b90762 tests/test-issue2137 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-issue2137 Wed Apr 14 15:06:40 2010 -0400 @@ -0,0 +1,52 @@ +#!/bin/sh + +echo "% setup" + +# create a little extension that has 3 side-effects: +# 1) ensure changelog data is not inlined +# 2) make revlog to use lazyparser +# 3) test that repo.lookup() works +# 1 and 2 are preconditions for the bug; 3 is the bug. +cat > commitwrapper.py <> $HGRCPATH < a +hg commit -A -m'add a with a long commit message to make the changelog a bit bigger' + +# This commit puts 00changelog.i over the 128-byte threshold to split +# out 00changelog.d, which is a precondition for reproducing the bug +# with the next commit. +echo b > b +hg commit -A -m'add b and ramble on a bit here too for the same reason' + +echo "" +echo "% test that new changesets are visible to repo.lookup()" +echo a >> a +hg commit -m'one more commit to demonstrate the bug' +hg tip