------------------------------------------------------------------------------
To reply, visit https://hellosplat.com/s/beanbag/tickets/4728/
------------------------------------------------------------------------------

New update by KG
For Beanbag, Inc. > RBTools > Ticket #4728


Reply:

    I've managed to reproduce this. Installed naively with `pip install --user 
RBTools`. I'm trying to post a single git commit for review; that review lives 
in a larger git repository that uses git-svn.
    
    I ran the following command from the root repository:
    ```
    $ rbt post --debug 7290c4bdce7 
    >>> RBTools 1.0.2
    >>> Python 2.7.17 (default, Nov  7 2019, 10:07:09) 
    [GCC 9.2.1 20191008]
    >>> Running on Linux-5.3.0-42-generic-x86_64-with-Ubuntu-19.10-eoan
    >>> Home = /home/dmr
    >>> Current directory = /home/dmr/workspace/software
    >>> Command line: rbt post --debug 7290c4bdce7
    >>> Running: tf vc help
    >>> Checking for a Subversion repository...
    >>> Unable to execute "svn help": skipping SVN
    >>> 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: https://svn.[hostname removed]/repo, Base path: 
/trunk/software, Supports changesets: False
    >>> 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...
    >>> 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
    >>> Making HTTP GET request to https://reviewboard.[hostname removed]/api/
    >>> Making HTTP GET request to https://reviewboard.[hostname 
removed]/api/repositories/?tool=Subversion
    >>> Cached response for HTTP GET https://reviewboard.[hostname 
removed]/api/repositories/?tool=Subversion expired and was modified
    >>> Making HTTP GET request to https://reviewboard.[hostname 
removed]/api/repositories/1/info/
    >>> Cached response for HTTP GET https://reviewboard.[hostname 
removed]/api/repositories/1/info/ expired and was modified
    >>> Repository info: Path: https://svn.[hostname removed]/repo, Base path: 
/trunk/software, Supports changesets: False
    >>> Running: git rev-parse 7290c4bdce7
    >>> Running: git rev-parse 7290c4bdce7b7b70754a88649397491c42bc5619^
    >>> Running: git svn rebase -n
    >>> Running: git branch --remotes
    >>> Running: git config --get branch.refs/remotes/origin/trunk.remote
    >>> Command exited with rc 1: [u'git', u'config', u'--get', 
u'branch.refs/remotes/origin/trunk.remote']
    ---
    >>> Running: git remote
    Traceback (most recent call last):
      File "/home/dmr/.local/bin/rbt", line 10, in <module>
        sys.exit(main())
      File 
"/home/dmr/.local/lib/python2.7/site-packages/rbtools/commands/main.py", line 
120, in main
        command.run_from_argv([RB_MAIN, command_name] + args)
      File 
"/home/dmr/.local/lib/python2.7/site-packages/rbtools/commands/__init__.py", 
line 725, in run_from_argv
        exit_code = self.main(*args) or 0
      File 
"/home/dmr/.local/lib/python2.7/site-packages/rbtools/commands/post.py", line 
793, in main
        self.revisions = get_revisions(self.tool, self.cmd_args)
      File 
"/home/dmr/.local/lib/python2.7/site-packages/rbtools/utils/review_request.py", 
line 67, in get_revisions
        revisions = tool.parse_revision_spec(cmd_args)
      File 
"/home/dmr/.local/lib/python2.7/site-packages/rbtools/clients/git.py", line 
214, in parse_revision_spec
        remote = self._find_remote(parent_branch)
      File 
"/home/dmr/.local/lib/python2.7/site-packages/rbtools/clients/git.py", line 
1296, in _find_remote
        raise SCMError('This clone has no configured remotes.')
    rbtools.clients.errors.SCMError: This clone has no configured remotes.
    ```
    
    For completeness, the versions in play are:
    ```
    $ python --version
    Python 2.7.17
    $ git --version
    git version 2.20.1
    $ git svn --version
    git-svn version 2.20.1 (svn 1.10.6)
    $ rbt --version
    RBTools 1.0.2
    ```

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard-issues/20200330181908.6334.35971%40ip-10-1-54-209.ec2.internal.

Reply via email to