record: catch PatchErrors from internalpatch and display error message
This resulted in big ugly tracebacks in
issue1282, for example.
record: take diff lines for lack of trailing newlines into account (
issue1282)
The record extension incorrectly re-calculated the size lines for unified
diff hunks. It counted a '\\ No newline at end of file\n' line towards the
number of lines of trailing context, while it's not actually part of the
context (and certainly isn't added as a line to the resulting output).
Use the local name of a variable that was access through the nonlocal scope
while we're at it. Seeing the variable was a little bewildering.
increase code coverage of test-clone
* add a non-inlined filelog to the test repo
* add 'clone --pull' test case
hgweb: return content iterator instead of using write() callable
This is a new version of
4879468fa28f (which was backed out in
943f066c0d58),
with an extra line removed to fix problems with hg serve. hg's internal web
server contains checking if the app isn't trying to write more bytes than
specified by the Content-Length header. The first try still contained an old
line that wrote the response, so the response was sent twice.
fix regression on empty repo cloning introduced by
0642d9d7ec80
The store directory wasn't copied. Unconditionally create the directories
instead.
contrib: remove deprecated darcs2hg.py script
We've have support for darcs in the convert extension for a while now.