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

svn_wc_status() unversioned semantics for non-wc files

From: Jay Freeman \(saurik\) <saurik_at_saurik.com>
Date: 2002-02-10 21:24:30 CET

Is there a way to figure out if a file just has absolutely nothing to do
with a working copy? I could have sworn those files used to return NULL
(with no error condition) from svn_wc_status(), but now they are
spitting out a status object where everything is set to unversioned.
The annoyance with this is that that is the same thing that is returned
for some random file that just so happens to be in a working copy but is
neither ignored nor added. (Well, worse, I've been getting that back
for files that _are_ in working copies and _are_ versioned and should be
returning "normal", but that seems like a different problem.) The
reason I'm playing with this is for a shell extension on Windows. If
you right click an unversioned file that is in a working copy, I'd like
to allow you to right click the file and do an "add" on it, but if the
file isn't in a working copy I want to not do anything. I figure the
current behavior is good enough for me to continue with the property
sheet, though, as you are unlikely to have much need for a property
sheet on unversioned files no matter where they are.
 
Sincerely,
Jay Freeman (saurik)
saurik@saurik.com
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.