Ben Collins-Sussman wrote:
> On Jan 13, 2005, at 9:50 PM, Stephen Haberman wrote:
>>
>> Perhaps I'm being idealistic, but I just want to put one file into
>> Subversion, with a log message, in less than 10 lines of code. If you
>> could
>> provide the libsvn_client example code (preferably Python :-) that
>> does it,
>> I would be very, very grateful (and would suggest keeping the example
>> around
>> on the website to benefit others learning the bindings - heck, I could
>> make
>> a patch for that if you help me with the code :-).
>>
>
> Look in tools/examples/ in the svn source tree. There are a bunch of
> python examples.
>
> Most of them are examples of using the repository interface directly.
> What you'd want to do is mimic what's going on in 'svnput.c'.
>
> There are others on this list who can probably give you those 10 lines.
Unfortunately, what is wanted here is to use the libsvn_ra API (which is
what svnput.c does) - but that is not wrapped by the Python bindings. I hope
to improve this once lundblad's RA API redesign is done, but that doesn't
really help right now.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 14 12:04:43 2005