3814: AttributeError: 'Namespace' object has no attribute 'revision_range'

del****@gmai***** (Google Code) (Is this you? Claim this profile.)
May 10, 2015
What version are you running?
ReviewBoard: 2.0.11
Rbtools: 0.7.2
ClearCase Win client:

What's the URL of the page containing the problem?
When running rbt setup-repo

What steps will reproduce the problem?
1. Create a ClearCase repo in ReviewBoard
2. Install rbtools on Windows
3. Run "rbt setup-repo --debug" under a ClearCase VOB

What is the expected output? What do you see instead?
Expect the repo to be setup.
I see this:
>>> Checking for a Subversion repository...
>>> Unable to execute "svn help": skipping SVN
>>> Checking for a Git repository...
>>> Unable to execute "git --help" or "git.cmd --help": skipping Git
>>> Checking for a Mercurial repository...
>>> Unable to execute "hg --help": skipping Mercurial
>>> Checking for a CVS repository...
>>> Unable to execute "cvs": skipping CVS
>>> Checking for a Perforce repository...
>>> Unable to execute "p4 help": skipping Perforce
>>> Checking for a Plastic repository...
>>> Unable to execute "cm version": skipping Plastic
>>> Checking for a ClearCase repository...
>>> Running: cleartool pwv -short
>>> Running: diff --version
>>> Running: cleartool lsview -full -properties -cview
>>> Running: cleartool describe -short vob:.
>>> Running: cleartool pwv -root
>>> repository info: Path: Z:\srcCMTE, Base path: Z:\srcCMTE, Supports changeset
s: False
Traceback (most recent call last):
  File "C:\Program Files (x86)\RBTools\bin\..\Python27\Scripts\rbt-script.py", l
ine 8, in <module>
    load_entry_point('RBTools==0.7.2', 'console_scripts', 'rbt')()
  File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-
py2.7.egg\rbtools\commands\main.py", line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-
py2.7.egg\rbtools\commands\__init__.py", line 555, in run_from_argv
    exit_code = self.main(*args) or 0
  File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-
py2.7.egg\rbtools\commands\setup_repo.py", line 109, in main
    repository_info, tool = self.initialize_scm_tool()
  File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-
py2.7.egg\rbtools\commands\__init__.py", line 587, in initialize_scm_tool
  File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-
py2.7.egg\rbtools\clients\clearcase.py", line 260, in check_options
    if ((self.options.revision_range or self.options.tracking)
AttributeError: 'Namespace' object has no attribute 'revision_range'

What operating system are you using? What browser?
Windows 7

Please provide any additional information below.
As above.
#2 david
  • +PendingReview
  • +Component-RBTools
  • +david
#3 david
Fixed in release-0.7.x (0cb53be). This will ship in 0.7.3
  • -PendingReview