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

Hooks about change log and create privilege

From: Dong Jiwei <dongjiwei_at_keithley.com>
Date: 2007-07-11 07:43:16 CEST

Hi all,

 

         I want to write hooks to do the following things,

                   1. To insert the log information into the committed
script, just like the auto substitution of the keywords.

                            For example, I modified a shell script, and
commit with log message: "Fix the bug when inserting rows into table
oe_order_headers_all, SR number is 35467",

                            I want this message be inserted into the shell
script file after the $ChangeLog$ keywords. Just as the old version control
tool RCS do.

                   2. And I want to control the privilege of create a new
script file in the repository, I want only specific user can do the file
initialization work, other user can only check out the file, modify and
check in.

                            I think this can be judge in the hook
pre-commit, but I don't know how to get the operation status of the TXN, for
the TXN may include several files and directory.

I must get the Add or Modify then can decide to pass the operation or deny.

 

         Is there some one already have hooks that implied the functionality
that I mentioned, would you please send it to me for a reference example?

         Or someone would you please give me some advices about the two
hooks' development.

 

Thank you in advance!!

 

Regards,

 

Roy Dong

_____________________________________________________________________________
Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com
_____________________________________________________________________________
Received on Wed Jul 11 07:49:12 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.