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

Re: Moving a repo into another?

From: Paul L Lussier <pll_at_lanminds.com>
Date: 2003-05-22 18:27:17 CEST

In a message dated: Wed, 21 May 2003 14:08:42 PDT
Dale Hirt said:

>Paul,
>
>Why move into a new repository at all? Subversion is designed to allow for
>directories to be moved around without losing change history. Why not
>simply rearrange your repos using svn move, and then add your two new
>projects into the svn repos?

Well, I thought of that, however, I think I still needed to do a
dump/load (not dump *a* load, mind you ;) because I needed to move
the top-level repository.

Here's the history. I started out with only a couple things which I
wanted under subversion in my home directory. I had a 'docs'
hierarchy, and 'devel' hierarchy. At the time I needed rev control
for this stuff, I wasn't ready to commit my entire home directory
structure to subversion for various reasons. So, on my local disk, I
have /usr/local/svn where I store all my repositories. I started out
with the following repos: /usr/local/svn/dev and /usr/local/svn/irmm.
(irmm being a subdirectory contained within my 'docs' hierarchy).

After a fit of reorganization yesterday, I realized that there we
several other things I needed under rev control within my home
directory, and, changes to certain files would likely happen while
changing many files at once. I use the svn log messages to comment
on what was going on when I commit all these files; i.e. a changeset.

The problem lie in that I began with two separate repositories which
had no connection and needed to create a third which was actually
connected to both of the others, thereby creating a link between all
three. To be able to log comments on groups of files in each
location, all three hierarchies need to be contained within a single
repository, no?

So, what I had was:

        /usr/local/svn/dev
        /usr/local/svn/irmm
        
and I needed to add in:

        /usr/local/svn/docs

Of which, irmm should be part of. Additionally, there are other
things within 'docs' which get touched when I make changes in 'dev'.
So, what I neeed/wanted to do was create 'home' hierarchy:

        /usr/local/svn/home
                           /docs
                               /irmm
                               /dev
                               /etc...
                          
                           /dev/...

Then, move the entire 'irmm' repo under the 'home/docs/', and the 'dev'
repo under 'home'.

I suppose I could have:

        svn mv file:///usr/local/svn/dev file:///usr/local/svn/home
        svn mkdir file:///usr/local/svn/home/dev
        svn mkdir file:///usr/local/svn/home/docs

Then moved all the subdirs now under 'home' to 'home/dev'... It just
seemed easier to create a new repo and load the old one. It was
probably exactly the same amount of work either way at this point :)

Oh well. So, that's what I wanted to do. I did it, I have all my
histories, and everything is under one big happy repo :)

Thanks for all the replies!

-- 
Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE
	It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.
	 If you're not having fun, you're not doing it right!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 22 18:28:19 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.