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

Re: svn status -v on nonexistent files has changed

From: Martin Pool <mbp_at_samba.org>
Date: 2003-06-10 05:31:06 CEST

On 6 Jun 2003, kfogel@collab.net wrote:
> kfogel@collab.net writes:
> > I couldn't reproduce this with head (rev 6163) of vc-svn.el and of
> > Subversion. I think 'svn status' has already been fixed back.
>
> Wait, this is more complex than I thought. Here is some more careful
> testing this time -- all with head (6163) of both vc-svn.el and
> Subversion, GNU Emacs 21.1.50.3, and 'xxx' is a non-existent file:
>
> 1. Using head of vc-svn.el and Subversion, I do *not* get an
> error when I do "C-x C-f xxx RET" in Emacs. It just brings up
> the new buffer named 'xxx', no complaints.

This seems to work for me using svn and vc-svn.el from trunk r6178,
although it was broken in 0.23. I am using

  GNU Emacs 21.3.2 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2003-04-25 on raven, modified by Debian

> 2. I get different errors or non-errors by running status on 'xxx',
> depending on the options and whether or not I'm inside a
> Subversion working copy:
>
> $ cd some-working-copy
> $ svn st xxx
> $ svn st -v xxx

Silent success in these cases seems wrong to me. Unless there is some
countervailing reason why it really has to happen this way I would
rather get an error.

> $ svn st -u xxx
> subversion/libsvn_wc/update_editor.c:2250: (apr_err=150000)
> svn: Can't find an entry
> svn: svn_wc_is_wc_root: 'xxx' is not a versioned resource
> $ svn st -uv xxx
> subversion/libsvn_wc/update_editor.c:2250: (apr_err=150000)
> svn: Can't find an entry
> svn: svn_wc_is_wc_root: 'xxx' is not a versioned resource
>
> $ cd outside-a-working-copy
> $ svn st xxx
> subversion/libsvn_wc/lock.c:306: (apr_err=155007)
> svn: Path is not a working copy directory
> svn: '.' is not a working copy
> $ svn st -v xxx
> subversion/libsvn_wc/lock.c:306: (apr_err=155007)
> svn: Path is not a working copy directory
> svn: '.' is not a working copy
> $ svn st -u xxx
> subversion/libsvn_wc/lock.c:306: (apr_err=155007)
> svn: Path is not a working copy directory
> svn: '.' is not a working copy
> $ svn st -uv xxx
> subversion/libsvn_wc/lock.c:306: (apr_err=155007)
> svn: Path is not a working copy directory
> svn: '.' is not a working copy
> $

> All those different status results in (2) are disturbingly
> inconsistent, and maybe should get an issue ("svn status behaves
> inconsistently" or something). But (1) is the bug you originally
> reported, and it's strange that I can't reproduce it.

It does seem inconsistent to me too.

-- 
Martin 

  • application/pgp-signature attachment: stored
Received on Tue Jun 10 05:32:23 2003

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.