Comments (13)
Well. That's certainly weird. Will look into it.
Original comment by [email protected]
on 25 Mar 2011 at 3:49
from bugzilla-vcs.
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.
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.
[deleted comment]
from bugzilla-vcs.
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.
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.
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.
> 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.
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.
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.
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.
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.
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)
- hook.pl assumes multiple projects in one svn repository HOT 5
- Can't locate object method "repository" via package "Git" HOT 3
- 404 error running hook.pl with mercurial v4.0 with Hg HOT 2
- Could not authenticate to server (svn authentication) HOT 10
- sync.pl (Git) is examining all commits all the time HOT 5
- hook.pl & sync.pl not commiting to oracle db correctly
- Running hook.pl causes xmlrpc.cgi to hang at 100% CPU
- Commit output not formatted correctly. HOT 4
- checksetup.pl tell me that I must install VCI module for perl but it is already installed HOT 2
- Bugzilla does not show any change
- Advance search does not work HOT 2
- The 'nanosecond' parameter ("...") to DateTime::new did not pass the 'a positive integer' callback
- Running hook.pl/sync.pl error
- RPC::XML::Client::send_request: HTTP server error
- VCS Integration with Bugzilla on Windows 32 bit Machine with ActiveState Perl Requires AlienSVN for which There is No Available Working Build
- Can't locate object method "simple_request"
- Syntax error in extension.pm
- 'Svn' is not a valid VCS
- Software fails to install with perl v5.18.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugzilla-vcs.