[cvsnt] Catch-all solution for changing -k modes?

Oliver Giesen ogware at gmx.net
Fri Dec 10 09:09:49 GMT 2004

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

I'm about to write a WinCvs macro for changing the -k mode of selected
files. I want this macro to work both with older and newer CVS/NT
client and server versions. AFAIHU the procedure for doing this has
changed somewhere in between 2.0.51 and 2.0.58 :

Where before I would have done this:

cvs admin -k[whatever] filename
cvs update filename 
(the latter is only to get the new mode displayed, i.e. into the
Entries file)

I would now have to do this (if I understood correctly):

cvs update -k[whatever] filename
cvs commit -f -m"changed k-mode" filename

Is that correct?

Is there maybe some other way that would work both with GNU CVS/older
CVSNT releases and the newer CVSNT? If there isn't, how would I detect
which kind I'm dealing with (I'd rather not hardcode a check against
cvs version output)?


----  ------------------
JID:  ogiesen at jabber.org
ICQ:  18777742	(http://wwp.icq.com/18777742)

More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook