Git Product home page Git Product logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
Well. That's certainly weird. Will look into it.

Original comment by [email protected] on 25 Mar 2011 at 3:49

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
My perl & regex isn't great, but as a personal workaround, commenting out the 
line in Extension.pm in the _filter_br function appears to generate the right 
link:


sub _filter_br {
    my ($value) = @_;
    $value =~ s/\r//g;
    $value =~ s/\s+$//sg;
#    $value =~ s/\n/<br>/sg;
    return $value;
}

Original comment by [email protected] on 25 Mar 2011 at 1:53

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
That change fixed the link for me (also using Bugzilla 4.1.1), but then it no 
longer displays newlines within the commit message.  Perhaps if you change the 
CSS for vcs_commit_message to use "white-space: pre", then the br filter would 
not be necessary.  For my own installation, as a temp fix I changed the before 
mentioned br filter to this:

sub _filter_br {
    my ($value) = @_;
    $value =~ s/\r//g;
    $value =~ s/\s+$//sg;
    $value = "<pre>$value</pre>";
#$value =~ s/\n/<br>/sg;
    return $value;
}

Also, in case this helps speed up your troubleshooting...  in 4.1.1 I guess it 
converts "bug ###" into a link.  The link it converts it to looks like this 
(without your br filter applied):

<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ............"
   href="show_bug.cgi?id=62">Bug 62</a>

That's why it is messing things up, with the link like it is, the br filter 
ends up inserting br tags in the middle of the <a ..> tag.  Hope that helps...

Original comment by [email protected] on 27 Apr 2011 at 11:04

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
[deleted comment]

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
Oops my solution makes the commit message really long on long commit messages 
with no newlines.  Better solution:  use style of "white-space: pre-line" for 
style of the vcs_commit_message.

Original comment by [email protected] on 27 Apr 2011 at 11:34

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
Here's a patch this fixes this issue, and also some other minor changes. It was 
tested against 4.4, and should work on 4.2 too. Not sure about 4.0 since I 
never used it.

Original comment by sgreen%[email protected] on 23 Apr 2013 at 7:34

Attachments:

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
if i used the patch in #6, do i still have to do the change in #3? 

Original comment by [email protected] on 25 Jul 2013 at 11:28

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
> if i used the patch in #6, do i still have to do the change in #3? 

No. This part does the same thing.

- [% commit.message FILTER quoteUrls(bug) FILTER vcs_br %]
+ [% commit.message FILTER vcs_br FILTER quoteUrls(bug) %]

Original comment by sgreen%[email protected] on 25 Jul 2013 at 11:35

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
but i got TWO weird commits session as pic show. Or this is where the "tested 
against 4.4" is?
my system as below:
svn 1.6.11
bugzilla 4.4
VCS bugzilla extension 0.2
perl v5.10.1
Linux 2.6.32-220.el6.x86_64

Original comment by [email protected] on 25 Jul 2013 at 11:48

Attachments:

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
Have you run checksetup since making the changes in comment #6 to have the 
templates regenerated?

Original comment by sgreen%[email protected] on 25 Jul 2013 at 11:50

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
problem solved.
the reason is i don't know how to use patch file. so, i just simply add '#' in 
the head of line which i want take off. but they are not really commented, so 
there are two commits sessions and a lot of '#' sign.

still thanks sgreen.

Original comment by [email protected] on 26 Jul 2013 at 12:31

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
modified template/en/default/hook/bug/edit-after_custom_fields.html.tmpl
modified template/en/default/vcs/commits.html.tmpl
modified web/style.css
Committed revision 24.                                                         

Original comment by sgreen%[email protected] on 13 Dec 2013 at 11:37

  • Changed state: Fixed

from bugzilla-vcs.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
Issue 20 has been merged into this issue.

Original comment by sgreen%[email protected] on 13 Dec 2013 at 11:38

from bugzilla-vcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.