Original Perl version of our rb script.
A throw-away file to explore what I can do with the new API
Saving what I have before I screw it up.

I've been hacking way all day and sorta have the basics working.
There's a lot left to figure out, most significantly the auth stuff,
but I think I'm headed in the right direction.
Commented out all the functions that I don't think I need.

As I fix things, some of these functions will need to be uncommented. The rest will eventually be deleted.
rr edit seems to be functional. rr create kind of works. rr submit is broken.
Yes! I figured out how to update the change list field!
Yes! I can now mark a review as submitted!!
Removed some commented code and ran tidy
Shelving hooked up.
Modified to work with rb-2.0
Remove prototypes in the easy cases

All the functions had prototypes. Most of them were not using them in any meaningful way, so remove those and streamline the argument parsing.

TODO: go back later and handle the more complicated prototypes.
Correct the option for target people.
Capture change list number when submitting.

Capture change list number that was actually submitted to perforce
and update it in the review before closing the review.
Delete rb.pl experiment.
Authentication now works.
Removed commented functions.
More work on getting shelves to work, especially with new reviews.

This is close, and may be the best we can do. But I want to try
something else, so I'm submitting this first.
Shelving now works correctly.

Previously, I was adding the shelve comment via the changedescription
field. That wasn't what I wanted. Now I'm doing it via the reviews url:

   api/review-requests/$rid/reviews/

A PUT made here to modify body_top creates a new review for this
review_request and puts the shelve comment in. Looks nice.