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

svn_client_status2 usage

From: Ted Dennison <dennison_at_ssd.fsi.com>
Date: 2006-07-07 20:57:54 CEST

I'm attempting to use svn_client_status2 on a Win32 platform, but I'm
apparently doing something wrong.

One nit I've already noticed is that the routine apparently can't handle
standard Windows path names. For instance, I have to replace all
backslash characters with forward slashes, or else svn_client_status2
returns an error. There's nothing about this in the API docs that I
could find. So I guess my first question is: What exactly are the
filename rules for this routine? Are spaces valid? Are there any further
transformations I need to apply?

A further issue is that I seem to have it working properly for some
files, but not for others. For instance, if I call svn_client_status2 in
a loop with the following 5 files from a pulldown of my repository:

"c:/documents and settings/dennison/my documents/dev/svn/simnt/pci
driver/pci.h",
"c:/documents and settings/dennison/my documents/dev/svn/simnt/pci
driver/pci.cpp",
"c:/documents and settings/dennison/my documents/dev/svn/simnt/pci
driver/pci driver.dsp",
"c:/documents and settings/dennison/my documents/dev/svn/simnt/pci
driver/pci-device.h",
"c:/documents and settings/dennison/my documents/dev/svn/simnt/pci
driver/pci-device.cpp"

I get a status of svn_wc_status_normal for everything but the dsp. The
.dsp file just gives me garbage. I tried stepping through the execution
in the debugger, and it appears that for the .dsp file
svn_client_status2 returns success, but the svn_wc_status_func2_t
<cid:part1.00080100.00080706@ssd.fsi.com> routine never gets called.
What would cause that?

I'm sure it has to be something I'm doing wrong, as TortoiseSVN shows
the status of the files in question just fine.

-- 
T.E.D.   Work     -  mailto:dennison@ssd.fsi.com
         Home     -  mailto:dennison@telepath.com (Yahoo: Ted_Dennison)
         Homepage -  http://www.telepath.com/~dennison/Ted/TED.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 7 20:59:46 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.