Bug 21777 - pretty patch format should turn paths into links
: pretty patch format should turn paths into links
Status: NEW
: WebKit
WebKit Website
: 528+ (Nightly build)
: Macintosh Mac OS X 10.5
: P2 Normal
Assigned To:
  Show dependency treegraph
Reported: 2008-10-21 14:44 PST by
Modified: 2009-12-20 03:34 PST (History)



You need to log in before you can comment on or make changes to this bug.

Description From 2008-10-21 14:44:31 PST
pretty patch format should turn paths into links


wtf/Platform.h should be a link to:

Rietveld has this functionality and I miss it when I review patches @ bugs.webkit.org instead of codereviews.chromium.org
------- Comment #1 From 2008-10-21 14:51:50 PST -------
We do turn paths into links when the paths are relative to the top level of the WebKit repository. Here's an example:


How does Reitveld figure out where to link paths that are not relative to the top level of the repository?
------- Comment #2 From 2008-10-21 16:34:22 PST -------
There is some special upload script, I'm not entirely sure.  Evan or John would know... if I could only figure out how to CC them
------- Comment #3 From 2008-10-21 16:37:36 PST -------
The uploader uploads enough information into Rietveld that it can reconstruct the full before/after versions of the file, so it doesn't need to refer to the repo.

(Another alternative, for what it's worth, is to by convention request patches to be relative to the top-level directory.  The links would then be broken for patches that didn't follow that convention.)
------- Comment #4 From 2009-12-20 03:34:54 PST -------
BTW, Rietveld *originally* did the strategy of "upload patch + base URL for files referenced in the patch", but that is SVN-specific (there's no good way to grab an arbitrary file from a remote git repo), so they migrated away from it.