On Wed, Jul 7, 2010 at 13:21, Oğuz Çavlı <oguzcavli_at_gmail.com> wrote:
> Hi,
>
> I want my business users do not deal with any repository functionality. All I want to have an automatic lock on files (*.txt) whenever a business user edits it and other users won't be able to edit the file if they do not update their source.
>
> I google all over but all I have is the svn:needs-lock property.
>
> http://www.orcaware.com/svn/wiki/Automatic_lock-modify-unlock link seems to have a solution but couldn't make it work yet.
>
> Is it a silly question and there is an easy way of doing it?
There is no way to do it. Every application which could possibly edit
the files would need to have a mechanism by which an svn lock could be
issued every time the file is touched. This goes against the core
concepts of Subversion.
The closest you can get is to force svn:needs-lock on every file,
which will mark the files read-only in the user's WC. But there are
plenty of ways to get around that too and confuse things even more in
the process.
Neither possible nor practical. Your users will have to gain at least
a passing understanding of what they're doing, or perhaps Subversion
is not the right tool for your needs. WebDAV autoversioning with
Subversion may work for you, but there's still no locking so users
could interfere with each other.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2630560
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-07-07 19:34:36 CEST