--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4728/
--
New ticket #4728 by KG
For Beanbag, Inc. > RBTools
Status: New
Tags: Priority:Medium, Type:Defect
--
Git svn : diff can't be generated because of badly formatted call to git
rev-list
==
# What version are you running?
RBTools 1.0.1, first seen with 1.0
Git : 1.8.3.1
Using Git-svn. Branch master is synchronized with SVN repository, no commits on
it. Working on branch.
# What steps will reproduce the problem?
1. Call rbt post without options on the developing branch
# What is the expected output? What do you see instead?
Exception raised, no diff nor review created.
Should have a review created with correct diff.
# What operating system are you using?
CentOS 7.5
# Attach the debug out from the command.
bash-4.2$ rbt post --debug
>>> RBTools 1.0.1
>>> Python 2.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
>>> Running on Linux-3.10.0-862.9.1.el7.x86_64-x86_64-with-centos-7.5.1804-Core
>>> Home = myhome
>>> Current directory = {my_directory}/trunk
>>> Command line: rbt post --debug
>>> Running: tf vc help
>>> Checking for a Subversion repository...
>>> Running: svn --non-interactive info
>>> Command exited with rc 1: [u'svn', u'--non-interactive', u'info']
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git svn info
>>> Repository info: Path: {correct}, Base path: /trunk, Supports changesets:
>>> False
>>> Checking for a Mercurial repository...
>>> Running: hg root
>>> Command exited with rc 255: [u'hg', u'root']
abort: no repository found in '{my_directory}/trunk' (.hg not found)!
---
>>> 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...
>>> Unable to execute "cleartool help": skipping ClearCase
>>> Checking for a Bazaar repository...
>>> Unable to execute "bzr help": skipping Bazaar
>>> Checking for a Team Foundation Server repository...
>>> Unable to execute "tf help": skipping TFS
>>> Running: git config --get reviewboard.url
>>> Making HTTP GET request to {reviewboard_server}/api/
>>> Making HTTP GET request to
>>> {reviewboard_server}/api/repositories/?tool=Subversion
>>> Cached response for HTTP GET
>>> {reviewboard_server}/api/repositories/?tool=Subversion expired and was
>>> modified
>>> Running: git rev-parse refs/heads/dev
>>> Running: git svn rebase -n
>>> Running: git rev-parse refs/remotes/trunk
>>> Running: git rev-list SHA1_lastcommit_on_master --not --remotes=origin
>>> Running: git rev-parse SHA2_first_commit_on_remote^
>>> Command exited with rc 128: [u'git', u'rev-parse',
>>> u'SHA2_first_commit_on_remote^']
fatal: ambiguous argument 'SHA2_first_commit_on_remote^': unknown revision or
path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
SHA2_first_commit_on_remote^
---
Traceback (most recent call last):
File "/usr/bin/rbt", line 9, in
load_entry_point('RBTools==1.0.1', 'console_scripts', 'rbt')()
File
"/usr/lib/python2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/commands/main.py",
line 120, in main
command.run_from_argv([RB_MAIN, command_name] + args)
File
"/usr/lib/python2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/commands/__init__.py",
line 719, in run_from_argv
exit_code = self.main(*args) or 0
File
"/usr/lib/python2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/commands/post.py",
line 793, in main
self.revisions = get_revisions(self.tool, self.cmd_args)
File
"/usr/lib/python2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/utils/review_request.py",
line 67, in get_revisions
revisions = tool.parse_revision_spec(cmd_args)
File
"/usr/lib/python2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/clients/git.py",
line 144, in parse_revision_spec
parent_ref, 'origin')
File
"/usr/lib/python2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/clients/git.py",
line 568, in _rev_list_youngest_remote_ancestor
youngest_remote_commit = self._rev_parse('%s^' % local_commit)[0]
File
"/usr/lib/python2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/clients/git.py",
line 536, in _rev_parse
revisions = self._execute([self.git, 'rev-parse'] + revisions)
File
"/usr/lib/python2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/clients/git.py",
line 1214, in _execute