[cvsnt] Safe reserved edit sequence

Gerhard Fiedler lists at connectionbrazil.com
Fri Jun 18 12:45:43 BST 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.


Hi all,

I have a script to edit a number of binary files. The sequence I'm using is
edic -c, update, edit (I use read-only checkouts).

This sequence seems to be necessary, because
1- the first edit -c reserves the files
2- the update then makes sure they are up to date (if I ran the update
before the edit -c there is a small window of opportunity for a commit by
someone else between the update and the then following edit -c)
3- the final edit makes sure no files are read-only.

Do I see this correctly, or am I missing something?

Specifically, Tortoise uses a simpler sequence (update, edit -c). Is this
sequence safe?

Thanks,
Gerhard



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