Date: Fri, 03 Mar 2000 10:40:10 -0800
> From: "andy nguyen" <akng...@onebox.com>
>
> I'm totally new to Perforce. Question: how can we lock a branch in
> perforce. I tried to lock it, and P4 came back with a message "locked
> 0 files". Also there is no online help for lock.
if you want to keep anybody from changing it, its probably better to
do a p4 protect and set the branch to read only.
online help on lock says:
$ p4 help lock
lock -- Lock an opened file against changelist submission
p4 lock [ -c changelist# ] [ file ... ]
The open files named are locked in the depot, preventing any
user other than the current user on the current client from
submitting changes to the files. If a file is already locked
then the lock request is rejected. If no file names are given
then lock all files currently open in the changelist number given
or in the 'default' changelist if no changelist number is given.
which doesn't sound quite like what you want, I think.
dave