You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Royce Fessenden <rf...@dmp.com> on 2006/08/15 21:27:47 UTC

Adding an Inspection Id to each Log Message.

I would like to be able to add an Inspection Id to each log message so that
we can track when and where the code was inspected.   There would need to be
a way to go back and enter the Id sometime after the initial commit.  A way
to list all code without an inspection Id is also needed. 

 

Is it possible to do what I want?  If so, where can I find more information
to get me started?

 

Royce

 


RE: Adding an Inspection Id to each Log Message.

Posted by Royce Fessenden <rf...@dmp.com>.
Given the larger scope of what I'm doing, the MySQL database looks like what
I need to do.

Thanks for the comments.

Royce

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2006c@ryandesign.com] 
Sent: Tuesday, August 15, 2006 6:38 PM
To: Royce Fessenden
Cc: users@subversion.tigris.org
Subject: Re: Adding an Inspection Id to each Log Message.


On Aug 15, 2006, at 23:27, Royce Fessenden wrote:

> I would like to be able to add an Inspection Id to each log message  
> so that we can track when and where the code was inspected.   There  
> would need to be a way to go back and enter the Id sometime after  
> the initial commit.  A way to list all code without an inspection  
> Id is also needed.
>
>
>
> Is it possible to do what I want?  If so, where can I find more  
> information to get me started?


You can put anything you like into a log message. If you want to  
require an inspection ID, write a pre-commit hook script that rejects  
any commit whose message does not contain the inspection ID. On  
error, print a message to the user advising them to include an  
inspection ID.

If you want to be able to modify a revision's svn:log property (or  
any other unversioned property) after the commit, you can install a  
pre-revprop-change hook to allow this.

There is no way to search log messages, so there is no facility for  
you to find code without an inspection ID. I suggest you set up a  
separate (e.g. MySQL) database in which you have a record for each  
revision. You can write a post-commit hook and a post-revprop-change  
hook that write into this table whenever anybody includes an  
inspection ID in their log message. From this you can determine which  
revisions lack the property.

You could use the database to store more things as well. You could  
put the entire log message into it, for example, so that you could  
then use the database to perform searches on the log messages. You  
could store other unversioned properties there as well.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Adding an Inspection Id to each Log Message.

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 15, 2006, at 23:27, Royce Fessenden wrote:

> I would like to be able to add an Inspection Id to each log message  
> so that we can track when and where the code was inspected.   There  
> would need to be a way to go back and enter the Id sometime after  
> the initial commit.  A way to list all code without an inspection  
> Id is also needed.
>
>
>
> Is it possible to do what I want?  If so, where can I find more  
> information to get me started?


You can put anything you like into a log message. If you want to  
require an inspection ID, write a pre-commit hook script that rejects  
any commit whose message does not contain the inspection ID. On  
error, print a message to the user advising them to include an  
inspection ID.

If you want to be able to modify a revision's svn:log property (or  
any other unversioned property) after the commit, you can install a  
pre-revprop-change hook to allow this.

There is no way to search log messages, so there is no facility for  
you to find code without an inspection ID. I suggest you set up a  
separate (e.g. MySQL) database in which you have a record for each  
revision. You can write a post-commit hook and a post-revprop-change  
hook that write into this table whenever anybody includes an  
inspection ID in their log message. From this you can determine which  
revisions lack the property.

You could use the database to store more things as well. You could  
put the entire log message into it, for example, so that you could  
then use the database to perform searches on the log messages. You  
could store other unversioned properties there as well.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org