How to replicate a direcoty from one location to another without cvs-check-in

View: New views
3 Messages — Rating Filter:   Alert me  

How to replicate a direcoty from one location to another without cvs-check-in

by coolpaddy :: Rate this Message:

| View Threaded | Show Only this Message

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



Re: How to replicate a direcoty from one location to another without cvs-check-in

by Shane Turner-3 :: Rate this Message:

| View Threaded | Show Only this Message

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

On 21/12/2011 4:07 AM, coolpaddy wrote:

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


RE: How to replicate a direcoty from one location to another without cvs-check-in

by Bulgrien, Kevin-2 :: Rate this Message:

| View Threaded | Show Only this Message

> -----Original Message-----
> From: info-cvs-bounces+kevin.bulgrien=gdsatcom.com@...
> [mailto:info-cvs-bounces+kevin.bulgrien=gdsatcom.com@...
g] On Behalf Of coolpaddy

> Sent: Wednesday, December 21, 2011 2:08 AM
> To: Info-cvs@...
> 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?
>
> 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

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.