Subversion Complete Reference
Name svn lock — Lock working copy paths or URLs in the repository, so that no other user can commit changes to them.
Synopsis svn lock TARGET...
Description Lock each TARGET. If any TARGET is already locked by another user, print a warning and continue locking the rest of the TARGETs. Use --force to steal a lock from another user or working copy.
Alternate Names None
Changes Working Copy, Repository
Accesses Repository Yes
Options --targets FILENAME --message (-m) TEXT --file (-F) FILE --force-log --encoding ENC --username USER --password PASS --no-auth-cache --non-interactive --config-dir DIR --force
Examples Lock two files in your working copy:
$ svn lock tree.jpg house.jpg 'tree.jpg' locked by user 'harry'. 'house.jpg' locked by user 'harry'. Lock a file in your working copy that is currently locked by another user: $ svn lock tree.jpg 234