Re: Searching for a C++ API

2018-03-20 Thread R developer
Converting CLI is not my best skill, but still thanks for the suggestion :-)

Received a final answer on my request;
libsvncpp from https://github.com/RapidSVN/RapidSVN is now LGPL

2018-01-31 14:07 GMT+01:00 Bert Huijben <b...@qqmail.nl>:

>
>
> > -Original Message-
> > From: Branko Čibej [mailto:br...@apache.org]
> > Sent: maandag 29 januari 2018 13:54
> > To: users@subversion.apache.org
> > Subject: Re: Searching for a C++ API
> >
> > On 29.01.2018 11:45, R developer wrote:
> > > Hello all,
> > >
> > > I have been involved in writing a closed source application that among
> > > other things maintains a checkout from an SVN repository, the
> > > application used to be written in C# so at the moment we are used to
> > > SharpSvn. Recently the decision was made to incorporate the
> > > functionality into a mobile c++ app (yes, I do wish we could use a
> > > different language, but for now that's out of our scope).
> > >
> > > Is there a C++ library available somewhere?
> > > One that can be used in a closed source app and compiles both on
> > > Windows and Linux (and preferably other platforms like OSx, iOS,
> Android).
> > > Usage of c++11, boost and/or Qt frameworks is fine as our app already
> > > uses them.
>
> It is not a real C++ library, but there might be some code that you can
> copy from the SharpSvn library code for your usage. SharpSvn is C++/CLI, to
> allow operation with the .Net environment, but there is enough plain C++
> inside that might be able to get you started with the C library. The code
> is Apache licensed so you can mostly use it however you like.
>
> Bert
>
>


Re: ... is already a working copy for a different url

2018-02-02 Thread R developer
You might be looking for the relocate command, execute it on the current
working copy and tell it which server folder it should be:

http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.relocate.html

Doing
svn info .
Shows the current server url, might be wise to check if that is what you
think it is

I don't know how to do this in your client

Op vrijdag 2 februari 2018 heeft Martin Bo Andersen 
het volgende geschreven:

> I couldn’t find FAQs addressing my problem, even though it’s probably
> simple, and the archives tried to help people that wanted something more
> than the basics.
> But I’m not trying to do anything “clever”.
> It’s just a checkout.
> (I’m using Tortoise, but I don’t think Tortoise is the cause of this
> problem ... unless it’s doing something I’m unaware of.)
>
> I have a directory structure with a folder and three subfolders
> Xsvn
> -- X1
> -- X2
> -- X3
>
> I can checkout X1, X2, and X3.
> When I try to checkout files from Xsvn to Xpc, I get “Xpc is already a
> working copy for a different url”
>
> If this is really true, then
> 1) it is not on purpose - I don’t want it to be a working copy for a
> different url
> 2) I don’t know which “different URL”
> 3) I don’t know how to solve it.
>
> It’s possible that it WAS a working copy for a different URL, because I
> didn’t know how SVN wanted things, but I have re-arranged my folders, so
> there should be no such problem any more.
> How do I know which URL is the problem?
> How can I make SVN forget the wrong URL, so that I can use the folder for
> the right URL?
>
> Thanks
>
> Martin
>


Re: Searching for a C++ API

2018-01-30 Thread R developer
2018-01-29 13:54 GMT+01:00 Branko Čibej <br...@apache.org>:

> On 29.01.2018 11:45, R developer wrote:
> > Hello all,
> >
> > I have been involved in writing a closed source application that among
> > other things maintains a checkout from an SVN repository, the
> > application used to be written in C# so at the moment we are used to
> > SharpSvn. Recently the decision was made to incorporate the
> > functionality into a mobile c++ app (yes, I do wish we could use a
> > different language, but for now that's out of our scope).
> >
> > Is there a C++ library available somewhere?
> > One that can be used in a closed source app and compiles both on
> > Windows and Linux (and preferably other platforms like OSx, iOS,
> Android).
> > Usage of c++11, boost and/or Qt frameworks is fine as our app already
> > uses them.
> >
> > When we started searching; we found several dead ends. Either GPL code
> > which we can't use or outdated and no longer compiling.
> >
> > What is the preferred/easiest way of doing a simple checkout/update of
> > a svn repository folder in a c++ application?
> > (Any leads will be appreciated as we are quite new to this topic)
>
>
> There is no C++ API that I'm aware of. However, the C API can quite
> handily be used from C++.
>
> -- Brane
>

So far i found that rapidsvn contains libsvncpp; but its GPL
https://github.com/RapidSVN/RapidSVN
And there is svnqt, which is old and I couldn't find documentation (LGPL)
https://github.com/MIRAvzw/svnqt
Does anyone know of a better / free to use C++ library?

I'm not that familiar with the C API unless I'm missing something (which is
very well possible) one would have to manage the apr pools himself?
for instance
https://svn.apache.org/repos/asf/subversion/trunk/tools/examples/minimal_client.c
does seem very complex to me for the tasks it performs
is there any easier C example out there?

Kind Regards,
Richard


Searching for a C++ API

2018-01-29 Thread R developer
Hello all,

I have been involved in writing a closed source application that among
other things maintains a checkout from an SVN repository, the application
used to be written in C# so at the moment we are used to SharpSvn. Recently
the decision was made to incorporate the functionality into a mobile c++
app (yes, I do wish we could use a different language, but for now that's
out of our scope).

Is there a C++ library available somewhere?
One that can be used in a closed source app and compiles both on Windows
and Linux (and preferably other platforms like OSx, iOS, Android).
Usage of c++11, boost and/or Qt frameworks is fine as our app already uses
them.

When we started searching; we found several dead ends. Either GPL code
which we can't use or outdated and no longer compiling.

What is the preferred/easiest way of doing a simple checkout/update of a
svn repository folder in a c++ application?
(Any leads will be appreciated as we are quite new to this topic)

Thanks,
Richard