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

New issue 3908 by seide.al...@gmail.com: rbt post --diff-filename is broken in RBTools 0.6.3 and 0.7.3
https://code.google.com/p/reviewboard/issues/detail?id=3908

*** READ THIS BEFORE POSTING!
***
*** You must complete this form in its entirety, or your bug report will be
*** rejected.
***
*** If you have a security issue to report, please send it confidentially
to
*** secur...@reviewboard.org. Posting security-related issues to this bug
*** tracker causes us to have to do an emergency release.
***
*** For customer support, please post to reviewbo...@googlegroups.com
***
*** If you have a patch, please submit it to
http://reviews.reviewboard.org/
***
*** This bug tracker is public. Please check that any logs or other
information
*** that you include has been stripped of confidential information.


What version are you running?

RBTools 0.6.3, 0.7.3


What's the URL of the page containing the problem?

NA

What steps will reproduce the problem?
1.  Use 'rbt diff' > mydiff to create a proper diff file
2.  rbt post --diff-filename mydiff CL


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

I expect a review with diff uploaded. Instead I get this:

Traceback (most recent call last):
  File "/home/sallan/envs/rbtools-0.7.3/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.7.3', 'console_scripts', 'rbt')()
File "/home/sallan/envs/rbtools-0.7.3/lib/python2.6/site-packages/RBTools-0.7.3-py2.6.egg/rbtools/commands/main.py", line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
File "/home/sallan/envs/rbtools-0.7.3/lib/python2.6/site-packages/RBTools-0.7.3-py2.6.egg/rbtools/commands/__init__.py", line 612, in run_from_argv
    exit_code = self.main(*args) or 0
File "/home/sallan/envs/rbtools-0.7.3/lib/python2.6/site-packages/RBTools-0.7.3-py2.6.egg/rbtools/commands/post.py", line 751, in main
    if repository_info.supports_changesets and 'changenum' in diff_info:
UnboundLocalError: local variable 'diff_info' referenced before assignment


Same problem with RBTools 0.6.3.
Works correctly in 0.5.2.

What operating system are you using? What browser?

Mac OS-X, CentOS 6.6
Python 2.6.6
RB 1.7.28
Firefox, Safari, Chrome

Please provide any additional information below.

RBTools 0.5.2  :  works
RBTools 0.6.3  :  error
RBTools 0.7.3  :  error



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to