04.28.10
Anchor preservation restored!
A long, long time ago, in a galaxysource code indexing tool far away, timeless wrote some code that made jumping from a given (anchored) line in MXR to bonsai’s blame view preserve the anchor (fragment identifier) on arrival in bonsai (as well as do other cool things, like set up an automatic “mark”).
With the migration to Mercurial and its web view, though, this time-saving enhancement was lost. For a long time, I was annoyed by this regression and lamented having to manually edit URLs or scroll multiple-thousand line files when leaving MXR for Mercurial’s annotated source (“blame”) view. However, I recently discovered timeless’s original changes and ported them to MXR’s “HG Blame” link. Server Ops deployed the fix last night, so it’s once again possible to end up on the same line in blame view as you were on in the un-annotated source.
Please enjoy! (and volunteer to port bonsai’s awesome “mark” abilities to Mercurial’s web view?)
5 Comments »
Atom feed for comments on this post · TrackBack URL
04.29.10 at 4:35 am
You could use http://mxr-test.konigsberg.mozilla.org/
to get better than hgweb blame. Just use Bonsai HG Blame
link.
04.29.10 at 11:59 am
Smaug, I’ve never found a “Bonsai HG Blame” link that worked; they’ve always given me errors about cvs!? Also, I didn’t think everyone had access to konigsberg, which would make Bonsai HG Blame less useful for real-world use (i.e., pasting links in bugs).
04.29.10 at 3:31 pm
Access to konigsberg was still restricted a few month ago if I recall correctly.
04.29.10 at 4:38 pm
Oh, I guess I was trying Bonsai HG Blame with the wrong trees before, or perhaps it was temporarily broken. Currently it doesn’t work in the Camino root, but it does seem to work with mozilla-central and mozilla-1.9.2.
05.24.10 at 10:06 pm
[...] more useful to all of the projects that build from more than one repository, and I made the aforementioned anchor-preservation fix to MXR’s blame links. When not working on those items or the 2.0.3 release, I also continued to [...]