info-cvs
[Top][All Lists]
Advanced

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

RE: custom Keywords?


From: Sergey Gurov
Subject: RE: custom Keywords?
Date: Mon, 12 May 2003 11:36:47 +0400

>1. How can I change the revision numbers for all modules to 
>be, for example,
>2.0? Right now whenever I commit new changes only the second 
>part of the
>revision number changes, say 1.53 -> 1.54 . We have a major release and
>would like to start numbering all version as 2.xxx ...

If you really want to do that simply force commit all you files with
revision number 2.1. But do not forget that revision numbering is for
internal purposes of CVS first of all.

>2. Is it possible to configure CVS to use custom Keywords in 
>addition to the
>standard ones? For example, I would like to use the server 
>name as a keyword
>and substitute it with the physical name of the current server 
>I'm checking
>out files on. Right now I have to run all files through 'sed' 
>after getting
>them from CVS to replace all occurrences of server names with 
>the correct one...

You can't do that directly. But in your case you can use $Name$ keyword
and update with fake branch name equal to your server name and option -f
.
E.g.: cvs update -P -f -r ServerName your.file

Sergey.





reply via email to

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