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

Re: svn stat on new files

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-12-06 15:03:03 CET

Ben Collins-Sussman <sussman@collab.net> writes:

> Martin Pool <mbp@sngrel5.hp.com> writes:
> > People might call 'svn stat' on a file that doesn't exist yet. For
> > example, vc-svn (as currently designed) does this when you open a new
> > file in a directory that is controlled by Subversion. At the moment,
> > svn stat prints gives a blank status, as if the file was up to date,
> > which is misleading. It seems to me that it would be better for it to
> > either print '?', or at least give an error.
> I agree, 'svn stat nonexistent-file' should give an error. It's a bug
> that it prints the filename instead... it makes no sense. We should
> file an issue on that.

I prefer Martin's suggestion that it print '?'. If the file does not
exist, and does not have a .svn entry, then it is not under revision
control and '?' is the right status. (If it does have a .svn entry
then '!' will be dispayed.) I also suspect it will make 'svn status'
easier to use if it doesn't generate an error in this case.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 6 15:03:47 2002

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.