Closed Bug 1519359 Opened 7 years ago Closed 6 years ago

Provide a link to hg file/tip for a given file

Categories

(Webtools :: Searchfox, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

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

https://hg.mozilla.org/mozilla-central/log/tip/modules/libpref/init/all.js?patch=&linerange=1446:1448

which gives me the answer very quickly (bug 1507894).

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...?)

See Also: → 1341203
Assignee: nobody → kats

Deployed

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.