Labels: Type-Defect Priority-Medium
New issue 3220 by gilb...@gmail.com: rbt post fails
*** READ THIS BEFORE POSTING!
*** You must complete this form in its entirety, or your bug report will be
*** For customer support, please post to reviewbo...@googlegroups.com
*** 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
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')()
line 127, in main
command.run_from_argv([RB_MAIN] + args)
line 158, in run_from_argv
exit_code = self.main(*args) or 0
line 626, in main
line 17, in get_diff
diff_info = scmtool.diff(files)
line 475, in diff
line 450, in _diff
diff_lines = self.make_diff(revisions['base'], revisions['tip'])
line 502, in make_diff
return self.make_perforce_diff(ancestor, diff_lines)
line 608, in make_perforce_diff
['p4', 'files', base_path + filename + '@' + p4rev],
UnboundLocalError: local variable 'base_path' referenced before assignment
What operating system are you using? What browser?
Please provide any additional information below.
output of git log looks something like this:
Author: xxx <x...@foo.com>
Date: Thu Feb 6 22:39:32 2014 -0800
[git-p4: depot-paths = "//depot/foo/": change = 1580686: options =
Line 586 of git.py contains the following regexp:
m = re.search(r'[rd]epo.-paths = "(.+)": change = (\d+)\]', log, re.M)
Switching to the following gets past the issue:
m = re.search(r'[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
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.