On Jun 15, 2009, at 09:36, Ramachandran, Vishwanath(IE10) wrote:
> Ryan Schmidt wrote:
>
>> On Jun 15, 2009, at 09:05, Ramachandran, Vishwanath(IE10) wrote:
>>
>>> Would it be possible to also show the message entered by the person
>>> who locked the file?
>>> I.e. what I was looking for is When locking a file a user can enter
>>> a comment (similar to commit message) for example "Review of file".
>>> I would like to see this message when a user tries to lock a file
>>> which is already locked by another user.
>>
>> I would imagine this is possible to do. When creating a lock, the
>> user is supposed to enter a message describing the lock (using the -m
>> flag). You can view that message using "svn info" on the path of the
>> file that is locked, or, I believe, also using "svnlook lock" on the
>> server side. So I expect you can incorporate that into your script
>> that outputs a message to the user. If you need help doing that, it
>> would be easiest if you would show us your existing script.
>
> Thanks for the reply. Please find the script attached pre-lock with
> this
> mail.
> You could help me out with your points suggested.
Try the attached version of the pre-lock hook. You'll need to put the
attached lockcomment.xslt somewhere and edit its path into the pre-
lock script, and you'll need to make sure xsltproc is installed.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362260
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-15 20:35:27 CEST