Encode the number of UTF-8 bytes in subvertpy.marshall.marshall()

Patch by Martin Panter

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Use “key in dict” syntax rather than dict.has_key()

Introduced in Python 2.2

Patch by Martin Panter
Fix errors with the contents of changed_paths from a log call

Patch by Martin Panter.
Line endings from diff() depend on the platform.

On Windows this test would fail because the computed diff has CRLF line
endings.