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 <firstname.lastname@example.org> wrote:
>> 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 <email@example.com>
CollabNet <> www.collab.net <> Distributed Development On Demand
Received on Thu Jun 1 15:45:13 2006