[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Urgent Help Required

From: Gregory (Grisha) Trubetskoy <grisha_at_apache.org>
Date: 2006-06-01 18:23:39 CEST

On Thu, 1 Jun 2006, C. Michael Pilato wrote:

> Or, we could answer both questions without the extra turnarounds.
>
> If using the svn_ra.h API, you'll be driving a commit editor (see
> svn_ra_get_commit_editor), where creating a file involves opening the parent
> director(y|ies) of that file (editor->open_root, editor->open_directory),
> creating (editor->add_file) or opening the existing (editor->open_file)
> file, and then setting the new contents of the file using
> editor->apply_textdelta. Close the file (editor->close_file) and
> directories (editor->close_directory), and then close the editor itself
> (editor->close_edit). Done deal.
>
> Using the svn_fs.h API, you simply need to use svn_fs_apply_text or
> svn_fs_apply_textdelta.

And I think there also exists an example of how to do this
(using svn_ra.h):

http://svn.collab.net/repos/svn/trunk/tools/examples/svnput.c

Grisha

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 1 18:27:22 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.