Make a file read-only for other persons after being check out by me in SVN. How? -


i new svn. colleague able checkout file editing it. leads conflict when tries commit changes has made file.

what want is, if changes file, file should read-only other persons trying edit it. know particular file being used other person.

how can configure on subversion ? has done on clients or configuration on server enough ? please out in steps achieving this.

you can mark file needs-lock in repository:

svn propset svn:needs-lock "*" myfile.doc svn commit 

then next time updates file become read-only in checkout. in order edit need lock it:

svn lock mfile.doc 

which registers have file locked in repository: you'll see k in svn status , they'll see o mean else has locked file. once commit, or svn unlock you'll release lock.

as Álvaro comments, though, should avoid setting locking unless need it. use binary files svn cannot merge.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -