3123: rbt status crashes when run outside of a versioned directory

adam.c******@gmai***** (Google Code) (Is this you? Claim this profile.)
Jan. 31, 2014
What version are you running?

RBTools 0.5.2, ReviewBoard 1.7.16

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

N/A

What steps will reproduce the problem?
1. from a non-versioned directory run "rbt status"


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

Expected:
 WARNING: The repository detected in the current directory was not found on
the Review Board server. Displaying review requests from all repositories.
 and usual rbt status output

Actual:
 CRITICAL:root:Values instance has no attribute 'repository_url'

With --debug


Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.5.2', 'console_scripts', 'rbt')()
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/main.py", line 106, in main
    command.run_from_argv([RB_MAIN] + args)
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/__init__.py", line 157, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/status.py", line 85, in main
    client_name=self.options.repository_type)
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/__init__.py", line 185, in initialize_scm_tool
    client_name=client_name)
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/clients/__init__.py", line 234, in scan_usable_client
    elif options.repository_url:
AttributeError: Values instance has no attribute 'repository_url'


What operating system are you using? What browser?
 Ubuntu 13.10.

Please provide any additional information below.
#1 walt.******@gmai***** (Google Code) (Is this you? Claim this profile.)
This also occurs with rbt api-get:

wjavins@work:~$ rbt api-get --debug http://reviewboard/api/review-requests/ -- --to-users-directly=wjavins --counts-only=true
DEBUG:root:Checking for a Subversion repository...
DEBUG:root:Running: svn info --non-interactive
DEBUG:root:Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/home/wjavins' is not a working copy
---
DEBUG:root:Checking for a Git repository...
DEBUG:root:Running: git rev-parse --git-dir
DEBUG:root:Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
fatal: Not a git repository (or any of the parent directories): .git
---
DEBUG:root:Checking for a Mercurial repository...
DEBUG:root:Checking for a CVS repository...
DEBUG:root:Checking for a Perforce repository...
DEBUG:root:Checking for a Plastic repository...
DEBUG:root:Checking for a ClearCase repository...
DEBUG:root:Checking for a Bazaar repository...
Traceback (most recent call last):
  File "/usr/local/bin//rbt", line 9, in <module>
    load_entry_point('RBTools==0.5.2', 'console_scripts', 'rbt')()
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/main.py", line 106, in main
    command.run_from_argv([RB_MAIN] + args)
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/__init__.py", line 157, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/api_get.py", line 66, in main
    self.repository_info, self.tool = self.initialize_scm_tool()
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/__init__.py", line 185, in initialize_scm_tool
    client_name=client_name)
  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.2-py2.7.egg/rbtools/clients/__init__.py", line 234, in scan_usable_client
    elif options.repository_url:
AttributeError: Values instance has no attribute 'repository_url'
david
#2 david
  • +EasyFix
david
#3 david
  • +Component-RBTools
#4 oles****@gmai***** (Google Code) (Is this you? Claim this profile.)
Investigating.
david
#5 david
This bug report is obsolete.
  • +Fixed