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

Re: svn_client_status2 usage

From: Ted Dennison <dennison_at_ssd.fsi.com>
Date: 2006-07-07 21:48:49 CEST

Ted Dennison wrote:
> 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:
Heh. It never fails. No matter how long I fail to solve a problem; as
soon as I ask someone for help I figure it out. It turns out that (nit
#2) if you give a name that is wrong only in capitalization, then
svn_client_status2 on Win32 will return no error, but will also return
no status. I suppose this could be by design, but it sure seems like a
bug to me. For completeness, I think the repository I'm using is FSFS.

The "Right Thing" on Win32 would probably be to ignore case. I can
understand instead being case-sensitive for the sake of consistency with
the Unix system (and dealing with cross-platform access). However, if it
does that, it should give me an error when I get the name wrong.

Anyway, I guess this just emphasizes my first question: What exactly are
the filename rules for svn_client_status2()?

-- 
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 21:50:35 2006

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