Closed Bug 304021 Opened 19 years ago Closed 10 years ago

[PatchReader] Extend Patch Viewer functionality to Subversion

Categories

(Bugzilla :: Attachments & Requests, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: shailesh.kochhar, Assigned: timello)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

Bugzilla patch viewer has the ability to view patches in formatted form that is
easier to deal with and handle than raw code. Currently the patch viewer
interfaces with bonsai, cvs and lxr to extract current versions from source
control. It would be beneficial to extend this ability to include subversion and
other version control servers as well.

Reproducible: Always
Status: UNCONFIRMED → NEW
Ever confirmed: true
we sometimes accept patches.
Keywords: helpwanted
I'm willing to work on this, but I don't have any experience with the bugzilla codebase so I'd need to work with someone on it to get going.
Bug 342075 might be related to this, at least from an implementation point of view, as it was suggested by mkanat in comment #3 to implement such functionality using the proposed XML/RPC (Bug 224577) backend for various sorts of feature delegation or interfacing. 
So, more generally this might probably be better described as "standard VCS interface"?
Summary: Extend Patch Viewer functionality to Subversion → [PatchReader] Extend Patch Viewer functionality to Subversion
Attached patch v1 (obsolete) β€” β€” Splinter Review
Assignee: attach-and-request → timello
Status: NEW → ASSIGNED
Attachment #588200 - Flags: review?(wicked)
Attached patch PatchReader SVN support β€” β€” Splinter Review
I will probably going to submit it to rt.cpan.
Attachment #588201 - Flags: review?(wicked)
Attached patch v2 β€” β€” Splinter Review
Attachment #588200 - Attachment is obsolete: true
Attachment #588203 - Flags: review?(wicked)
Attachment #588200 - Flags: review?(wicked)
Comment on attachment 588201 [details] [diff] [review]
PatchReader SVN support

Thanks for this patch! I'm adding it to the PatchReader module and it will be in the next version. If you don't mind, I'll modify the changes as needed to fit into PatchReader and hopefully add some specific tests.

>--- PatchReader-0.9.6/SVNClient.pm	1969-12-31 21:00:00.000000000 -0300
>+++ PatchReader-0.9.7/SVNClient.pm	2012-01-12 20:44:46.000000000 -0200
>@@ -0,0 +1,34 @@
>+# The contents of this file are subject to the Mozilla Public
>+# License Version 1.1 (the "License"); you may not use this file

Any chance you could license this file with Artistic license, because that's the license used for the bulk of the PatchReader. If you want MPL, then would you mind if we do MPL v2 instead because that's what Bugzilla is licensed with these days..

>+# The Initial Developer of the Original Code is Netscape Communications
>+# Corporation. Portions created by Netscape are
>+# Copyright (C) 2003 Netscape Communications Corporation. All
>+# Rights Reserved.

Seriously? Netscape contributed something for this file? :)
Attachment #588201 - Flags: review?(wicked)
(In reply to Teemu Mannermaa (:wicked) from comment #7)
> Comment on attachment 588201 [details] [diff] [review]
> PatchReader SVN support
> 
> Thanks for this patch! I'm adding it to the PatchReader module and it will
> be in the next version. If you don't mind, I'll modify the changes as needed
> to fit into PatchReader and hopefully add some specific tests.

Sure! Feel free to change it if needed!

> 
> >--- PatchReader-0.9.6/SVNClient.pm	1969-12-31 21:00:00.000000000 -0300
> >+++ PatchReader-0.9.7/SVNClient.pm	2012-01-12 20:44:46.000000000 -0200
> >@@ -0,0 +1,34 @@
> >+# The contents of this file are subject to the Mozilla Public
> >+# License Version 1.1 (the "License"); you may not use this file
> 
> Any chance you could license this file with Artistic license, because that's
> the license used for the bulk of the PatchReader. If you want MPL, then
> would you mind if we do MPL v2 instead because that's what Bugzilla is
> licensed with these days..

It can be Artistic license or MPL v2. You choose.

> 
> >+# The Initial Developer of the Original Code is Netscape Communications
> >+# Corporation. Portions created by Netscape are
> >+# Copyright (C) 2003 Netscape Communications Corporation. All
> >+# Rights Reserved.
> 
> Seriously? Netscape contributed something for this file? :)

Haha, nothing at all :)

Thanks wicked!
Hey wicked,

Any chance to review this patch and update PatchReader with the SVN support?
Comment on attachment 588203 [details] [diff] [review]
v2

We removed all CVS-specific code from Bugzilla, see bug 1068494. At this point, there is no plan to add SVN, which isn't much more popular these days.
Attachment #588203 - Flags: review?(wicked) → review-
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: helpwanted
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: