Re: The best approach for moving files and retaining history

Todd Denniston <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <[email protected]>
Arthur Barrett wrote, On 06/30/2009 04:34 PM:
>> Ultimately, I would like to know if my approach is good or bad.
> 
> The two techniques are neither good nor bad just different each with
> it's own advantages and disadvantages.
> 
> Alternatively if you are using CVSNT (on unix/linux/win/mac) you can use
> the rename command.
> 

Curiosity has struck me...

Plagiarizing some from Rez P
method A:
copy the files to a newly created folder, add, and commit, with a cvs remove 
the originals and commit.
method B:
go to the server side and copy all the 'v' files, to the new folder, then cvs 
remove originals and commit.


I know:
Method A makes it look like the files, in the new directory, have no history.
	if comments are done properly cvs2cl shows the change over.
Method B has all the history, but can be a bit confusing if you checkout an 
old tag.
	Likely there will not be a comment in the new files to show that they moved, 
so cvs2cl will be less than useful at detecting it.


what is the behavior of the CVSNT rename command?
what does it's repository markings look like in cvs2cl? (cvs2cl.pl or cvs2cl.py)
If I were trying to mimic it by hand what would it most look like?

Thanks.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.