Closed Bug 1282329 Opened 10 years ago Closed 10 years ago

DXR should provide hg.m.o permalinks

Categories

(Webtools Graveyard :: DXR, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1007293

People

(Reporter: mozbugz, Unassigned)

Details

A lot of links have been made to MXR (e.g. in Bugzilla comments), which are now in jeopardy because MXR has been violently retired. To avoid a similar fate if/when DXR is retired, or just for when DXR is offline, there should be an option to provide permalinks directly into official Mercurial repositories. An easy solution might be to improve the 'blame' link to include the selected line (if any), and make it more obvious that it should be used for external linking. E.g.: https://dxr.mozilla.org/mozilla-central/source/dom/media/platforms/PDMFactory.cpp#126 Today permalinks to: https://dxr.mozilla.org/mozilla-central/rev/c2da34d96746288b5fee27bf6542a12c9f410988/dom/media/platforms/PDMFactory.cpp#126 Instead the recommended external permalink could/should be: https://hg.mozilla.org/mozilla-central/annotate/c2da34d96746288b5fee27bf6542a12c9f410988/dom/media/platforms/PDMFactory.cpp#l126
https://bugzilla.mozilla.org/show_bug.cgi?id=1007293 already asks for the blame link to include the selected line, with a patch proposed in https://github.com/mozilla/dxr/pull/563.
Thank you Peter.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.