[Top][All Lists]

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

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

From: Larry Jones
Subject: Re: NEWBIE -- needs help in moving directories from one repositor
Date: Tue, 10 Apr 2001 15:14:02 -0400 (EDT)

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 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]