On Tue, Oct 19, 2010 at 09:45, Rajnish Kumar Singh
<Rajnish.K.Singh_at_kpitcummins.com> wrote:
> Hi Berin,
>
>
>
> I have to say that the format of your mail was perfect. :)
>
> I have gone through the link, but unable to find any commands there… or the
> way to implement the locking mechanism.
>
> Might be I am missing something…
>
You need to hook scripts on the server:
Pre-lock - reject any lock without a message (just like rejecting a
commit in pre-commit with no log message).
Pre-commit - reject any added file without svn:needs-lock set, or any
commit which deletes svn:needs-lock from an existing file.
A universal locking requirement, however, is rarely required with
Subversion - unless you're managing strictly binary/un-mergeable
files. Subversion works better (easier) if you do not lock plain text
items. If you're coming from another system which did perform/require
exclusive locking on all files, now is time to get accustomed to doing
things the modern way, the copy-modify-merge model.
> From: Loritsch, Berin [mailto:bloritsch_at_dtri.net]
> Sent: Tuesday, October 19, 2010 5:36 PM
> To: users_at_tortoisesvn.tigris.org
> Subject: RE: svn modification issue
>
>
>
> ________________________________
>
> From: Rajnish Kumar Singh [mailto:Rajnish.K.Singh_at_kpitcummins.com]
>
> Can I do SVN configuration modification for some repositories.
>
>
>
> 1) Mandatory lock [No one should be able to modify the file unless they
> lock it ?]
>
> 2) Comments for lock mandatory [One has to input comments to lock the
> file.]
>
>
>
>
>
> (I appologize for the poorly formatted message, outlook wouldn't let me do
> it right despite the settings I had).
>
>
>
> May I refer you to this:
>
>
>
> http://svnbook.red-bean.com/en/1.4/svn.advanced.locking.html
>
>
>
> The manual is referring to the command line version of SVN, but TSVN is
> merely another way to use the same features.
>
>
>
> To satisfy #1, see
> http://svnbook.red-bean.com/en/1.4/svn.advanced.locking.html#svn.advanced.locking.lock-communication
>
>
>
> To my knowledge, I don't think there is any way to enforce #2. That's
> always better done by culture anyway. When people are forced to write
> comments you can get a bunch of useless comments like "x" or "locking so I
> can work on it" to satisfy the dialog box so the person can get back to
> work. It requires time to get everyone on the same page as to what actually
> makes a helpful comment.
>
> Confidentiality Note: The information contained in this message, and any
> attachments, may contain proprietary and/or privileged material. It is
> intended solely for the person or entity to which it is addressed. Any
> review, retransmission, dissemination, or taking of any action in reliance
> upon this information by persons or entities other than the intended
> recipient is prohibited. If you received this in error, please contact the
> sender and delete the material from any computer.
>
> This message contains information that may be privileged or confidential and
> is the property of the KPIT Cummins Infosystems Ltd. It is intended only for
> the person to whom it is addressed. If you are not the intended recipient,
> you are not authorized to read, print, retain copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message. KPIT Cummins Infosystems Ltd. does not accept any liability for
> virus infected mails.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2673470
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-10-19 15:58:38 CEST