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

Re: Using the svn_delta_editor

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-04 14:39:13 CEST

On May 4, 2005, at 1:21 AM, William Ferguson wrote:

> I need some help using the svn_delta_editor.
>
> I'm trying to submit a new file to the Repository and seem to have
> most of
> the operations working OK, on svn_delta_editor_t->close_edit() (which
> is
> commit right?) I get:
>
> Out of date: 'SubVersionRA' in transaction '3n'

Your code snippet looks reasonable. I have two questions:

   * Does the 'SubVersionRA' directory already exist? If not, then
trying to open it will give you this 'out of date' error. You need to
*create* the directory with editor->add_directory().

   * If the entire path down to the file already exists
(/trunk/SubVersionRA/testdata/add/), then you don't need to call
open_directory() on every parent. Just "anchor" the whole editor on
the immediate parent of the file you want to add. You would do this by
calling RA->open() on the URL of the 'add' directory. Then when you
fetch the RA commit editor, it will be anchored there. All you have to
do is open_root(), add_file(), close_root(), close_edit().

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 4 14:41:35 2005

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.