Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 841
Donal Lafferty Avatar asked Jun 27 '13 10:06

Donal Lafferty


People also ask

What is RBT post?

rbt post simplifies both creating and updating review requests. It can look at your source directory, generate a diff, and upload it to a new or existing review request on an associated Review Board server.

How do I update the diff in my review board?

A review request's diff can be updated by clicking Upload Diff or Update Diff on the action bar. It will present a dialog much like the New Review Request page. See Review Requests for Diffs for more information on the fields.


2 Answers

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.

like image 173
Donal Lafferty Avatar answered Sep 26 '22 21:09

Donal Lafferty


You can use following command to send a particular commit in review request

rbt post d1c631b

Note: Here d1c631b is truncated commit id not the actual commit id.

like image 43
Yuvraj Patil Avatar answered Sep 23 '22 21:09

Yuvraj Patil