4748: Verify review request matches current repository when doing `rbt post -r`

brennie

What version are you running?

0.7.x through master

What steps will reproduce the problem?

  1. Create a review request for a repository.
  2. cd into a different repository configured on the same server.
  3. rbt post -r <id> with the ID from the first review request

What is the expected output? What do you see instead?

Instead of denying the post because the diff is for the wrong repository (and therefore won't apply), it allows the post. The uploaded diff in Review Board will not be renderable.

brennie
#1 brennie
  • -New
    +Confirmed
  • +Release-0.7.x