Syntax to submit single git commit to Review Board using post-review

Donal Lafferty picture Donal Lafferty · Jun 27, 2013 · Viewed 9.9k times · Source

I want to create a Review Board review from a single commit.

When I use post-review, it submits all the diffs between my repo and master.

How do I limit this to a specific commit? Or the files in a specific commit?

Answer

Donal Lafferty picture Donal Lafferty · Jun 27, 2013

Turns out you need to use --revision-range with the git commits for before and after your change. E.g.

 post-review --revision-range=f17f771:f5b67e3

Notice that I'm using a truncated value for the commit numbers. Their actual values are f5b67e3978ec0348d33672ba79215fe887709bed and f17f7714f7e6c92fafb03bbfa3d7fefdb3295039. However, I got the range from a git pull, which seems to report truncated numbers.

Note: Put the more recent commit last.