Provide a link to hg file/tip for a given file
Categories
(Webtools :: Searchfox, enhancement)
Tracking
(Not tracked)
People
(Reporter: Gijs, Assigned: kats)
References
Details
Searchfox's blame next to line numbers is great, but unfortunately it doesn't work for removed lines. hg's range-based history is great for this. However, right now I need to manually rewrite the URL.
For instance, looking at https://searchfox.org/mozilla-central/rev/b4ebbe90ae4d0468fe6232bb4ce90699738c8125/modules/libpref/init/all.js#1447 (permalink so you can follow) , I want to see when the ifdefs for nightly were removed (bug 1484048 added them) so I can find out what release we shipped them in. The normal searchfox URL is:
https://searchfox.org/mozilla-central/source/modules/libpref/init/all.js#1447
and I want:
https://hg.mozilla.org/mozilla-central/file/tip/modules/libpref/init/all.js#l1447
so I can open
which gives me the answer very quickly (bug 1507894).
| Assignee | ||
Comment 1•7 years ago
|
||
I guess we can add an "other tools" section to the nav panel with an "hgweb" link that takes you to hg.m.o. Also a "DXR" link while we're at it, that was requested in bug 1341203. (Although dxr hasn't been updated since november so maybe not...?)
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
Deployed
Description
•