Link to original source repo for vendored code
Categories
(Webtools :: Searchfox, enhancement)
Tracking
(Not tracked)
People
(Reporter: kats, Unassigned)
References
(Depends on 1 open bug)
Details
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
I think this can be accomplished by incorporating links to the external repo into the blame repository. The rough idea I have is that we would need to create a mapfile that maps from main repo revs to vendored repo revs (e.g. "at m-c revision X we pulled webrender revision Y" would produce a mapping of X:gfx/wr/ -> https://github.com/servo/webrender:Y
or equivalent). When building the m-c blame repo at rev X we do it the way we do now, but we also add an extra field to the blame repo data that includes the true blame (some ancestor of Y, to be discovered by running the blame generator tool on the WR repo up to revision Y). Then we can surface that information in the blame popup.
Anybody who is vendoring code into m-c and wants to avail of this would need to provide a mapfile of revisions, and we'd have to rebuild the blame repo with that information. If we can make building the blame repo fast enough (via bug 1627532 and optimizations) then this shouldn't be too hard to do.
Description
•