info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NEWBIE -- needs help in moving directories from one repositor


From: Luna, Glen
Subject: RE: NEWBIE -- needs help in moving directories from one repositor
Date: Wed, 11 Apr 2001 11:38:51 -0400

Thanks for all the input.

After reviewing the information and stepping back to get our
heads together, what we are going to is "tar" up the vendors
repository and install the root that we want on our own 
repository. That root will be a new root on our repository. 
I foresee no conflicts there. And it is just a single root
that we want. No worries (I hope).

But we'll also be pulling over the CVSROOT root 
directory. Of course we have an existing CVSROOT root
in our repository. I did notice that the only files that 
seem to change is the val-tags and the history files. 

Will I have to merge these files or does it matter if I 
just keep things as they are in our CVSROOT? How important
are these two files?

Yes...I do want to retain version history.

Thanks in advance.

Glen Luna



-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: Tuesday, April 10, 2001 3:14 PM
To: Luna, Glen
Cc: address@hidden
Subject: Re: NEWBIE -- needs help in moving directories from one
repositor


Luna, Glen writes:
>
> There is an existing repository on host_2. The subdirs I will
> be extracting from host_1 will into a new root on host_2. The
> names of the roots on host_1 and host_2 will be different (but
> that's not a rule). The subdirs, sub_1 and sub_2, will remain 
> on host_1 and will not co-exist on host_2.

The simplest thing to do, then, is to copy the relevant files and
directories directly from the repository on host_1 into the repository
on host_2 using whatever OS-level commands you're comfortable with (tar,
cpio, backup, scp, rcp, ftp, whatever).  There's no magic in the
repository -- the file and directory structure is all there is -- so
using OS commands preserves all the revision history and is easy. 
Rearranging repositories like this is not something CVS was designed to
do, so there aren't any CVS commands to do it.

> Now that I look at it, I'm essentially splitting the contents 
> of an existing root across two repositories on different hosts.
> 
> Once I figure out the recipe to achieve this split, the
> next question is....how do I do a "cvs checkout" the right way
> to get a working directory of the logical root (a merge)?

You'll have to do two checkouts, one for each host.  You can do the
second checkout inside the working directory from the first checkout,
however, and from that point on you can treat it as a single tree --
things like update and commit will automatically go to both
repositories as needed.

-Larry Jones

Wow, how existential can you get? -- Hobbes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]