info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query on Strict Lock commit


From: Noel L Yap
Subject: Re: query on Strict Lock commit
Date: Wed, 22 Aug 2001 10:17:15 -0400

It sounds like you have been using "cvs admin -l"?  I'm not familiar with this
"workaround" or any other locking mechanism that looks like what you describe
(my patches are for advisory locking and IIRC "cvs edit" occurs on a per file,
not a per version, basis).

I'm cc'ing the mailing list so hopefully someone else can help you.

Noel

PS
In the future, please email the mailing list.

Hi Noel,

We have been using exclusive locking in our company for a while. I have just
imported a tree (under cvs) the problem is that while checking the file
after making changes the file seem to have two versions locked 1.1 and 1.1.1
for e.g., at commit time.
I ran cvs log  and saw that cvs has only one version locked i.e.,1.1

When importing the tree I used the command on the cvshome.org website.

cvs import -m "Imported sources" . yoyo start
(I did do the cvs init in the CVSROOT dir before doing the import though.)

(. b/c it is checked in at the very top)

I would appreciate your help in this regrds

-Adnan

-----Original Message-----
From: Noel L Yap [mailto:address@hidden
Sent: Monday, September 18, 2000 3:00 PM
To: address@hidden
Cc: address@hidden
Subject: Re: [Info-cvs] Strict Locking patches etc






address@hidden on 2000.09.18 16:01:05
>I have been browsing the egroups message boards/rcvs @sourceforge.net.
>What I need to ask you is firstly I need  the patches for the strict
>locking, where can I download them from, I only see the patches for the
>patches for the/ which ones do I need. Also Is there a way with the "cvs
>edit" to know if the file is already locked by a user(or include a swtitch
>with cvs status to include this feature if not already there).
>I had been using the admin -l here but need to switch to either rcs
>(dont want to because of the features that cvs provides you with) or to
stay
>with cvs if there is some feature that can allow me to have a error free
>strict locking. Also is there some way to to remove the question which cvs
>asks if you try to use cvs admin -l on a file that is already locked by
>another user(Do you want to break the lock?) or have a status which can
tell
>me about the locks.
>
>I appreciate your help in this regards,

Take a look at the patches for "cvs edit -c", "cvs edit -f", and "cvs ci
-c".
They're not exactly what you're asking for, but they're close.  CVS has no
real
strict locking.  What these patches do is mimic locking (eg "cvs edit -c"
will
abort if there exists another edit on the file(s) and "cvs ci -c" will abort
if
the user doesn't have a valid edit on the file(s)).  "cvs edit -f" allows
users
to override an "edit -c" in their .cvsrc file.

The assumption that these patches make is that developers respect the
groups'
procedures.  If it's deemed that users should never "cvs edit -f" certain
files,
and you find that they do (and that it causes problems for others), they
need
some disciplining.

Noel



This communication is for informational purposes only.  It is not intended
as
an offer or solicitation for the purchase or sale of any financial
instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.




This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]