Closed Bug 405500 Opened 18 years ago Closed 15 years ago

Add Bugzilla/svn integration similar to that available in trac

Categories

(bugzilla.mozilla.org :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: laura, Unassigned)

References

Details

Specifically what I'd like to see is the ability to have commit messages as follows: "Fixes #nnnn" - adds an annotation to bug nnnn and closes out the bug "Refs #nnn" - adds an annotation to the bug with the svn revision number On the other side, within Bugzilla, commenting on a bug including [yyyy] e.g. "Changeset [yyyy] refs this bug" should turn [yyyy] into a hyperlink to that changeset in the web view of the svn rep. Similarly, using #nnnm in a bug comment should hyperlink to bug #nnnm within bugzilla.
There are various third-party products that allow you to do this. SCMBug is one of them. See also bug 390964.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
I filed this in the wrong place (as I was told afterwards, sorry :( ). What I guess I meant was "can we please install one of these third party products for use in internal mozilla.com repositories such as the one for addons.mozilla.org"
Status: RESOLVED → REOPENED
Component: Creating/Changing Bugs → Server Operations
Product: Bugzilla → mozilla.org
Resolution: WORKSFORME → ---
Version: unspecified → other
Ahh, okay. :-)
Assignee: create-and-change → server-ops
Status: REOPENED → NEW
QA Contact: default-qa → justin
Justdave would probably know the most about this.
Assignee: server-ops → justdave
For most of those they should be able to use the exposed APIs on Bugzilla already, it just needs hooks on the svn side. That'd make it an aravind thing.
Assignee: justdave → aravind
Component: Server Operations → Server Operations: Projects
I am looking at this from a SVN server perspective. We currently do not have a mapping between subversion user names and bugzilla user names. The first request would depend on such a mapping. At this point, I think this would be a WONTFIX (or can't fix). The second request could possibly be accomplished by using some sort of default bugzilla user thats allowed to comment on any bug. This user (or the system) could then comment on that bug, with the svn url and rev. Is this what you want? I think there is a way to send off an e-mail to some bugzilla account that could trigger this action (justdave can comment on that). As to the bugzilla side of things (converting changeset numbers to urls) - justdave would know better.
the hyperlinking stuff in Bugzilla is pretty easy actually. If you file that one separately in the Other b.m.o issues component, we can probably pull that one off on short order, and get stuff linking to viewvc or something. morgamic suggests just looking for "r" followed by a number, to keep it distinct from Hg, which also uses changesets, and which we might want to also link to at some point.
Bugzilla <-> LDAP mapping is bug 375593
(In reply to comment #7) > morgamic suggests just looking for "r" followed by a number, to keep it distinct from Hg, which also uses changesets, and which we might want to also link to at some point. I support that: r1234 is the common way for SVN to denote its revisions, see http://svn.mozilla.org/ at the bottom for example. Linking these to viewvc would be veeery helpful.
(In reply to comment #9) > (In reply to comment #7) > > morgamic suggests just looking for "r" followed by a number, to keep it distinct from Hg, which also uses changesets, and which we might want to also link to at some point. > > I support that: r1234 is the common way for SVN to denote its revisions, see > http://svn.mozilla.org/ at the bottom for example. Linking these to viewvc > would be veeery helpful. Done. Let me know if you notice any problems.
Changing QA Contact.
QA Contact: justin → mrz
Depends on: 504988
Assignee: aravind → nobody
Component: Server Operations: Projects → Bugzilla: Other b.m.o Issues
QA Contact: mrz → other-bmo-issues
The Bugzilla side of this (rXXXX linkification) is done; if you want SVN actions to take Bugzilla actions, you need to add hooks to SVN - which would be another bug, in a different component. Gerv
Status: NEW → RESOLVED
Closed: 18 years ago15 years ago
Resolution: --- → FIXED
Component: Bugzilla: Other b.m.o Issues → General
Product: mozilla.org → bugzilla.mozilla.org
You need to log in before you can comment on or make changes to this bug.