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

Re: Having difficulty with mv

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-03-20 15:22:29 CET

Wow, there are many confusing things going on here. I'm not sure
where to start. :-)

"Richard In Public" <edification@blueyonder.co.uk> writes:

> Hi All
>
> I'm trying to alter my repository so that its contents are now in a 'trunk'.

Does your repository contain any data at all?

>
> My repository is at D:\svn\repos (http://localhost/svn/repos via WebDAV). I
> want to move it to D:\svn\repos\trunk.

This is confusing things. Do you want to move the repository
*itself*, in *real* filesystem space? Then just use Win32 to do that,
and change the <Location> you're exporting from httpd.conf.

But I don't think you want to do that. I think you want the move to
happen within the "virtual" repository filesystem, right? In other
words, you want to move the contents of '/' into '/trunk'. If so,
please don't talk about D:\svn\repos\trunk... no such path exists. :-)

>
> Attempt #1:
> svn mv http://localhost/svn/repos http://localhost/svn/repos/trunk. This
> returned the 'cannot copy ... into its own child ...

From the repository filesystem's point of view, that's like issuing
the command

     'mv / /trunk'

You can't move the root directory. :-)

 
> Attempt #2
> svn mv http://localhost/svn/repos http://localhost/svn/tmp (to be followed
> by move to ../repos/trunk). This opens my SVN_EDITOR with:
>
> --This line, and those below, will be ignored --
>
> A http://localhost/svn/hbb

This shouldn't be allowed either. You simply can't mv '/'. I'm
amazed the commit got this far... and that's a wonky commit message too.

> I have created the necessary folders, configured apache and can view the new
> (but empty) repository via a browser.

Your repository is empty? I don't understand. Why are you trying to
move data then, if there's nothing to move?

> I have also tried moving my repository to a non-repository folder
> and to a non-existant folder.

Wow, I'm really not following you. It sounds like you're now talking
about real NTFS filesystem space again.

Do you understand that D:\svn\repos contains nothing but a database?
When we recommend that you create "/trunk, /branches, /tags" in the
repository, we're talking about directories in the *virtual*
filesystem, not the real one:

$ # edit httpd.conf to export D:\svn\repos as /svn/repos.

$ svnadmin create D:\svn\repos

$ svn mkdir http://host/svn/repos/trunk -m "Create /trunk"

$ svn mkdir http://host/svn/repos/branches -m "Create /branches"

$ svn mkdir http://host/svn/repos/tags -m "Create /tags"

$ svn checkout http://host/svn/repos/trunk my-wc

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 20 15:23:27 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.