[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: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2006-06-01 15:44:11 CEST

Ben Collins-Sussman wrote:
> You don't say which part of the subversion API you're using. The
> network API? (svn_ra.h) Or the repository API (svn_fs.h)? You'll
> need to be much more specific if you want specific help.

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

> On 6/1/06, ramzan <ramzan@isf.com.pk> wrote:
>> HI
>> I am building an SOAP API using Subversion. I have to put a file in the
>> Subversion repository using Subversion C API. Currently i am able to
>> put an empty file in the repository but how can i add file contents to
>> the repository.
>> Please guide me.
>> Thanks in advance.

C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Thu Jun 1 15:45:13 2006

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