Re: svncpp Client on a specific (local) directory

Mate Szalay <[email protected]> Fri, 20 May 2011 14:08:37 +0200
Newsgroups gmane.comp.version-control.subversion.rapidsvn.devel
Message-ID <[email protected]>
Hi,

On Thu, May 19, 2011 at 9:07 PM, Mate Szalay <[email protected]> wrote:
> How can I create an svncpp Client object on a specific directory?
> I know that if I chdir() first, then it works, but I can't do that,
> because I want to have multiple (and constantly changing)
> Client objects in a multi-threaded environment, and cwd is
> shared among all the threads.

Let me follow up on this.

I've found a way. Is this the way svncpp is intended to be used?

::svn::Context context;
::svn::Client client(context);
::svn::Path path("/my/local/working-copy");
::svn::InfoVector info_vect = client.info(path);
::svn::Info info = info_vect.at(0);
info.url();

If no, then what is the intended way?
If yes, then is that true, that an svncpp "Client" object is not
tied to any working copy, it can be reused, say, first to update
one working copy, then to commit to another one?

Thanks,

-- 
M

------------------------------------------------------
http://rapidsvn.tigris.org/ds/viewMessage.do?dsForumId=668&dsMessageId=2742279

To unsubscribe from this discussion, e-mail: [[email protected]].