Great!

But don't forget that there's more than one package around to provide
browsable views on your software repository. For example, besides
WebSVN, there's ViewVC (which handles both SVN and CVS, BTW).
Looks like you'll need code for every possible bug-tracker/viewer
combination.

Best regards,
Marcel Loose.


On Mon, 2009-12-21 at 09:17 -0700, Kristis Makris wrote:
> I think I'm starting to lean towards adding support in the glue
> installer the ability to apply a patch against various versions of
> bug-trackers to add the autolinkification. So that people won't have to
> manually edit bug-tracker code and debug to get it right.
> 
> How does this sound ?
> 
> On Mon, 2009-12-21 at 09:30 +0100, Thorsten Schöning wrote:
> > Guten Tag Debasis Mishra,
> > am Samstag, 19. Dezember 2009 um 08:59 schrieben Sie:
> > 
> > > I am not getting any error as well as i am not able to see any change in 
> > > the
> > > comment section.meaing no link.only text string of the affected files.
> > 
> > I think you should make yourself a little bit familiar with Template
> > Toolkit, Bugzilla's template engine. The documentation is pretty good
> > and easy to understand with some playing around:
> > 
> > http://template-toolkit.org/docs/index.html
> > 
> > >   <pre class="bz_comment_text"
> > >      [% ' id="comment_text_' _ count _ '"' IF mode == "edit" %]>
> > >      [%- wrapped_comment FILTER quoteUrls(bug.bug_id,
> > > comment.already_wrapped) -%]
> > >      [%- text
> > > =text.replace('([0-9]+|NONE)\s+--&gt;\s+([0-9]+|NONE)\s+([^:]+):((.+)/([^/\n]+)?)',
> > >      '<a
> > > href="http://debasism:8082/svn/repos/TAC/list/$3/$4?rev=$1";>$1</a>')
> > > -%]
> > > </pre>
> > 
> > You have to problems: text.replace won't work because the variable
> > text didn't ever get any contents. Look at my mail, the first line of
> > code after the big comment is saving the output of
> > wrapped_comment-line to the variable text, afterwards you can use
> > text.replace.
> > 
> > > [%- text = wrapped_comment FILTER quoteUrls(bug.bug_id) -%]
> > 
> > Your second problem is the line text = text.replace, because the
> > replaced output is just saved in the variable text but never printed.
> > You need a line where the output of your operations or variable is
> > printed, which can be something like [%- text -%] or you can combine
> > it with your text.replace, like I did in my last line:
> > 
> > > [%- text.replace('/<a 
> > > href="http://quellen.potsdam.am-soft.de/wsvn/.+";></a> \(<a 
> > > href="http://quellen.potsdam.am-soft.de/wsvn/.+";>Blame</a>\)', '/') -%]
> > 
> > In this line the output of text.replace is not saved in another
> > variable but printed as html to the template output.
> > 
> > > I am also not getting what $3 and $4 stands for.
> > > suppose my affected file is  *5565 --> 5615 agLite
> > > Platform:branches/aglite/admin/pom.xml*
> > 
> > My mail was just an example for WebSVN. WebSVN works differently than
> > Sventon and you need to adjust the replace text to your needs. My
> > example is maybe a little bit complex because I wanted every
> > information in the SCMBug provided comment to be linked against
> > WebSVN. $3 gets the repository name, in your case "agLite Platform",
> > $4 gets the path to the committed file in the repository, in your case
> > "branches/aglite/admin/pom.xml".
> > 
> > > how this url*-http://debasism:8082/svn/repos/TAC/list/$3/$4?rev=$1"; *will
> > > help me.*
> > > *after parsing will it be converted to this*-
> > > http://debasism:8082/svn/repos/TAC/list/branches/aglite/admin/pom.xml**.
> > > *which i want.*
> > 
> > You would need something like
> > http://debasism:8082/svn/repos/TAC/list/$4. WebSVN needs $3 aka
> > repository name to identify the correct filepath aka $4 and $1 aka the
> > old revision of the file before the commit to show me the file content
> > in that revision.
> > 
> > Mit freundlichen Grüßen,
> > 
> > Thorsten Schöning
> > 
> _______________________________________________
> scmbug-users mailing list
> [email protected]
> http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to