Re: [viewvc-users] Need to configure url with bug tracker

"Vikas T.R." <[email protected]> Tue, 3 Jul 2012 23:21:41 -0700 (PDT)
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <[email protected]>
Hi Michael,
 
Thanks for the information. We are using 1.1.2 version and I will work with the team to get it upgraded to 1.1.5.
 
Thanks
Vikas


________________________________
From: C. Michael Pilato <[email protected]>
To: Vikas T.R. <[email protected]> 
Cc: [email protected] 
Sent: Tuesday, July 3, 2012 6:53 PM
Subject: Re: [viewvc-users] Need to configure url with bug tracker

On 07/03/2012 01:05 AM, Vikas T.R. wrote:
> Hello,
>  
> We use Subersion and ViewVC for browsing the Subersion repositories. I would
> like to configure ViewVC to display the links for the bug tracker number
> that is used. Right now, the bug tracker number is shown and one has to go
> bug tracker page, enter the number to get the details.
>  
> How to configure ViewVC to have links for the bug tracker number??

ViewVC 1.1.14 was the first to support user-defined log message markup
rules.  (ViewVC 1.1.15 is the latest release, though.)  So if you're running
an older version of the software, you'll need to upgrade to get this feature.

Once you have the required version of ViewVC, configuration is pretty easy.
I've included below a snippet from the viewvc.conf.dist file which
describes the configuration option related to this feature:

## custom_log_formatting: Specifies mappings of regular expressions to
## substitution format strings used to URL-ize strings found in
## revision log messages.  Multiple mappings (specified as
## REGEXP:FORMATSTRING) may be defined, separated by commas.
##
## NOTE: Due to a limitation of the configuration format, commas may
## not be used in the regular expression portion of each mapping.
## Commas "in the raw" may not be used in the format string portion,
## either, but you can probably use the URI-encoded form of the comma
## ("%2C") instead with no ill side-effects.  If you must specify a
## colon character in either the regular expression or the format
## string, escape it with a preceding backslash ("\:").
##
## Example:
## custom_log_formatting =
##    artf[0-9]+ : http://example.com/tracker?id=\0,
##    issue ([0-9]+) : http://example.com/bug?id=\1&opts=full%2csortby=id

In the example above, the string "artf123" found in a log message would be
rendered as a link to:

  http://example.com/tracker?id=artf123

The string "issue 14" would be a link to

  http://example.com/bug?id=14&opts=full%2csortby=id

-- 
C. Michael Pilato <[email protected]>
CollabNet  <>  http://www.collab.net/  <>  Enterprise Cloud Development

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2974769

To unsubscribe from this discussion, e-mail: [[email protected]].