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

Re: unversioned directory of the same name already exists

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 14 Sep 2009 23:31:11 -0500

On Sep 14, 2009, at 20:19, perm 2600 wrote:

> On Mon, Sep 14, 2009 at 12:47 PM, Johan Corveleyn wrote:
>> Yes. What you've tried to do is an "in-place import".
>> See http://subversion.tigris.org/faq.html#in-place-import
> Yes! a local import is what I wanted to do. I just learned the name
> for it. Somewhere in the docs I saw a reference to using ssh to
> access a remote resource. I'll try that later since I don't have a
> web server setup for this. For now I wanted to learn the process in
> a local setting.

It has nothing to do with whether your repository is hosted on the
local computer or on a remote server. It has to do with how you
perform the import: whether normally, using "svn import", or in place,
using "svn checkout", "svn add" and "svn commit".

> I attempted to checkout the xdatadir a bit after I posted my initial
> question and it looks like it added the contents of the directory,
> but the status still shows the question mark. How does one interpret
> that? Or, how do you correct that?
> $ svn checkout file:///home/foot/svnrepo1 xdatadir/
> A xdatadir/dir1
> A xdatadir/dir1/file1_dir1
> A xdatadir/dir1/file2_dir1
> A xdatadir/dir2
> A xdatadir/dir2/file1_dir2
> A xdatadir/dir2/file2_dir1
> A xdatadir/dir2/file2_dir2
> Checked out revision 1.

Ok, you checked out file:///home/foot/svnrepo1 into a new local
directory xdatadir in the current directory (".").

> The status still shows that xdatadir is not under version control.
> $ svn status
> ! .
> ? dir1
> ? xdatadir
> ? dir2

So the current directory (".") is a working copy for some reason,
perhaps unintentionally.

> And also, why does 'svn list' shows dir1 and dir2, leftovers from
> the first try?
> $ svn list
> dir1/
> dir2/

"svn list" uses information about whatever repository the current
directory is attached to -- presumably the old repository you already

> I guess the important question is: where does subversion keep track
> of what has been done? how do you "clean" the history? I thought
> that deleting the repository and the /home/jdoe/xdatadir/.svn
> directory would take care of that.

You want to delete the ".svn" directory in the current directory. Then
"svn status" and "svn list" in this directory should properly report
that you are not in a working copy.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-15 06:32:07 CEST

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.