You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Talley, Brooks" <br...@frnk.com> on 2004/05/04 23:14:26 UTC

Getting version details from post-commit?

Hi, everyone.  I'm really enjoying subversion, but I've run into a bit
of a wall in my post-commit script.
 
Right now, the script sends email to a bunch of people who need to know
that a version has been committed.  So far so good.  However, I would
really love the email to include who *did* the commit, and what the
version log message was, rather than just" version 149 was committed."
 
Any pointers on how I could achieve that?
 
Thanks
-b

Re: Getting version details from post-commit?

Posted by Ben Collins-Sussman <su...@collab.net>.
Branko Čibej wrote:

> Talley, Brooks wrote:
> 
>> Hi, everyone.  I'm really enjoying subversion, but I've run into a bit 
>> of a wall in my post-commit script.
>>  
>> Right now, the script sends email to a bunch of people who need to 
>> know that a version has been committed.  So far so good.  However, I 
>> would really love the email to include who *did* the commit, and what 
>> the version log message was, rather than just" version 149 was 
>> committed."
>>  
>> Any pointers on how I could achieve that?
> 
> 
> Oh, yes. :-)
> 
> Look into the tools/hook-scripts directory in the Subversion source 
> tree. You;ll find commit-email.pl and propchange-email.pl; and if you 
> prefer an all-in-one solution using the Python bindings, there's 
> mailer/mailer.py.

Or, if you don't want to mess around with language bindings and APIs, 
just use the 'svnlook' binary to examine the repository.


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

Re: Getting version details from post-commit?

Posted by Branko Čibej <br...@xbc.nu>.
Talley, Brooks wrote:

> Hi, everyone.  I'm really enjoying subversion, but I've run into a bit 
> of a wall in my post-commit script.
>  
> Right now, the script sends email to a bunch of people who need to 
> know that a version has been committed.  So far so good.  However, I 
> would really love the email to include who *did* the commit, and what 
> the version log message was, rather than just" version 149 was committed."
>  
> Any pointers on how I could achieve that?

Oh, yes. :-)

Look into the tools/hook-scripts directory in the Subversion source 
tree. You;ll find commit-email.pl and propchange-email.pl; and if you 
prefer an all-in-one solution using the Python bindings, there's 
mailer/mailer.py.

-- Brane



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