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

Re: Why svn_client_update3() always return success?

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 19 Feb 2011 17:19:11 +0200

Please use paragraphs.

Grigory Petrov wrote on Sat, Feb 19, 2011 at 18:08:36 +0300:
> Hello.
>
> I'm learning a Subversion API right now and have following test code:
> http://pastebin.com/rVQM7TpJ
> The svn_client_ls() call correctly returns error code since i give a
> wrong repository URL. But next call to svn_client_update3() ALWAYS
> returns success (zero) regardless of arguments i supply :(.

When ./ is a working copy, 'svn up nonexistentpath' returns zero
because, if that path had been added between BASE and HEAD, it would
create that file in the wc.

Outside a working copy it should signal an error. (currently
outside of a working copy it generates a "Skip" notification)

> Maybe some experience Subversion developer can hint me what i'm doing
> wrong? The sample code is compile with QtCreator C++ IDE on MacOS
> X 10.6, subversion library is installed via macports. I don't know
> what version it is since where is no version in svn_client.h file, but
> according to macports website it must be 1.6.5.

svn_version.h

>
> Best,
> Grigory.
Received on 2011-02-19 16:24:34 CET

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.