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

Re: svn status handling uncontrolled and non-existant files

From: <kfogel_at_newton.ch.collab.net>
Date: 2003-01-30 23:56:33 CET

Julian Foad julianfoad@btopenworld.com writes:
 - Verbose mode and recursive mode both list uncontrolled files, but do
 not list uncontrolled directories.

That's certainly questionable, yah.

 - When explicitly given the name of an uncontrolled file, it lists its
 status as ?, as expected.
 
 - When explicitly given the name of an uncontrolled directory, it
 fails and exits without continuing the report:

That last one is just an outright bug, considering the effect it has
when one passes * as an argument. Can you file an issue for it?
You might want to link it with issue #1076, not in a dependency way,
just in a these are all in the same domain sort of way.

 julianfoad@linux:~/src/subversion svn status *
 A A_NEW_DIR
         BUGS
         CHANGES
         COMMITTERS
         COPYING
         HACKING
         IDEAS
         INSTALL
 ? Makefile
         Makefile.in
         PORTING
         README
 subversion/libsvn_wc/status.c:718: (apr_err=155007)
 svn: Path is not a working copy directory
 svn: svn_wc_statuses: apr is not a working copy directory
 
 - When explicitly given the name of a non-existent file or directory,
 it implies that the file exists and matches the repository:
 
 julianfoad@linux:~/src/subversion ls blah
 ls: blah: No such file or directory
 julianfoad@linux:~/src/subversion svn status blah
         blah
 julianfoad@linux:~/src/subversion svn status blah/
         blah
 julianfoad@linux:~/src/subversion svn status blah/blah
 subversion/libsvn_wc/lock.c:289: (apr_err=155006)
 svn: Invalid lock
 svn: lock path is not a directory (blah)
 julianfoad@linux:~/src/subversion

This behavior is probably okay, because it could never be the result
of a * expansion -- the user has named a file that not only doesn't
exist, but couldn't exist. The error message is a bit cryptic, but
that would be helped by quotation marks (as in revision 4599). I have
added some.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:26:29 2006

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