info-cvs
[Top][All Lists]
Advanced

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

Re: Moving subdir of module to create a new stand alone module


From: Mark E. Hamilton
Subject: Re: Moving subdir of module to create a new stand alone module
Date: Wed, 09 Aug 2006 14:04:04 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.12) Gecko/20050920

Matthew,

Matthew Rich wrote:
I have a sub dir of a existing project that needs to be separated from that 
project (module) and be  a stand alone project.  Someone checked in linux code 
as part of an existing module and this need to be separated out.  Can I just 
move the directory on the cvs server?  The sub dir is not used by any current 
builds but it does have several tags on the files.  Any issues I should be 
aware of?  I think this should be a simple move.

The short answer (which has been given many times before ;) ) is yes, you can do that.

The long answer is that if you do that you mess up the history of your project. For instance, after you move the directory you cannot check out your project from any point in time prior to the move and get an accurate representation of the state of the project. By moving the directory it is as if it never existed in the previous location. The tags will still be valid, but the directory structure won't be.

http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_7.html#SEC70

If accurate historical structure is important to you (and your users) then a correct approach would be to check out the directory hierarchy you want to move and 'cvs import' it into the new location.

http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_3.html#SEC40

Then 'cvs remove' all the files in your working directory and commit them.

http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_7.html#SEC68

If accurate historical structure is not important then you can simply move them in the repository.

--
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666





reply via email to

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