名称

svn unlock — 解锁工作副本路径或URL。

概要

svn unlock TARGET...

描述

Unlock each TARGET. If any TARGET is locked by another user or no valid lock token exists in the working copy, print a warning and continue unlocking the rest of the TARGETs. Use --force to break a lock belonging to another user or working copy.

选项

--force
--targets FILENAME

例子

解锁工作副本中的两个文件:

$ svn unlock tree.jpg house.jpg
'tree.jpg' unlocked.
'house.jpg' unlocked.

解锁工作副本的一个被其他用户锁定的文件:

$ svn unlock tree.jpg
svn: 'tree.jpg' is not locked in this working copy
$ svn unlock --force tree.jpg
'tree.jpg' unlocked.

没有工作副本时解锁一个文件:

$ svn unlock http://svn.red-bean.com/repos/test/tree.jpg
'tree.jpg unlocked.

更多细节见第 8 节 “锁定”