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

RE: svn_wc_status() unversioned semantics for non-wc files

From: Jay Freeman \(saurik\) <saurik_at_saurik.com>
Date: 2002-02-11 22:22:36 CET


OK, I might have misinterpreted your previous comment that APR deals
with this, but the fix was to call svn_path_internal_style() from my
code before passing the path to Subversion.

I've left the remainder of this e-mail just for kicks:

========== OLD ===========

OK, you know what... the specific errors I was looking at were supposed
to be errors :). The calls are still incorrect, however.

If you want to skip to the corrected analysis, skip down to the

Here is what I'm seeing.

I get a failure in apr_file_open() when it calls CreateFile().

apr_file_open() is being passed:

open_adm_file() is being passed:
"D:\Code\ninetjer\external\subversion\.svn" and "README"
and using v_extend_with_adm_name() to add "/.svn/README"

Back through svn_wc__open_adm_file() to svn_wc_check_wc().

When svn_wc_check_wc() gets this error, it assumes the entire deal isn't
a working copy.

Here is where I made my mistake. I'm looking at a call that
legitimately isn't a working copy. However, CreateFile() shouldn't have
been passed '/' even regardless.


When you pass in a legitimate file (directories work), Subversion goes
through this process and tries to open:


OK, here open_adm_file() is being passed ".". So is svn_wc_check_wc().

Here is where it gets interesting: svn_wc_entry() is being passed:


It calls svn_path_split() to get:

Basename: "D:\Code\ninetjer\external\subversion\BUGS"
Dir: ""

Which obviously isn't going to work. Likely it's assuming the usage of
the internal path separator on that.

========== END OLD ===========

Jay Freeman (saurik)

-----Original Message-----
From: Branko Cibej [mailto:brane@xbc.nu]
Sent: Monday, February 11, 2002 2:46 PM
To: Jay Freeman (saurik)
Cc: dev@subversion.tigris.org
Subject: Re: svn_wc_status() unversioned semantics for non-wc files

Jay Freeman (saurik) wrote:

>Seeing as all files, even versioned files, are showing up as
>"unversioned" to me due to weird Win32 issues, I'm not going to be able
>to do a patch for this currently :). (I believe it is the / vs. \
>issue, Subversion insists on letting /'s get down through the APR
>but even changing all of the /'s results in a filename that doesn't
>exist, so maybe not.) I need to look more into that first.
Strange. I'm not seeing this problem. Certainly APR is supposed to
handle /->\ conversion for us. I don't think that's really what's

BTW, when was the last time you updated svn? I did some hacks around
rev. 1235 to make the trunk work on Win32.

>Jay Freeman (saurik)

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:06 2006

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.