Discussion:
How to replicate a direcoty from one location to another without cvs-check-in
coolpaddy
2011-12-21 08:07:35 UTC
Permalink
Hi,

Is there any way in CVS to replicate already existing dir at some other
location in same cvs repository?

Example:

Say I have following dir already checked-in into CVS:

/cvsroot/coolpaddy/source/dir_to_be_copied

Now I want to have dir_to_be_copied at /cvsroot/coolpaddy level too. I dont
want to checkin again dir_to_be_copied as it is too big in size(around 10GB)
and would take a lot time.

Is there any alternate way to achieve the same?

Thanks!
~paddy
--
View this message in context: http://old.nabble.com/How-to-replicate-a-direcoty-from-one-location-to-another-without-cvs-check-in-tp33015128p33015128.html
Sent from the Gnu - Cvs - Info mailing list archive at Nabble.com.
Shane Turner
2011-12-21 13:06:47 UTC
Permalink
Paddy,

Could you give us a little more information about the situation and what
it is you're trying to accomplish so we can give a appropriate suggestion?

Shane
Post by coolpaddy
Hi,
Is there any way in CVS to replicate already existing dir at some other
location in same cvs repository?
/cvsroot/coolpaddy/source/dir_to_be_copied
Now I want to have dir_to_be_copied at /cvsroot/coolpaddy level too. I dont
want to checkin again dir_to_be_copied as it is too big in size(around 10GB)
and would take a lot time.
Is there any alternate way to achieve the same?
Thanks!
~paddy
Bulgrien, Kevin
2012-01-03 20:02:40 UTC
Permalink
-----Original Message-----
g] On Behalf Of coolpaddy
Sent: Wednesday, December 21, 2011 2:08 AM
Subject: How to replicate a direcoty from one location to
another without cvs-check-in
Hi,
Is there any way in CVS to replicate already existing dir at
some other
location in same cvs repository?
/cvsroot/coolpaddy/source/dir_to_be_copied
Now I want to have dir_to_be_copied at /cvsroot/coolpaddy
level too. I dont
want to checkin again dir_to_be_copied as it is too big in
size(around 10GB)
and would take a lot time.
Is there any alternate way to achieve the same?
Thanks!
~paddy
Perhaps something like this?

mkdir /cvsroot
cd /cvsroot
cvs -d /path/to/repository co coolpaddy/source/dir_to_be_copied
cd coolpaddy
cvs -d /path/to/repository co -d dir_to_be_copied coolpaddy/source/dir_to_be_copied

This presumes that /path/to/repository contains coolpaddy/source/dir_to_be_copied,
but regardless the principle is that you can checkout a repository directory into
the sandbox pretty much whereever you want to.

You can update both simply with:

cd /cvsroot
cvs update

You can commit from either directory and the committed files go to the same place
in the repository

/path/to/repository/coolpaddy/source/dir_to_be_copied

There are still two copies in your sandbox, but only one in the repository.

---
Kevin R. Bulgrien
Design and Development Engineer

This message and/or attachments may include information subject to GD Corporate Policy 07-105 and is intended to be accessed only by authorized personnel of General Dynamics and approved service providers. Use, storage and transmission are governed by General Dynamics and its policies. Contractual restrictions apply to third parties. Recipients should refer to the policies or contract to determine proper handling. Unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender and destroy all copies of the original message.
Loading...