Ben Collins-Sussman wrote:
>
> On Sep 27, 2004, at 7:45 AM, Dirk Hoffmann wrote:
>
>> Hi Ben,
>>
>> I'm extending the libsvn_client API by a svn_client_put()-function
>> and find it quite difficult to deal with all those batons, pools
>> etc.. I wrote 50 lines of code before coming to
>> `editor->open_root(...)', just by copying&pasting from already
>> existing code without fully understanding what I'm really coding.
>>
>> Would you please send me the sources of your `svnput'-tool just as an
>> example. That would make my efforts a lot easier than they are at the
>> moment.
>>
>
> I committed it into Subversion weeks ago. It already works. Just
> compile and go:
>
> http://svn.collab.net/repos/svn/trunk/tools/examples/svnput.c
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Hm,
for me it doesn't work as expected.
First, the authentication dialog starts with asking for the password and
continues with asking for the username and then the password again.
Then it crashes with a Segmentation fault. I ran gdb on it and found
that the crash occurred when I tried to execute the line
err = editor->apply_textdelta (file_baton, NULL, pool,
&handler, &handler_baton);
I called svnput like so:
./svnput a_file http://dhoffmann:50080/packer/repos/test/a_file
The root of the repo is http://dhoffmann:50080/packer/repos/test
I'm sending mail messages to you and to the user list as well. Is that ok?
Best regards
Dirk
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 29 08:56:55 2004