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

Enhancement: bugid prefix (useful with Trac)

From: Idan Gazit <idan_at_fastmail.fm>
Date: 2006-06-07 19:32:51 CEST

Hi all,

I am a very happy user of TortoiseSVN, however there is one annoyance
that I would propose fixing with a minor enhancement. It would greatly
benefit those using the Trac project mgmt system
(http://trac.edgewall.com/).

Background
==========

In Trac (and, possibly other such systems), tickets (aka bugs) are
always prefixed by the '#' char, and when displayed by the Trac web
interface, these are automagically linkified so they point at the
appropriate issue number. That is to say, #123 will lead to ticket 123
when clicked.

The problem lies with tortoise's bugtraq field. I've set the following
properties:

bugtraq:numeric = true
bugtraq:message = Tickets affected: #%BUGID%

However some issues close or are associated with more than one ticket.
When this is the case, I would enter "123,124" in the bug id field,
however the resulting append at the bottom of the commit log message
looks like:

Tickets affected: #123,124

This is problematic because the first bugid gets linkified, but the
second does not, because it lacks the # prefix.

What I want to have appear is:

Tickets affected: #123,#124

The Feature Request
===================

What I desire is a new property, call it bugtraq:bugidprefix. If this
property is set, then %BUGID% will be a concatenation of the prefix with
each bug id. Imagine the following:

bugtraq:numeric = true
bugtraq:message = Tickets affected: %BUGID%
bugtraq:bugidprefix = #

Notice how the '#' is gone from the bugtraq:message property. This is
because for every numeric bugid entered, tsvn would spit out a
concatenation of bugtraq:bugidprefix and the entered bug id, resulting
in an appended log message of:

Tickets affected: #123,#124

An Easier/Alternate Solution
============================

An alternate (less elegant, but perhaps easier) solution is as follows:
when there are multiple numeric bugids like "123,124", append each on
their own line as such:

Tickets affected: #123
Tickets affected: #124
...

In this case, there is simply a new bugtraq:message line appended for
each comma-delimited numeric entry in the list.

Please contact me directly at idan AT fastmail DOT fm if you want me to
clarify my intentions further, my aim is to make it as clear as possible
for you (the developers) so that you have as much incentive to implement
this as possible. :)

Thanks again for a wonderful, wonderful app!

Idan
idan AT fastmail DOT fm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jun 7 19:11:35 2006

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.