##// END OF EJS Templates
hgweb: all protocol functions have become generators...
hgweb: all protocol functions have become generators Using the write() callable supplied by the start_response() call is frowned upon by the WSGI spec, returning an iterable over the content chunks is the recommended way. Be aware, though: returning many small chunks will slow down responses, because the server has to flush each chunk separately.

File last commit:

r6516:7a6243bf default
r6784:18c429ea default
Show More
test-dumprevlog
47 lines | 752 B | text/plain | TextLexer
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465 #!/bin/sh
CONTRIBDIR=$TESTDIR/../contrib
mkdir repo-a
cd repo-a
hg init
echo this is file a > a
hg add a
hg commit -m first -d '0 0'
echo adding to file a >> a
hg commit -m second -d '0 0'
echo adding more to file a >> a
hg commit -m third -d '0 0'
hg verify
echo dumping revlog of file a to stdout:
python $CONTRIBDIR/dumprevlog .hg/store/data/a.i
echo dumprevlog done
# dump all revlogs to file repo.dump
Adrian Buehlmann
fixed missing sorting in test-dumprevlog...
r6516 find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465
cd ..
mkdir repo-b
cd repo-b
hg init
echo undumping:
python $CONTRIBDIR/undumprevlog < ../repo.dump
echo undumping done
hg verify
cd ..
echo comparing repos:
hg -R repo-b incoming repo-a
hg -R repo-a incoming repo-b
echo comparing done
exit 0