3439: 'ClearCaseClient' object has no attribute 'REVISION_BRANCH_BASE'

david.ga*********@gmai***** (Google Code) (Is this you? Claim this profile.)
david
david
June 25, 2014
What version are you running?
RBTools 6.0.0

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

What steps will reproduce the problem?
1. 'rbt post -d' from a ClearCase view.
2. Observe error

What is the expected output? What do you see instead?
Expected: No error happens

Observed (with debug switch):

Traceback (most recent call last):
  File "/usr/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
  File "/usr/lib/python2.6/site-packages/rbtools/commands/main.py", line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/usr/lib/python2.6/site-packages/rbtools/commands/__init__.py", line 422, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/usr/lib/python2.6/site-packages/rbtools/commands/post.py", line 729, in main
    extra_args=extra_args)
  File "/usr/lib/python2.6/site-packages/rbtools/clients/clearcase.py", line 367, in diff
    elif revisions['base'] == self.REVISION_BRANCH_BASE:
AttributeError: 'ClearCaseClient' object has no attribute 'REVISION_BRANCH_BASE'


What operating system are you using? What browser?
Linux, None

Please provide any additional information below.
This seems to What version are you running?
RBTools 6.0.0

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

What steps will reproduce the problem?
1. 'rbt post -d' from a ClearCase view.
2. Observe error

What is the expected output? What do you see instead?
Expected: No error happens

Observed (with debug switch):

Traceback (most recent call last):
  File "/usr/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
  File "/usr/lib/python2.6/site-packages/rbtools/commands/main.py", line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/usr/lib/python2.6/site-packages/rbtools/commands/__init__.py", line 422, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/usr/lib/python2.6/site-packages/rbtools/commands/post.py", line 729, in main
    extra_args=extra_args)
  File "/usr/lib/python2.6/site-packages/rbtools/clients/clearcase.py", line 367, in diff
    elif revisions['base'] == self.REVISION_BRANCH_BASE:
AttributeError: 'ClearCaseClient' object has no attribute 'REVISION_BRANCH_BASE'


What operating system are you using? What browser?
Linux, None

Please provide any additional information below.

This seems to be a programmer oversight. There is no other mention of REVISION_BRANCH_BASE in the whole repo.
#1 david.ga*********@gmai***** (Google Code) (Is this you? Claim this profile.)
I cannot edit the description, but the proper steps to reproduce is:
1. 'rbt post -d file1@@/main/1:file2@@/main/2'
2. Observe error.

 
chipx86
#2 chipx86
Looks to be fallout from the new revision work done in 0.6. Guessing this is just referencing the wrong variable name, or the right one was just never added?
  • +Confirmed
  • +Milestone-Release2.0.x
  • +david
chipx86
#3 chipx86
  • -Milestone-Release2.0.x
    +Milestone-RBTools-Release0.6.x
    +Project-RBTools
david
#4 david
  • -Confirmed
    +PendingReview
david
#5 david
Fixed in rbtools release-0.6.x (5404f87). Thanks!
  • -PendingReview
    +Fixed
#6 david.ga*********@gmai***** (Google Code) (Is this you? Claim this profile.)
Thanks for the fix.