[llvm-dev] [cfe-dev] Phabricator -> GitHub PRs?

David Greene via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 16 10:45:37 PST 2020


Nicolai Hähnle <nhaehnle at gmail.com> writes:

> Here's a somewhat more complex example of changes made by myself a
> year and a half ago, starting with https://reviews.llvm.org/D48013

Aha!  I found it!  The "Stack" tab under "Revision Contents" after all
of the review comments.  That's *really* not obvious if there are lots
of review comments to scroll through.

So if I'm understanding this correctly, there are 17 commits in this
series, one of which is still open for review.  Is that correct?

What is the graph on the left trying to show me?  The commit graph?
This is a non-linear branch?  Or is this a dependence graph between
patches in the series?  If the latter, what generated those
dependencies?

> Reviewing all of this in a single amorphous diff is something that I
> wouldn't wish on anybody.

Certainly!  I don't think anyone is advocating for that.  I agree GitHub
by default presenting things as a giant patch is not helpful, but I'm
told that can be changed.  I don't how GitHub reviews work for PRs with
multiple commits since I've never tried it.  Hopefully someone with such
experience will chime in.

> Conversely, having the linkage between different commits provides
> context to reviewers.

I can see that too.  For commits that are dependent on a long series of
other commits (D48017 for example), how hard is it to review without
reviewers also looking at the commits upon which it depends?  Do people
really review such commits early in the process?  Even without the early
review I agree the context can be useful.

> It is also helpful to me: I can keep track of reviews to the series
> while simultaneously working on other changes that happen to be
> unrelated, and having the commits in separate stacks helps by
> implicitly grouping them. Admittedly this advantage is comparatively
> minor because the UI isn't perfect.

I'm not sure how this differs from having multiple patches up for review
simultaneously.  I do that all the time and is just as easy (for me)
with GitHub PRs.  Are you simply saying that you can have multiple patch
series up for review at the same time?  I feel like I am not grasping
some (to me) subtle point you're making.

                     -David


More information about the llvm-dev mailing list