Pagine

Monday 19 December 2016

SVN tutorial n 23 - lock

The svn lock command locks working copy a path or an Url in the repository so that no other user can commit changes to them.
If any files are already locked by another user, print a warning and continue locking the rest of files. Use the option "--force" to steal a lock from another user or working copy.
The synopsis is:
 svn lock <path>

Examples:

1) lock the files in working copy
 svn lock file1.txt file2.txt fileN.txt
2) lock a file already locked by another user
 svn lock --force file1.txt
3) lock a file via url
 svn lock https://svnrepo/svn/myproject/trunk/file3.txt

No comments:

Post a Comment