[Top][All Lists]

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

Re: Newby : moving/renaming files loses version information?

From: Laine Stump
Subject: Re: Newby : moving/renaming files loses version information?
Date: 16 May 2001 08:43:11 -0400
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

"Hondros, Constantine" <address@hidden> writes:

> Does moving / renaming a file in CVS necessarily mean that the "new" file
> ends up at version 1.1?

If you do it in the way you describe (which is the only way that I
know about to do it without directly frobbing the repository) then

> I followed the instructions at the (excellent) red-bean CVS tutorial thusly
> :
> floss$ mv oldname newname
> floss$ cvs remove oldname
> floss$ cvs add newname
> floss$ cvs ci -m "renamed oldname to newname" oldname newname
> and found that the "newname" file started at version 1.1. 
> Is this situation avoidable?

Yes, if you're willing to move things around in the repository itself,
and if you're willing for the resulting file to show up in the old
location when you do a checkout based on an old date or tag. Just do this:

1) in the repository, do "cp oldname,v newname,v"
2) in a work directory, do "rm oldname; cvs remove oldname; cvs commit"
3) Still in the work directory, do "cvs update" to get a working copy of 

reply via email to

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