[cvsnt] Lock a particular Revision

Arthur Barrett arthur.barrett at march-hare.com
Fri Dec 28 06:10:58 GMT 2007


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.


Sachin,


> *but i could not able to get mode kx
> 
> can i get detail steps to lock the file. I am using Windows 
> and CVSNT 2.5.03

If the file is already in CVSNT then:
D:\>workspace>cvs -d :pserver:user at host:/Moveo co Project
D:\>workspace>cd Project
D:\>workspace>Project>cvs up -k+x A.txt
D:\>workspace>Project>cvs ci -f -m "new mode" A.txt

To set the default for new files then use cvswrappers.

Once 'x' mode is on you will need to do this to change a file:
D:\>workspace>cvs -d :pserver:user at host:/Moveo co Project

next
D:\>workspace>cd Project
D:\>workspace>Project>cvs edit A.txt
D:\>workspace>Project>A.txt

a notepad opened .. and i edit few lies. Then

D:\>workspace>Project>cvs commit -m "these many changes i did" A.txt
Checking in A.txt;
/Moveo/Project/A.txt,v  <--  A.txt
new revision: 1.9; previous revision: 1.8
done



Regards,


Arthur


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