You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ahmed Reza <ah...@gmail.com> on 2006/07/17 22:27:36 UTC

Using Subversion's API

Hi, I'm need some direction as far as woring with the subversion API goes.
Can someone please point me in the direction of some already existing
examples for working with Subversion's API, specifically using Visual C++.
I know I can look at tortoise, but I'm being lazy, and would really
appreciate it if someone could point me to a dumbed down step by step
instruction on how to work with the subversion API, i.e. includes I'm going
to need, libraries I might need to import etc etc etc, to build an app in
C++/MFC that uses Subversion.  Any input would be really appreciated.

Regards,
Ahmed

Re: Using Subversion's API

Posted by KentF <kf...@msn.com>.
DJ,

I am interested.

Thanks in advance.

Kent
-- 
View this message in context: http://www.nabble.com/Using-Subversion%27s-API-tf1957583.html#a5467641
Sent from the Subversion Users forum at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Using Subversion's API

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/19/06, D.J. Heap <dj...@gmail.com> wrote:
[snip]
>
> You need to get the other zips I mentioned -- svn-win32-1.3.2_dev.zip
> , svn-win32-libintl.zip, and db-4.3.28-win32.zip.  They have the
> include folders and lib folders you'll need to develop with svn-1.3.2.
>
> I'll try to put together a _very_ basic VS2003 MFC app but it will be
> a day or two.
>


I made the little VS2003 MFC app that includes and links to Subversion
1.3.2 and emailed it to Ahmed.  If anyone else is interested let me
know.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Using Subversion's API

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/18/06, Ahmed Reza <ah...@gmail.com> wrote:
> Hi, I'm using Visual Studio 2003.net for my dev environment.  I got
> svn-win32-1.3.2 and was looking inside it to find libraries etc, but didn't
> find anything.  There is an include folder which I put in my include paths
> in project settings, but I don't know how to get any further.  I am trying
> to make a merge tool for windows user, similar to svnmerge.py except in a
> more user friendly way.  I need to be able to checkout/update, merge and
> commit.  I found one article online about using the API but that was at
> Subversion .20 and I'm sure things have come a long way since then.  Thanks.
>
> Regards,
> Ahmed

I've CC'd the users list so others may benefit.

You need to get the other zips I mentioned -- svn-win32-1.3.2_dev.zip
, svn-win32-libintl.zip, and db-4.3.28-win32.zip.  They have the
include folders and lib folders you'll need to develop with svn-1.3.2.

I'll try to put together a _very_ basic VS2003 MFC app but it will be
a day or two.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Using Subversion's API

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/17/06, Ahmed Reza <ah...@gmail.com> wrote:
> Hi, I'm need some direction as far as woring with the subversion API goes.
> Can someone please point me in the direction of some already existing
> examples for working with Subversion's API, specifically using Visual C++.
> I know I can look at tortoise, but I'm being lazy, and would really
> appreciate it if someone could point me to a dumbed down step by step
> instruction on how to work with the subversion API, i.e. includes I'm going
> to need, libraries I might need to import etc etc etc, to build an app in
> C++/MFC that uses Subversion.  Any input would be really appreciated.
>
> Regards,
> Ahmed
>


What version of Visual C++ and what kind of API usage are you looking
at?  Client side stuff like manipulating working copies, commiting
changes, etc., or server side direct repository access?

In general, it is the same as any other C/C++ project:  Include the
header files for the API's you need and link to the API libraries.  If
you want to code against Subversion 1.3.2, then download the
svn-win32-1.3.2_dev.zip, svn-win32-libintl.zip, and
db-4.3.28-win32.zip files that contain the headers and libraries
you'll need (or build them yourself from source).

Add all their include and lib directories to the appropriate places in
your Project Settings, #include the headers you want in your code, add
the libraries (you'll need to add pretty much all of them, probably)
to your linker dependencies and start coding.  Look at the source for
minimal_client.c in tools\examples for some basic client API usage.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org