You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jeremy Mordkoff <jl...@ZeeVee.Com> on 2009/10/06 18:49:37 UTC

re-organizing a repository

Right now, I have a repository organized like this:

 

Zcode

Zcode/comp1

Zcode/comp2

...

Zcode/comp9

 

I would like to make one component a peer of zcode, e.g. 

 

Zcode

Zcode/comp1

...

Zcode/comp9

comp2

 

this component has 10,000 files in 4000 directories. Is just doing an
svn mv feasible? How about an svn copy instead? Is there a better way,
with or without history? 

 

JLM

 

 

 

Jeremy Mordkoff

Director, QA, IT & Release

ZeeVee, Inc.

One Monarch Drive | Littleton, MA 01460

Office: 978.467.1395 x233 | Fax: 978.467.1404

Mobile: 978-257-2183

jlm@zeevee.com <ma...@zeevee.com>  

www.zeevee.com <http://www.zeevee.com/>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2404249

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: re-organizing a repository

Posted by Andy Levy <an...@gmail.com>.
On Tue, Oct 6, 2009 at 14:49, Jeremy Mordkoff <jl...@zeevee.com> wrote:
> Right now, I have a repository organized like this:
>
>
>
> Zcode
>
> Zcode/comp1
>
> Zcode/comp2
>
> …
>
> Zcode/comp9
>
>
>
> I would like to make one component a peer of zcode, e.g.
>
>
>
> Zcode
>
> Zcode/comp1
>
> …
>
> Zcode/comp9
>
> comp2
>
>
>
> this component has 10,000 files in 4000 directories. Is just doing an svn mv
> feasible? How about an svn copy instead? Is there a better way, with or
> without history?

svn mv would be the best way to do it, and will keep history. Do it
via repository URLs, not a WC, as it'll likely be much faster.

svn mv URL_TO_REPOS/Zcode/comp2 URL_TO_REPOS/comp2

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2404257

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: re-organizing a repository

Posted by Stein Somers <ss...@opnet.com>.
Jeremy Mordkoff wrote:
> Is just doing an svn mv feasible?

Yes, it's extremely cheap in the repository. But then anyone who has a 
working copy set on Zcode, and does svn update, will see their whole 
Zcode/comp2 deleted and comp2 checked out as if it's new.

> How about an svn copy instead?

That is identical, except that it omits the delete of Zcode/comp2.

-- 
Stein

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2404424

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: re-organizing a repository

Posted by "Parrish, Ken" <KP...@gomez.com>.
I'd recommend moving your files using Subversion commands.  That way you'll keep the history.

If you are using a Subversion client like TortoiseSVN, I strongly recommend doing this type of reorganization directly in the repository browser or equivalent tool that acts directly on the repository.  Moving large directories around and managing a working directory at the same time can be really cumbersome and slow-also prone to errors.  Better to do the reorganization directly to the repository and then either checkout fresh, or do the update on your working directory in a single pass.

If you're using the SVN command, I believe you'll get the same effect using URLs instead of local working directories.

KRP

From: Jeremy Mordkoff [mailto:jlm@ZeeVee.Com]
Sent: Tuesday, October 06, 2009 2:50 PM
To: users@subversion.tigris.org
Subject: re-organizing a repository

Right now, I have a repository organized like this:

Zcode
Zcode/comp1
Zcode/comp2
...
Zcode/comp9

I would like to make one component a peer of zcode, e.g.

Zcode
Zcode/comp1
...
Zcode/comp9
comp2

this component has 10,000 files in 4000 directories. Is just doing an svn mv feasible? How about an svn copy instead? Is there a better way, with or without history?

JLM



Jeremy Mordkoff
Director, QA, IT & Release
ZeeVee, Inc.
One Monarch Drive | Littleton, MA 01460
Office: 978.467.1395 x233 | Fax: 978.467.1404
Mobile: 978-257-2183
jlm@zeevee.com<ma...@zeevee.com>
www.zeevee.com<http://www.zeevee.com/>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2404272

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].