3314: Unable to run setup-repo on Beanstalk svn repository

b.ra*****@gmai***** (Google Code) (Is this you? Claim this profile.)
June 13, 2014
What version are you running?
2.0 RC2 (dev)

What's the URL of the page containing the problem?
reviews.reviewboard.org

What steps will reproduce the problem?
1. create an svn repository on beanstalk
2. Add it to reviewboard via the admin page
3. run setup-repo on the local repository

What is the expected output? What do you see instead?
Config should be written to the .reviewboardrc. Instead we get this error:
No Subversion repository found or selected for http://0.0.0.0:8080.  .reviewboardrc not created.

This is the output when you run the command with --debug:
http://pastie.org/9094415

This is the xml output from the api request made.
http://pastie.org/9094247


Output of svn info:
http://pastie.org/9094410

What operating system are you using? What browser?
Ubuntu, Chrome

Please provide any additional information below.

Possible source of the problem:
The path created by reviewboard contains a '/' at the end whereas the path you get when you run 'svn info' does not.
#1 b.ra*****@gmai***** (Google Code) (Is this you? Claim this profile.)
The outputs have been attached:

Output when you run the command with --debug: pastie1

This is the xml output from the api request made: pastie2

Output of svn info: pastie3
  • +
    (rbenv)vagrant@precise64:/src/beanstalk-svn-hook-test$ rbt setup-repo --debug
    >>> RBTools 0.6
    >>> Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
    [GCC 4.6.3]
    >>> Running on Linux-3.2.0-29-virtual-x86_64-with-Ubuntu-12.04-precise
    >>> Home = /home/vagrant
    >>> Current directory = /src/beanstalk-svn-hook-test
    Enter the Review Board server URL: http://0.0.0.0:8080
    >>> Checking for a Subversion repository...
    >>> Running: svn info --non-interactive
    >>> Running: diff --version
    >>> repository info: Path: https://beanbag.svn.beanstalkapp.com/beanstalk-svn-hook-test, Base path: /, Supports changesets: False
    >>> Making HTTP GET request to http://0.0.0.0:8080/api/
    >>> Making HTTP GET request to http://0.0.0.0:8080/api/repositories/
    No Subversion repository found or selected for http://0.0.0.0:8080. .reviewboardrc not created.
    +
    <rsp><total_results>4</total_results><stat>ok</stat><repositories><array><item><name>bitbucket-tutorial-git</name><links><info><href>http://0.0.0.0:8080/api/repositories/1/info/</href><method>GET</method></info><branches><href>http://0.0.0.0:8080/api/repositories/1/branches/</href><method>GET</method></branches><commits><href>http://0.0.0.0:8080/api/repositories/1/commits/</href><method>GET</method></commits><self><href>http://0.0.0.0:8080/api/repositories/1/</href><method>GET</method></self><update><href>http://0.0.0.0:8080/api/repositories/1/</href><method>PUT</method></update><diff_file_attachments><href>http://0.0.0.0:8080/api/repositories/1/diff-file-attachments/</href><method>GET</method></diff_file_attachments><delete><href>http://0.0.0.0:8080/api/repositories/1/</href><method>DELETE</method></delete></links><mirror_path>https://b_ramnani@bitbucket.org/b_ramnani/tutorial.git</mirror_path><tool>Git</tool><visible>1</visible><path>git@bitbucket.org:b_ramnani/tutorial.git</path><id
    +
    URL: https://beanbag.svn.beanstalkapp.com/beanstalk-svn-hook-test
    Repository Root: https://beanbag.svn.beanstalkapp.com/beanstalk-svn-hook-test
    Repository UUID: bc9d880b-e820-44d7-b8fb-98feb488558d
    Revision: 4
    Node Kind: directory
    Schedule: normal
    Last Changed Author: b_ramnani
    Last Changed Rev: 4
    Last Changed Date: 2014-04-17 19:06:30 -0700 (Thu, 17 Apr 2014)
chipx86
#2 chipx86
We should probably change the default for the HostingService entry for new repositories.
  • +EasyFix
#3 r.v****@gmai***** (Google Code) (Is this you? Claim this profile.)
I'll try and solve this one.
david
#4 david
The new fuzzy matching in rbt should handle this case.
  • +Fixed