elifline.startswith("There don't seem to be any diffs"):
print'ERROR: Your reviewboard was not created/updated since there was no diff to upload. The reasons that can cause this issue are 1) Your diff is not checked into your local branch. Please check in the diff to the local branch and retry 2) You are not specifying the local branch name as part of the --branch option. Please specify the remote branch name obtained from git branch -r'
p.close()
sys.exit(1)
elifline.startswith("Your review request still exists, but the diff is not attached")andnotopt.debug:
print'ERROR: Your reviewboard was not created/updated. Please run the script with the --debug option to troubleshoot the problem'