Discussion:
How to change revision number for all files of a project?
Ben Stover
2009-12-09 18:56:18 UTC
Permalink
After adding some files to a certain project they are listed with revision number 0
while the other (and still valid) files in CVS repository are labelled 1.7

How can I replace the revision number of the newly added files with a number of the already existing files 1.7?

Alternatively: How can I tag ALL current files of a project with the same revision number?

Ben
Denniston, Todd A CIV NAVSURFWARCENDIV Crane, Code JSXN
2009-12-10 19:53:21 UTC
Permalink
Post by Ben Stover
After adding some files to a certain project they are listed with revision number 0
while the other (and still valid) files in CVS repository are labelled 1.7
How can I replace the revision number of the newly added files with a number of the already existing files 1.7?
http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=change+revision&submit=Search!&idxname=info-cvs&max=20&result=normal&sort=score

http://lists.gnu.org/archive/html/info-cvs/2007-10/msg00074.html
http://lists.gnu.org/archive/html/info-cvs/2007-10/msg00082.html
http://lists.gnu.org/archive/html/info-cvs/2007-10/msg00072.html
Post by Ben Stover
Alternatively: How can I tag ALL current files of a project with the same revision number?
cvs checkout project
cd project
cvs tag my1_7tag
#IIRC '.' cant be used in tag names.
http://ximbiot.com/cvs/manual/
http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_4.html#SEC48

I highly suggest grabbing a copy of
http://ftp.gnu.org/non-gnu/cvs/source/stable/1.11.23/cederqvist-1.11.23.html.tar.bz2
or
http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cederqvist-1.12.13.html.tar.bz2
as appropriate for the version you are using, to keep in your bookshelf.
Post by Ben Stover
Ben
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
http://www.crane.navy.mil/custfeedback
Larry Jones
2009-12-11 19:36:03 UTC
Permalink
Post by Ben Stover
After adding some files to a certain project they are listed with
revision number 0
That's interesting -- revision numbers should start at 1.
Post by Ben Stover
How can I replace the revision number of the newly added files with a
number of the already existing files 1.7?
Don't. Revision numbers are for internal CVS use. You should never
care what they are.
Post by Ben Stover
Alternatively: How can I tag ALL current files of a project with the
same revision number?
You said the magic word: tag. You should *tag* the files with a
meaningful label and ignore the revision numbers. For example:

cvs tag Rev_1_7
--
Larry Jones

These things just seem to happen. -- Calvin
Loading...