Hi! I installed Review Board 2.5.3 on a server and added five git repositories to its configuration, I can expand on this if necessary.
Now I want to use rbtools, but it seems that no matter what local clone I am in it only suggests that the repository "test" (test.git) be used when trying to create the .reviewboardrc. I read https://www.reviewboard.org/docs/rbtools/dev/rbt/configuration/repositories/, which states "By default, RBTools will try to determine the repository path and pass that to Review Board. This won’t always work in all setups, particularly when different people are checking out the repository with different URLs.". $ rbt setup-repo -d >>> RBTools 0.6.2 >>> Python 2.7.9 (default, Mar 1 2015, 12:57:24) [GCC 4.9.2] >>> Running on Linux-3.16.0-4-amd64-x86_64-with-debian-8.3 >>> Home = /home/totte >>> Current directory = /home/totte/code/website Enter the Review Board server URL: https://example.org/reviewboard >>> 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 config --get branch.development.merge >>> Running: git config --get branch.development.remote >>> Running: git config --get remote.origin.url >>> repository info: Path: [email protected]:/website.git, Base path: , Supports changesets: False >>> Making HTTP GET request to https://example.org/reviewboard/api/ >>> Making HTTP GET request to https://example.org/reviewboard/api/repositories/ Use the Git repository 'test' (/srv/git/repositories/test.git)? [Yes/No]: No No Git repository found or selected for https://example.org/reviewboard. .reviewboardrc not created. $ /home/totte/virtual_environments/foo/bin/rbt setup-repo -d >>> RBTools 0.7.5 >>> Python 2.7.9 (default, Mar 1 2015, 12:57:24) [GCC 4.9.2] >>> Running on Linux-3.16.0-4-amd64-x86_64-with-debian-8.3 >>> Home = /home/totte >>> Current directory = /home/totte/code/website Enter the Review Board server URL: https://example.org/reviewboard >>> Checking for a Subversion repository... >>> Running: svn --non-interactive info >>> Command exited with rc 1: ['svn', '--non-interactive', u'info'] svn: E155007: '/home/totte/code/website' is not a working copy --- >>> 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 config --get branch.development.merge >>> Running: git config --get branch.development.remote >>> Running: git config --get remote.origin.url >>> repository info: Path: [email protected]:/website.git, Base path: , Supports changesets: False >>> Making HTTP GET request to https://example.org/reviewboard/api/ >>> Making HTTP GET request to https://example.org/reviewboard/api/repositories/ >>> Cached response for HTTP GET https://example.org/reviewboard/api/repositories/ expired and was modified Use the Git repository "test" (/srv/git/repositories/test.git)? [Yes/No]: No No Git repository found or selected for https://example.org/reviewboard. .reviewboardrc not created. The API response which I got by running `curl https://example.org/reviewboard/api/repositories/ returns all five repositories: {"total_results": 5, "stat": "ok", "repositories": [ {"name": "website", "links": {"info": {"href": "https://example.org/reviewboard/api/repositories/5/info/", "method": "GET"}, "branches": {"href": "https://example.org/reviewboard/api/repositories/5/branches/", "method": "GET"}, "commits": {"href": "https://example.org/reviewboard/api/repositories/5/commits/", "method": "GET"}, "self": {"href": "https://example.org/reviewboard/api/repositories/5/", "method": "GET"}, "update": {"href": "https://example.org/reviewboard/api/repositories/5/", "method": "PUT"}, "diff_file_attachments": {"href": "https://example.org/reviewboard/api/repositories/5/diff-file-attachments/", "method": "GET"}, "delete": {"href": "https://example.org/reviewboard/api/repositories/5/", "method": "DELETE"}}, "mirror_path": "", "tool": "Git", "visible": true, "bug_tracker": "https://example.org/bugtracker/index.php?do=details&task_id=%s", "path": "/srv/git/repositories/website.git", "id": 5}, {"name": "bar", "links": {"info": {"href": "https://example.org/reviewboard/api/repositories/2/info/", "method": "GET"}, "branches": {"href": "https://example.org/reviewboard/api/repositories/2/branches/", "method": "GET"}, "commits": {"href": "https://example.org/reviewboard/api/repositories/2/commits/", "method": "GET"}, "self": {"href": "https://example.org/reviewboard/api/repositories/2/", "method": "GET"}, "update": {"href": "https://example.org/reviewboard/api/repositories/2/", "method": "PUT"}, "diff_file_attachments": {"href": "https://example.org/reviewboard/api/repositories/2/diff-file-attachments/", "method": "GET"}, "delete": {"href": "https://example.org/reviewboard/api/repositories/2/", "method": "DELETE"}}, "mirror_path": "", "tool": "Git", "visible": true, "bug_tracker": "https://example.org/bugtracker/index.php?do=details&task_id=%s", "path": "/srv/git/repositories/bar.git", "id": 2}, {"name": "baz", "links": {"info": {"href": "https://example.org/reviewboard/api/repositories/3/info/", "method": "GET"}, "branches": {"href": "https://example.org/reviewboard/api/repositories/3/branches/", "method": "GET"}, "commits": {"href": "https://example.org/reviewboard/api/repositories/3/commits/", "method": "GET"}, "self": {"href": "https://example.org/reviewboard/api/repositories/3/", "method": "GET"}, "update": {"href": "https://example.org/reviewboard/api/repositories/3/", "method": "PUT"}, "diff_file_attachments": {"href": "https://example.org/reviewboard/api/repositories/3/diff-file-attachments/", "method": "GET"}, "delete": {"href": "https://example.org/reviewboard/api/repositories/3/", "method": "DELETE"}}, "mirror_path": "", "tool": "Git", "visible": true, "bug_tracker": "https://example.org/bugtracker/index.php?do=details&task_id=%s", "path": "/srv/git/repositories/baz.git", "id": 3}, {"name": "test", "links": {"info": {"href": "https://example.org/reviewboard/api/repositories/4/info/", "method": "GET"}, "branches": {"href": "https://example.org/reviewboard/api/repositories/4/branches/", "method": "GET"}, "commits": {"href": "https://example.org/reviewboard/api/repositories/4/commits/", "method": "GET"}, "self": {"href": "https://example.org/reviewboard/api/repositories/4/", "method": "GET"}, "update": {"href": "https://example.org/reviewboard/api/repositories/4/", "method": "PUT"}, "diff_file_attachments": {"href": "https://example.org/reviewboard/api/repositories/4/diff-file-attachments/", "method": "GET"}, "delete": {"href": "https://example.org/reviewboard/api/repositories/4/", "method": "DELETE"}}, "mirror_path": "git://git.example.org/test.git", "tool": "Git", "visible": true, "bug_tracker": "https://example.org/bugtracker/index.php?do=details&task_id=%s", "path": "/srv/git/repositories/test.git", "id": 4}, {"name": "foo", "links": {"info": {"href": "https://example.org/reviewboard/api/repositories/1/info/", "method": "GET"}, "branches": {"href": "https://example.org/reviewboard/api/repositories/1/branches/", "method": "GET"}, "commits": {"href": "https://example.org/reviewboard/api/repositories/1/commits/", "method": "GET"}, "self": {"href": "https://example.org/reviewboard/api/repositories/1/", "method": "GET"}, "update": {"href": "https://example.org/reviewboard/api/repositories/1/", "method": "PUT"}, "diff_file_attachments": {"href": "https://example.org/reviewboard/api/repositories/1/diff-file-attachments/", "method": "GET"}, "delete": {"href": "https://example.org/reviewboard/api/repositories/1/", "method": "DELETE"}}, "mirror_path": "", "tool": "Git", "visible": true, "bug_tracker": "https://example.org/bugtracker/index.php?do=details&task_id=%s", "path": "/srv/git/repositories/foo.git", "id": 1}], "links": {"self": {"href": "https://example.org/reviewboard/api/repositories/", "method": "GET"}, "create": {"href": "https://example.org/reviewboard/api/repositories/", "method": "POST"} } } The comment here: https://github.com/reviewboard/rbtools/blob/master/rbtools/commands/setup_repo.py#L23, makes me wonder why the other four repositories don't get listed. I figured something might have gone wrong here: https://github.com/reviewboard/rbtools/blob/master/rbtools/commands/setup_repo.py#L61, so I cloned that repository, created a virtual environment, installed the Debian packages libldap2-dev, libsasl2-dev, libsvn-dev, subversion and libapr1-dev using aptitude and then the listed dependencies in dev-requirements.txt using the virtual environment pip, but now I'm stuck because I don't know how to actually run this code and debug the issue. -- Best regards, H W "totte" Tovetjärn [email protected] -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
