On Mon, Aug 8, 2016, at 09:35 AM, Boris Zbarsky wrote:
> When you click a link to a particular line in dxr, that would normally 
> navigate from https://dxr/foo to https://dxr/foo#lineno.  Instead, have 
> it navigate to https://dxr/rev/foo#lineno.

It would be great if DXR could expose a truncated revision hash by
default (and of course be able to use that too).  I intentionally use
non-revision URLs because while the following is a little bit unwieldy
to paste in a bug (99 chars):
https://dxr.mozilla.org/mozilla-central/source/netwerk/protocol/http/HttpChannelParentListener.h#30
the permalink definitely feels unwieldy and sometimes causes my brain to
want to skip the URL because the lengthy hash looks a lot like line
noise to it (137 chars):
https://dxr.mozilla.org/mozilla-central/rev/d42aacfe34af25e2f5110e2ca3d24a210eabeb33/netwerk/protocol/http/HttpChannelParentListener.h#30

It might also be feasible to have bugzilla try and do something like
github does where it recognizes the raw link and exposes it as <a
href="FULL
LINK">mozilla-central/netwerk/protocol/http/HttpChannelParentListener.h</a>
to help with that.  Now that we have a "preview" tab, the rewriting
wouldn't be so bad.

I think the truncated hash would still be nice for other venues that
don't specialize for dxr.

Andrew
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to