[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: lock message comment

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 15 Jun 2009 13:34:07 -0500

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.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

Received on 2009-06-15 20:35:27 CEST

This is an archived mail posted to the Subversion Users mailing list.