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

Re: Getting the bugtraq value froma revision

From: David Weintraub <qazwart_at_gmail.com>
Date: 2005-08-08 05:05:17 CEST

On 8/5/05, Ayende Rahien <Ayende@ayende.com> wrote:
> I'm using the bugtrraq set of properties, and I wonder how can I get just
> the bugtraq id number for a revision.
> Svnlook log gives me the bugtraq:message & bugtraq id, but I can't find a
> way to get just the id number.

That would involve parsing the log output. In Unix, you can pass this
output as input to another command. For example, let's say your
bugtraq:message property said something like this:

Fixed Defect ID #%BUG%.

You can send the output to a command that looks for the lines that
start with "Fixed Defect ID #". Then, remove that string from the
output. In Unix, this could be done via the "sed' command.

You could also create a "post-commit" hook that will attach a revision
property that contains the bug number. Although initially, this is a
bit trickier, it will make it easier to find bug number that was fixed
by this revision.

Of course, to find the bug number, you'd first parse the output of the
"svnlook log" command to find the line that contains the bug number.

David Weintraub
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 8 05:06:59 2005

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.