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

Re: Question: svn_ra_do_update() and editor->set_path()

From: Ph. Marek <philipp.marek_at_bmlv.gv.at>
Date: 2006-05-31 13:26:06 CEST

On Wednesday 31 May 2006 13:13, Peter N. Lundblad wrote:
> Ph. Marek writes:
> > If this is a new destination, ie. I don't have an old revision
> > number, I gave the revision 0. This works fine for the root
> > directory in the repository, as that always exists; but if the URL
> > points to some subdirectory in the repository I get an error
> > "invalid path", as the given path doesn't exist in revision 0.
>
> Did you try setting start_empty to TRUE, giving the desired revision you
> want to check out?

You mean that I do a svn_ra_do_update() to the target revision, and then tell
the ra layer that I have that directory at HEAD (via SVN_INVALID_REVNUM), but
empty?

No, I didn't try that ... I always put FALSE for start_empty.
I gave set_path the path "" and my old revision number (0 for new check-out).

But you're right, that could work...

I'm a bit concerned (because I don't know all the implications) what happens
if the repository-directory I'm using gets deleted and substituted by
another ..
But in normal working order I should just get a lot of DELETEs and ADDs, and
on a fresh checkout I'd only get the ADDs, right?

Hmmmm... thank you very much, I'll have a try.

Regards,

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 31 13:26:27 2006

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