> Hi gang,
> /(non subversion-client usage warning, also BDD ahead warning)/
> Given I have a directory /path/to/missing/directory/ that does not
> exist on the Svn server at all
> When I want to put a file in there (say foo.mp3)
> Then I have to MKCOL path/
> And I have to MKCOL path/to/
> And I have to MKCOL path/to/missing
> And I have to MKCOL path/to/missing/directory/
> And only the can I then PUT path/to/missing/directory/foo.mp3
That is a limitation of the MKCOL method, as described here:
Well pipelining into Svn's HTTP 1.1 interface does work as you suggested.
There is a library in Python called 'hyper' that does it - http://hyper.readthedocs.io/en/latest/quickstart.html#streams though the example get_response signature is not current (I raised a bug). Also, if I change HTTPConnection to HTTP11Connection it works, but not if I change to HTTP20Connection (ConnectionResetError) so I think I'll just leave my implementation as it is - mechanically recursing through MKCOL operations over a single reused connection.