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

r6030:d0dbae32 default
r6784:18c429ea default
Show More
test-revert-flags
17 lines | 215 B | text/plain | TextLexer
/ tests / test-revert-flags
Alexis S. L. Carvalho
revert: revert clean files when only a change of flags is needed
r6030 #!/bin/sh
"$TESTDIR/hghave" execbit || exit 80
hg init repo
cd repo
echo foo > foo
chmod 644 foo
hg ci -qAm '644'
chmod 755 foo
hg ci -qAm '755'
echo '% reverting to rev 0'
hg revert -a -r 0
hg st
hg diff --git