Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1548 by irwan.djajadi: updating a review request fails with "UnboundLocalError: local variable 'rsp' referenced before assignment"

version: RBTools-0.2rc1-py2.6.egg

What steps will reproduce the problem?
1. Using perforce (I don't know if it applies with other source control)
2. post-review <new-changelist>
3. post-review <the-same-changelist>

What is the expected output? What do you see instead?
expected: works. What I see: python interpreter error. Here's the debug
output (modified)
p4 info
repository info: Path: ['<our p4 server>', '<our p4 server>'], Base
path: None, Supports changesets: True
Generating diff for changenum 3566762
p4 describe -s 3566762
Processing edit of <my-file>
Writing "<my-modified-file>" to
p4 print -o c:\users\irwand\appdata\local\temp\tmpyt3dgl -q
diff -urNp c:\users\irwand\appdata\local\temp\tmpyt3dgl <my-modified-file>
Looking for ' /' cookie in
Loaded valid cookie -- no login required
HTTP GETting /api/json/repositories/
Repositories on Server: [{u'path': u'<our-p4-server>', u'tool':
u'Perforce', u'id': 1, u'name': u'<some-name>'}, {u'path':
u'<our-other-p4-server>', u'tool': u'Perforce', u'id': 2, u'name':
Server Aliases: ['<our-p4-server>', '<our-p4-server>']
Attempting to create review request on <our-p4-server> for 3566762
{'repository_path': u'<our-p4-server>', 'changenum': '3566762'}
Got API Error 204 (HTTP code 200): The change number specified has
already been used
Error data: {u'stat': u'fail', u'review_request': {u'status':
u'pending', u'last_updated': u'2010-03-17 09:54:06', u'description':
u'junk\n', u'repository': {u'path': u'<our-p4-server>', u'tool':
u'Perforce', u'id': 1, u'name': u'<some-name>'}, u'public': False,
u'target_groups': [], u'bugs_closed': u'',
u'changenum': 3566762, u'target_people': [], u'testing_done': u'',
u'branch': u'', u'submitter': {u'username': u'irwand', u'first_name':
u'Irwan', u'last_name': u'Djajadi', u'url': u'/users/irwand/', u'id': 9,
u'fullname': u'Irwan Djajadi', u'email': u''},
u'time_added': u'2010-03-17 09:54:06', u'summary': u'junk', u'id': 459},
u'err': {u'msg': u'The change number specified has already been used',
u'code': 204}}
Review request already exists. Updating it...
Traceback (most recent call last):
  File "C:\Python26\Scripts\", line 8, in <module>
    load_entry_point('RBTools==0.2rc1', 'console_scripts', 'post-review')()
line 2774, in main
line 2423, in tempt_fate
    review_request = server.new_review_request(changenum, submit_as)
line 427, in new_review_request
UnboundLocalError: local variable 'rsp' referenced before assignment

What operating system are you using? What browser?
Windows 7. Browser isn't used to reproduce.

Please provide any additional information below.
This did not happen with rbtools beta2

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to