You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Koen Vermeer <ko...@vermeer.tv> on 2008/03/26 14:43:10 UTC

Move directory

Hi,

I'm just starting with svn, so please be gentle... I followed the book
and created a new repository, and imported some data into
file:///path/project. Then, after reading about the possible layout of a
repository, I decided that I should have imported that data into
file:///path/project/trunk. I tried

svn move file:///path/project file:///path/project/trunk

which didn't work (svn: Cannot move URL 'file:///srv/svn/tst' into
itself) and then

svn move file:///path/project/* file:///path/project/trunk

which also didn't work (svn: Path 'file:///srv/svn/tst/*' does not exist
in revision 1).

So, what is the right way to do this? 'svn list file:///path/project'
does show some files, so there is some data stored there.

Thanks!

Koen



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Move directory

Posted by "Harvey, Edward" <Ed...@patni.com>.
No, I don't think this is a good idea, unless there's a misunderstanding.  Just to be sure there's no misunderstanding, I'm going to restate what I think is the original question...

You have a repository, file:///path
You have a working copy, which I'll just assume is ~/workingcopy
You have a subdirectory, "project" which is inside your working copy, and full of a bunch of stuff.  So you have a subdir of your working copy, which is associated to a repository URL as follows:
        ~/workingcopy/project   <-->  file:///path/project
You realized that you should have created "branches" "tags" and "trunk" for the project.

If you follow what Paul says, you'll end up with something like this...
        ~/workingcopy/project/trunk  <-->  file:///path/project

But I think you should do this:
        cd ~/workingcopy/project
        mkdir trunk
        svn add trunk
        svn mv * trunk
        mkdir branches tags
        svn add branches tags
If you follow what I say, you'll end up with something like this...
        ~/workingcopy/project/trunk  <-->  file:///path/project/trunk




> -----Original Message-----
> From: Paul Koning [mailto:Paul_Koning@dell.com]
> Sent: Wednesday, March 26, 2008 10:56 AM
> To: koen@vermeer.tv
> Cc: users@subversion.tigris.org
> Subject: Re: Move directory
>
> Try it in steps:
>
> 1. rename "project" to "foo"
> 2. mkdir "project"
> 3. rename "foo" to "project/trunk"
>
>    paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org


This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete  this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin@patni.com and delete this mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: Move directory

Posted by "Harvey, Edward" <Ed...@patni.com>.
No, I don't think this is a good idea, unless there's a misunderstanding.  Just to be sure there's no misunderstanding, I'm going to restate what I think is the original question...

You have a repository, file:///path
You have a working copy, which I'll just assume is ~/workingcopy
You have a subdirectory, "project" which is inside your working copy, and full of a bunch of stuff.  So you have a subdir of your working copy, which is associated to a repository URL as follows:
        ~/workingcopy/project   <-->  file:///path/project
You realized that you should have created "branches" "tags" and "trunk" for the project.

If you follow what Paul says, you'll end up with something like this...
        ~/workingcopy/project/trunk  <-->  file:///path/project

But I think you should do this:
        cd ~/workingcopy/project
        mkdir trunk
        svn add trunk
        svn mv * trunk
        mkdir branches tags
        svn add branches tags
If you follow what I say, you'll end up with something like this...
        ~/workingcopy/project/trunk  <-->  file:///path/project/trunk




> -----Original Message-----
> From: Paul Koning [mailto:Paul_Koning@dell.com]
> Sent: Wednesday, March 26, 2008 10:56 AM
> To: koen@vermeer.tv
> Cc: users@subversion.tigris.org
> Subject: Re: Move directory
>
> Try it in steps:
>
> 1. rename "project" to "foo"
> 2. mkdir "project"
> 3. rename "foo" to "project/trunk"
>
>    paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Move directory

Posted by ko...@vermeer.tv.
> Try it in steps:
> 1. rename "project" to "foo"
> 2. mkdir "project"
> 3. rename "foo" to "project/trunk"

That seems to work just fine; thanks!

Koen


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Move directory

Posted by Paul Koning <Pa...@dell.com>.
Try it in steps:

1. rename "project" to "foo"
2. mkdir "project"
3. rename "foo" to "project/trunk"

   paul


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org