Closed Bug 999668 Opened 11 years ago Closed 11 years ago

We don't linkify the alternative ssh remote syntax

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dylan, Assigned: dylan)

Details

Attachments

(1 file, 2 obsolete files)

Git supports a protocol-less (non-URI) syntax for ssh remotes, and we don't linkify those.
Assignee: nobody → dylan
Status: NEW → ASSIGNED
Attached patch bug-999668.patch (obsolete) — Splinter Review
Linkify non-URI git remotes.
Attachment #8410511 - Flags: review?(glob)
Comment on attachment 8410511 [details] [diff] [review] bug-999668.patch Review of attachment 8410511 [details] [diff] [review]: ----------------------------------------------------------------- it would be easier and quicker to make the |ssh://| part of the current git.m.o regex optional instead of creating a near-identical block.
Attachment #8410511 - Flags: review?(glob) → review-
Attached patch bug-999668-v2.patch (obsolete) — Splinter Review
I was uncomfortable making a change to an existing regex, so I wrote a test to make myself comfortable. Note that the regex matches invalid combinations of : and /, such as ssh://gitolite3@git.mozilla.org:bugzilla/bugzilla.git or gitolite3@git.mozilla.org/bugzilla/bugzilla.git
Attachment #8410511 - Attachment is obsolete: true
Attachment #8411912 - Flags: review?(glob)
Comment on attachment 8411912 [details] [diff] [review] bug-999668-v2.patch Review of attachment 8411912 [details] [diff] [review]: ----------------------------------------------------------------- the regex looks fine, but there's quite a few issues with your test script that i want to see addressed if it's to go into the tree. ::: extensions/BMO/t/bug_format_comment.t @@ +1,1 @@ > +#!/usr/bin/perl -T all files need a license header @@ +24,5 @@ > + > +# svn > +r2424 > + > +# bzr commit, TODO now is the right time to do this TODO :) @@ +39,5 @@ > +$bmo->bug_format_comment({ regexes => \@regexes }); > + > +ok(@regexes > 0, "got some regexes to play with"); > + > +for my $re (@regexes) { s/for/foreach/ @@ +59,5 @@ > + '<a href="http://git.mozilla.org/?p=bugzilla/bugzilla.git;a=commit;h=eab44b1">36f56bd..eab44b1 [github] withuri -> withuri</a>', > + '<a href="http://git.mozilla.org/?p=bugzilla/bugzilla.git;a=commit;h=eab44b1">36f56bd..eab44b1 [github] nouri -> nouri</a>', > +); > + > +for my $link (@links) { s/for/foreach/
Attachment #8411912 - Flags: review?(glob) → review-
License, taint mode, bzr test case and stylistic change applied.
Attachment #8411912 - Attachment is obsolete: true
Attachment #8413577 - Flags: review?(glob)
Comment on attachment 8413577 [details] [diff] [review] bug-999668-v3.patch Review of attachment 8413577 [details] [diff] [review]: ----------------------------------------------------------------- r=glob
Attachment #8413577 - Flags: review?(glob) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git b2eb600..4543712 master -> master And the following will work when this is pushed :-D To gitolite3@git.mozilla.org:webtools/bmo/bugzilla.git b2eb600..4543712 master -> master
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Extensions: BMO → Extensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: