[Top][All Lists]

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

Re: cvs admin -l

From: Larry Jones
Subject: Re: cvs admin -l
Date: Fri, 31 Jan 2003 12:14:32 -0500 (EST)

Mohamed Metwaly writes:
> I am trying to do reserved checkouts, I tried "cvs
> admin -l file_name", although this is not exactly what
> I want, I found out that another user can UNlock a
> file that was not locked by him.
> That is:
> user1: cvs admin -l file1
> OK
> user2: cvs admin -u file1
> OK
> Is this ok??

You seem to have a fundamental misunderstanding.  admin -l does not lock
a file, it locks a revision of a file.  You can have lots of different
revisions of a file locked at the same time, either by the same user or
by different users.  admin -u without a specific revision unlocks "the"
revision you have locked.  If you don't have any revision locked, or
have more than one revision locked, it fails.  If you *do* specify a
specific revision to unlock, then it will unlock it reguardless of
whether you are the locker or someone else is, but it will warn you if
you are not the locker.  Your test was apparently defective, but it's
hard to know exactly why since you didn't show us exactly what commands
you entered and the exact responses you got (or, if you did, you're not
using standard CVS).

-Larry Jones

I thought my life would seem more interesting with a musical
score and a laugh track. -- Calvin

reply via email to

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