Re: Tortoise CVS - Files not set read-only on checkout

"Cuff, Mike" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.tortoisecvs.user
Message-ID <DA309CAB0F970D4EB22F838FCD8BB7D061C0679A26@GVW1115EXC.americas.hpqcorp.net>
Hello Arthur,

Thanks for the quick response, I've upgraded our Windows CVS Server to 2.5.04 (Zen) Build 3510 and re-run test using TortoiseCVS 1.10.10.  As expected, the test failed, I say as expected as the email from Torsten implies that it won't work unless the version of Tortoise is built with #define MARCH_HARE_BUILD set. 

Before looking into obtaining a copy of Tortoise compiled with this setting, I asked my colleague Alan Dunkley to perform a similar test using a Linux Client. Issuing the following commands to a Linux server worked fine, e.g. test.txt was read-only. However issuing the same commands to a Windows CVS server resulted in test.txt being read-write.

mkdir test1 test2
cd test1
cvs checkout cvs-test
cd cvs-test
cvs watch on test.txt
cd ../../
cd test2
cvs checkout cvs-test
ls -l cvs-test

I have no idea if this is due to the Windows server requiring a configuration change, its currently running with default settings. Something I will look into later. Any idea's would be appreciated.

Thanks
Mike

-----Original Message-----
From: Arthur Barrett [mailto:arthur.barrett-qn/[email protected]] 
Sent: 03 September 2009 22:12
To: Cuff, Mike; tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: RE: [TortoiseCVS] Tortoise CVS - Files not set read-only on checkout

Hi Mike,

> CVS server version: Concurrent Versions System 
> (CVSNT) 2.5.04 (Zen) Build 3236 ()

We did just recently release some important updates to this old release,
you may want to consider upgrading.  In particular this re-release
supports HPUX pa-risc and itanium servers:
http://cvsnt.org/pipermail/cvsnt/2009-August/032311.html

> I am experimenting TortoiseCVS, creating modules 
> with the "Checkout read-only" option ticked.  

I think this is some of the code we submitted and Torsten kindly
integrated - it looks like you have found a problem with it (probably
either because it was originally tested on 2.5.03 server, there is a
compatibility problem between 2.5.03 client and 2.5.04 server, or
something got missed in Tortsten's usually flawless integration).

However the 'usual' purpose of this feature is to enforce either
'co-operative' locking or 'reserved' locking - where developers are
either required to 'cvs edit' a file before working on it or required to
exclusively 'cvs edit' a file before working on it.  The server must be
involved in these tasks so it is NOT possible for a single checkbox on
the TortoiseCVS client to enable it - you need to enable the policy on
the server and set each file to the correct mode, eg:

 CVSROOT=:sspi:evs-teamserver:/cvs-repository/dtcs
 In D:\PB Projects\testlib5: 
 "cvs.exe" update -kvx test.bas

 CVSROOT=:sspi:evs-teamserver:/cvs-repository/dtcs
 In D:\PB Projects\testlib5: 
 "cvs.exe" -q commit -f -m "change file mode" test.bas
 
The CVSNT/TortoiseCVS ecosystem has all the freedoms of GPL software,
but that doesn't make learning it any easier - which is why we provide
books and training etc:
http://march-hare.com/cvsnt/features/book/en.asp

We have a few differences in our own TortoiseCVS development tree for
CVS Suite, and I have been trying to package them up for Torsten for
some time - looks like it'll be another couple of months though...  For
those interested: I think the 'bug' in the watches from Mikes trace is
this line:

  In D:\PB Projects\testlib5: 
  "cvs.exe" -q watch on
  CVSROOT=:sspi:evs-teamserver:/cvs-repository/dtcs
 
Shouldn't that be "cvs watch on readonly" ?  I have a vague recollection
that CVSNT 2.5.03 assumed this for 'cvs watch' but 2.5.04 didn't
(because otherwise it was impossible to have a watch that wasn't a
readonly watch).

Regards,


Arthur Barrett
Product Manager



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.