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

Re: [TSVN] Source Control integration in commit mailer?

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-07-29 18:56:37 CEST

Josha Foust wrote:
> Has anyone taken the source control integration features that TortoiseSVN
> provides and made the SVN commit mailer script parse the log message for
> bug ids and turn them into urls? That would be useful to people who don't
> often look at the log history in TSVN, but do read the commit log emails.
>
> I don't know how easy that would be on a windows platform where the
> scripts are batch files (correct?), but under linux they are perl scripts,
> so I won't think it would be too hard. I might even be able to do it
> myself, if I can find the time. I'll have to look at the integration spec.

Have a look at http://commitmessage.tigris.org
That's a project dealing only with commit message/mailer scripts. And it
works well on windows too.

Maybe you can ask them to implement this kind of feature.

> The hardest part looks to be walking up the affected paths to find the
> properties. Which brings up the question, what is suppose to happen if you
> commit multiple directories with different bugtraq properties? How does
> TSVN deal with it?

TSVN reads the properties from the folder you selected when you started
the commit (or the log, repobrowser, ...). If there are no properties
there, it walks upwards and tries those folders until it reaches the
root of the working copy.

The script from http://commitmessage.tigris.org can be configured to
only include the common root of all changed paths in the subject line of
the mail (to reduce the subject line length). So I would suggest to use
just that root and look there for those props.
I know that's not perfect, but the project properties aren't either.
It's just a workaround because Subversion doesn't have a per-project
configs (at least not ones that are stored in the repo itself).

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Jul 29 18:58:34 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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