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

Re: Confusion on Directories

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-11 22:58:39 CEST

On Jun 11, 2006, at 22:34, Kenneth Jacker wrote:

> $ svn -v status
> ? Lab01
> ? Lab02
> ? Lab03
> ? Lab00
> ... ... ...
> $ svn -v list
> 1 khj May 31 13:34 Lab00/
> 1 khj May 31 13:34 Lab01/
> 1 khj May 31 13:34 Lab02/
> 6 khj Jun 08 17:21 Lab03/
> ... ... ...
> $ svn update
> svn: Failed to add directory 'Lab00': object of the same name
> already exists
> Questions:
> o According to the SVN Book, the 'status' sub-command indicates that
> a `?' in column one corresponds to an "Item not under version
> control". The output of 'status' above contains `?'s, yet 'list'
> shows that, in fact, the four directories *are* under VC. I
> don't understand.
> o Why does 'status' show "Lab00" at the *end*, but 'list' at the
> beginning?
> o Why am I getting the "error message" from 'update'? Why is it
> trying to re-add directory 'Lab00'?

The answer to your first and third questions is that you deleted the
directories Lab00, Lab01, Lab02 and Lab03 that you checked out, then
created new directories by those names. Or, you deleted the .svn
directories inside those directories. Or, you used a tool which did
that. Either way, the .svn directory and its contents are essential
to Subversion working copies and are not meant to be touched; if you
do touch them (specifically, if you remove them) then you will get
the behavior you're seeing: Subversion sees four directories which
aren't under version control (because they don't contain .svn
directories) and they happen to have the same names as four
directories which should be under version control but are absent. svn
update tries to re-add the absent directories, but of course can't
because they're already there.

You don't need to be concerned about the differing sort order.
Subversion sorts things by no readily-apparent criteria, and as you
see even different svn commands sort things differently.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jun 11 22:59:51 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.