Re: Change keywords for already added files
"Arthur Barrett" <arthur.barrett-qn/[email protected]> Mon, 29 Mar 2010 22:12:40 +1100
| Newsgroups | gmane.comp.version-control.cvs.tortoisecvs.user |
|---|---|
| Message-ID | <[email protected]> |
Ben, The 'cvs admin' has no effect on the default behaviour, see the explanation in the manual for cvswrappers. As a general rule: * cvs admin is for developers of CVS only - if you are considering using it you need to read the source code * never modify the RCS files directly - it's a great way to lose all your version history * there is ALWAYS a legal, valid, easy way to do anything that needs doing using the tools provided In CVSNT the keyword options are versioned - so they appear on each revision of each file. This is very important to have a useful SCCM solution - because release branches may need different keyword expansion options than development branches (eg: reserved versioning). The 'cvs admin' keyword commands were designed for when the keyword options were 'per file' and not versioned. Regards, Arthur Barrett -----Original Message----- From: Ben Weatherall [mailto:[email protected]] Sent: Sunday, 28 March 2010 9:54 AM To: tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Glen Starrett; [email protected] Subject: Re: [TortoiseCVS] Change keywords for already added files Hi Glen & Neal, I believe you should also use an 'cvs admin -ko filename' or 'cvs admin -kk filename' command to set the default behavior for future cvs commands. -Ben Weatherall Configuration Manager PDX, Inc. ----- Reply message ----- From: "Glen Starrett" <glen.starrett-qn/[email protected]> Date: Sat, Mar 27, 2010 16:33 Subject: [TortoiseCVS] Change keywords for already added files To: "Neal Harder" <[email protected]>, "tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" <tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> Hi Neal, There is a better way to achieve that, assuming you want to change to the "o" attribute: n cvs update -ko FILENAME n cvs commit -f -m "change keyword options" I know you can do this with the Tortoise GUI using the "command" option, you can't do the "update -ko" through the normal forms. I would just use the command line client though, in this case. Regards, Glen Starrett Technical Account Manager, North America March Hare Software, LLC http://march-hare.com/cvspro/ <http://march-hare.com/cvspro/> 800-653-1501 x803 From: Neal Harder [mailto:[email protected]] Sent: Friday, March 26, 2010 6:26 PM To: tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: Re: [TortoiseCVS] Change keywords for already added files Janis, You can edit the archive directly and modify the flags of the last committed revision. This is of course not recommended by anyone, but will quickly and easily get you what you want. The meta-information for each revision is listed at the top of the archive file. Check the "head" line at the top to see what the head revision is, then scroll down until you find the meta-information for that revision. One of the fields is "kopt" and you'll see the flags next to it, in my case I use "kvx;". Change this to what you want and save the archive. There is a command called "admin" that was originally intended to be able to do this with the "-ksubst" flag, but apparently the makers of CVSNT decided that changing the k-flags wasn't something they wanted to support: http://www.cvsnt.org/manual/html/admin.html As far as I know there is no way to change the k-flags after the origianl "Add" is done, except for the direct edit of the archive as I mentioned above. I would be delighted if somebody knows better than me!! -Neal ----- Original Message ----- From: Janis <mailto:[email protected]> To: tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Sent: Friday, March 26, 2010 3:08 PM Subject: [TortoiseCVS] Change keywords for already added files --> Hello! Is it possible to change keywords after a file has already been added. For example, I have added files with the (default) option to manage keywords normally (-kv), and they already have some update history by now. However, I want to stop keyword updates, to disable them (-o) from now on. Is it possible not losing the history, or I can only remove the file and re-add as a new one with keywords disabled? Thank you, Janis _____ ------------------------------------------------------------------------ ------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _____ _______________________________________________ tortoisecvs-users mailing list tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/tortoisecvs-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ tortoisecvs-users mailing list tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/tortoisecvs-users