You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "THURMAN, LORENZO, SECR" <lt...@att.com> on 2006/10/24 15:45:11 UTC
Repository reorg question
When our svn repository was setup, the admin did not use the recommended
structure of trunk, tags and branches, but instead he just placed the
code in the repository. Now we need to create branches and tags, so I'd
like to redo the repository. What is the safest way to go about this?
Thanks
Lorenzo Thurman, SECR
Aurora/Internet Protect Developer
312-230-2109
Re: Repository reorg question
Posted by "Wesley J. Landaker" <wj...@icecavern.net>.
On Tuesday, 24 October 2006 09:45, THURMAN, LORENZO, SECR wrote:
> When our svn repository was setup, the admin did not use the recommended
> structure of trunk, tags and branches, but instead he just placed the
> code in the repository. Now we need to create branches and tags, so I'd
> like to redo the repository. What is the safest way to go about this?
One way that has the advantage of not loosing history would just be to make a
trunk directory at the top and move all the existing files and directories
into it, e.g. something like:
$ svn co <repos_url> top
$ cd top
$ svn mkdir trunk
$ for i in *; do svn mv "$i" trunk; done
$ svn mkdir tags branches
$ svn commit -m "Changing repos to trunk/tags/branches style"
There might be a more clever way to do this, but this is simple and easy.
--
Wesley J. Landaker <wj...@icecavern.net>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Repository reorg question
Posted by "THURMAN, LORENZO, SECR" <lt...@att.com>.
Thanks again. Fortunately, we're not using tortoise, but Eclipse.
Lorenzo Thurman, SECR
Aurora/Internet Protect Developer
312-230-2109
-----Original Message-----
From: Duncan Murdoch [mailto:murdoch@stats.uwo.ca]
Sent: Tuesday, October 24, 2006 11:39 AM
To: THURMAN, LORENZO, SECR
Cc: users@subversion.tigris.org
Subject: Re: Repository reorg question
On 10/24/2006 12:28 PM, THURMAN, LORENZO, SECR wrote:
> Great, thanks for the reply. I'll keep my history, correct?
Yes. Some tools (e.g. TortoiseSVN) may have trouble due to the renames,
but I think that's a bug in them, not in svn.
The example I'm thinking of: tsvn won't do "blame" (i.e. show the
originating revision number for each line) if you select a file and ask
it to limit its search entirely to a time before the file had its
current name. This is a tsvn bug, not an svn bug, because the svn
client has no problem in this situation.
Duncan Murdoch
> Lorenzo Thurman, SECR
> Aurora/Internet Protect Developer
> 312-230-2109
>
> -----Original Message-----
> From: Duncan Murdoch [mailto:murdoch@stats.uwo.ca]
> Sent: Tuesday, October 24, 2006 11:26 AM
> To: THURMAN, LORENZO, SECR
> Cc: users@subversion.tigris.org
> Subject: Re: Repository reorg question
>
> On 10/24/2006 11:45 AM, THURMAN, LORENZO, SECR wrote:
>> When our svn repository was setup, the admin did not use the
> recommended
>> structure of trunk, tags and branches, but instead he just placed the
>> code in the repository. Now we need to create branches and tags, so
> I'd
>> like to redo the repository. What is the safest way to go about this?
>
> Design what you want, and then use "svn mkdir newURL" to create the
new
> structure in the repository, and then "svn move oldURL newURL" to move
> things into it. If you screw up, it's all reversible.
>
> Duncan Murdoch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Repository reorg question
Posted by Duncan Murdoch <mu...@stats.uwo.ca>.
On 10/24/2006 12:28 PM, THURMAN, LORENZO, SECR wrote:
> Great, thanks for the reply. I'll keep my history, correct?
Yes. Some tools (e.g. TortoiseSVN) may have trouble due to the renames,
but I think that's a bug in them, not in svn.
The example I'm thinking of: tsvn won't do "blame" (i.e. show the
originating revision number for each line) if you select a file and ask
it to limit its search entirely to a time before the file had its
current name. This is a tsvn bug, not an svn bug, because the svn
client has no problem in this situation.
Duncan Murdoch
> Lorenzo Thurman, SECR
> Aurora/Internet Protect Developer
> 312-230-2109
>
> -----Original Message-----
> From: Duncan Murdoch [mailto:murdoch@stats.uwo.ca]
> Sent: Tuesday, October 24, 2006 11:26 AM
> To: THURMAN, LORENZO, SECR
> Cc: users@subversion.tigris.org
> Subject: Re: Repository reorg question
>
> On 10/24/2006 11:45 AM, THURMAN, LORENZO, SECR wrote:
>> When our svn repository was setup, the admin did not use the
> recommended
>> structure of trunk, tags and branches, but instead he just placed the
>> code in the repository. Now we need to create branches and tags, so
> I'd
>> like to redo the repository. What is the safest way to go about this?
>
> Design what you want, and then use "svn mkdir newURL" to create the new
> structure in the repository, and then "svn move oldURL newURL" to move
> things into it. If you screw up, it's all reversible.
>
> Duncan Murdoch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Repository reorg question
Posted by "THURMAN, LORENZO, SECR" <lt...@att.com>.
Great, thanks for the reply. I'll keep my history, correct?
Lorenzo Thurman, SECR
Aurora/Internet Protect Developer
312-230-2109
-----Original Message-----
From: Duncan Murdoch [mailto:murdoch@stats.uwo.ca]
Sent: Tuesday, October 24, 2006 11:26 AM
To: THURMAN, LORENZO, SECR
Cc: users@subversion.tigris.org
Subject: Re: Repository reorg question
On 10/24/2006 11:45 AM, THURMAN, LORENZO, SECR wrote:
> When our svn repository was setup, the admin did not use the
recommended
> structure of trunk, tags and branches, but instead he just placed the
> code in the repository. Now we need to create branches and tags, so
I'd
> like to redo the repository. What is the safest way to go about this?
Design what you want, and then use "svn mkdir newURL" to create the new
structure in the repository, and then "svn move oldURL newURL" to move
things into it. If you screw up, it's all reversible.
Duncan Murdoch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Repository reorg question
Posted by Duncan Murdoch <mu...@stats.uwo.ca>.
On 10/24/2006 11:45 AM, THURMAN, LORENZO, SECR wrote:
> When our svn repository was setup, the admin did not use the recommended
> structure of trunk, tags and branches, but instead he just placed the
> code in the repository. Now we need to create branches and tags, so I'd
> like to redo the repository. What is the safest way to go about this?
Design what you want, and then use "svn mkdir newURL" to create the new
structure in the repository, and then "svn move oldURL newURL" to move
things into it. If you screw up, it's all reversible.
Duncan Murdoch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org