info-cvs
[Top][All Lists]
Advanced

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

Re: File Locking with CVS


From: Noel Yap
Subject: Re: File Locking with CVS
Date: Mon, 29 Apr 2002 15:53:00 -0700 (PDT)

--- address@hidden wrote:
> You could write a perl script that would take a file
> name and do
> a "cvs editors" on it.  If there were any, it could
> list who is
> editing the file and end, and if there were none it
> could do a
> "cvs edit".  

There's a race condition here in which there's a small
chance of more than one person succeeding in editing
the file(s) and hence the reason for the advisory
locks patch (read on).

> You might find something useful in the
> "cvs edit -c"
> patch in the Renegade CVS Sourceforge project, but I
> don't have the
> URL, Sourceforge's search isn't working right now,
> and I don't
> remember exactly what it does.

"cvs edit -c" is exactly what you describe above.  The
caveat is that anyone could do a plain "cvs edit" or
"cvs edit -f" to bypass or override the check (unless
one patched the patch).

Noel



__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com



reply via email to

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