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

New issue 3220 by rbt post fails

*** You must complete this form in its entirety, or your bug report will be
*** For customer support, please post to
*** If you have a patch, please submit it to
*** Do not post confidential information in this bug report!

What version are you running?


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


What steps will reproduce the problem?
1. git p4 clone --keep-path //depot/somepath
2. vi somefile
3. rbt post -d

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

Expect to post a review, instead see:

DEBUG:root:Running: git diff --no-color --no-prefix -r -u 34f4171655c537708e9f658c76a8374fa7bf5207..523f5bcf6e794bd0969177488b4f2d7722959462
DEBUG:root:Running: git log 34f4171655c537708e9f658c76a8374fa7bf5207
Traceback (most recent call last):
  File "/usr/bin/rbt", line 8, in <module>
    load_entry_point('RBTools==0.5.7', 'console_scripts', 'rbt')()
File "/usr/lib/python2.6/site-packages/RBTools-0.5.7-py2.6.egg/rbtools/commands/", line 127, in main
    command.run_from_argv([RB_MAIN] + args)
File "/usr/lib/python2.6/site-packages/RBTools-0.5.7-py2.6.egg/rbtools/commands/", line 158, in run_from_argv
    exit_code = self.main(*args) or 0
File "/usr/lib/python2.6/site-packages/RBTools-0.5.7-py2.6.egg/rbtools/commands/", line 626, in main
File "/usr/lib/python2.6/site-packages/RBTools-0.5.7-py2.6.egg/rbtools/utils/", line 17, in get_diff
    diff_info = scmtool.diff(files)
File "/usr/lib/python2.6/site-packages/RBTools-0.5.7-py2.6.egg/rbtools/clients/", line 475, in diff
    return self._diff([])
File "/usr/lib/python2.6/site-packages/RBTools-0.5.7-py2.6.egg/rbtools/clients/", line 450, in _diff
    diff_lines = self.make_diff(revisions['base'], revisions['tip'])
File "/usr/lib/python2.6/site-packages/RBTools-0.5.7-py2.6.egg/rbtools/clients/", line 502, in make_diff
    return self.make_perforce_diff(ancestor, diff_lines)
File "/usr/lib/python2.6/site-packages/RBTools-0.5.7-py2.6.egg/rbtools/clients/", line 608, in make_perforce_diff
    ['p4', 'files', base_path + filename + '@' + p4rev],
UnboundLocalError: local variable 'base_path' referenced before assignment
Exit 1

What operating system are you using? What browser?


Please provide any additional information below.

output of git log looks something like this:

commit b031695712c24e573965525d2391c4fadd08048a
Author: xxx <>
Date:   Thu Feb 6 22:39:32 2014 -0800

    binary changes
[git-p4: depot-paths = "//depot/foo/": change = 1580686: options = keepRepoPath]

Line 586 of contains the following regexp:

m ='[rd]epo.-paths = "(.+)": change = (\d+)\]', log,     re.M)

Switching to the following gets past the issue:

m ='[rd]epo.-paths = "(.+)": change = (\d+).*\]', log,     re.M)

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to