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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With