##// 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:

r5338:f8768535 default
r6784:18c429ea default
Show More
test-revlog-packentry
14 lines | 212 B | text/plain | TextLexer
/ tests / test-revlog-packentry
Alexis S. L. Carvalho
revlog: fix revlogio.packentry corner case...
r5338 #!/bin/sh
hg init repo
cd repo
touch foo
hg ci -Am 'add foo'
hg up -C null
# this should be stored as a delta against rev 0
echo foo bar baz > foo
hg ci -Am 'add foo again'
hg debugindex .hg/store/data/foo.i