Perforce File Locked By Departed User

后端 未结 4 1532
迷失自我
迷失自我 2020-12-29 05:12

I have a file that is locked/checked out exclusively by a user who is no longer with the company. I need to make changes and want to know how to \"steal the lock\".

4条回答
  •  抹茶落季
    2020-12-29 05:40

    You have three choices, and if you don't know the user's password all three will require an admin.

    1. p4 unlock -f filename
      • this will only work if you are an admin. Also, it will not work on files with a +l filetype, such as binary+l—in such a scenario it will need to be reverted.
    2. With the user's password (get a p4 admin to clear it out if no one knows what it is), use a command like the one raven suggested:

      p4 -c theirclient -H theirhost -u theiruser -p theirpassword revert -k filename

    3. Or without the password, get an admin to use this sequence:

      
      $ p4 login theiruser
      User theiruser logged in.
      $ p4 -c theirclient -H theirhost revert -k filename
      

提交回复
热议问题