Fix UnboundLocalError when posting Perforce paths.
Review Request #5834 — Created May 16, 2014 and submitted — Latest diff uploaded
Posting Perforce paths using
rbt postwould sometimes result in an
UnboundLocalError because the local variable
new_pathwas referenced before
assignment. This is a trivial fix, changing the argument from
- Ran unit tests.
rbt post //p4-test2/foo@2,@3(which previously resulted in the error),
and saw that the review request was created successfully.