运行rbt setup-repo后,我收到错误:
No CVS repository found or selected for ipaddresshere/reviews. . reviewboardrc not created.
ipaddresshere是我的计算机上设置了评论板服务器和站点的IP地址。 cvs存储库是一个远程存储库,其中包含在我的实际审阅板站点上使用pserver指定的路径。
目前我手动创建了一个.reviewboardrc文件,其中包含myipaddress / reviews的评论板网址以及存储库名称和存储库类型cvs。我使用的是ReviewBoard 2.0.17和RBTools 0.7.4。
使用--debug on:运行此命令:
>>> RBTools 0.7.4
>>> Python 2.6.6 (r266:84292, Jan 22 2014, 09:37:14)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
>>> Running on Linux-2.6.32-504.23.4.el6.i686-i686-with-centos-6.6-Final
>>> Home = /root
>>> Current directory = /mydirectory/directory
Enter the Review Board server URL: localhost/reviews
>>> Running: git version
>>> Checking for a Subversion repository...
>>> Running: svn --non-interactive info
>>> Command exited with rc 1: ['svn', '--non-interactive', u'info']
svn: '.' is not a working copy
---
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
fatal: Not a git repository (or any of the parent directories): .git
---
>>> Checking for a Mercurial repository...
>>> Running: hg root
>>> Command exited with rc 255: ['hg', 'root']
abort: There is no Mercurial repository here (.hg not found)!
---
>>> Checking for a CVS repository...
>>> repository info: Path: cvsmachineip:/cvsroot/cvs, Base path: None, Supports changesets: False
>>> Making HTTP GET request to http://localhost/reviews/api/
>>> Making HTTP GET request to http://localhost/reviews/api/repositories/
>>> Cached response for HTTP GET http://localhost/reviews/api/repositories/ expired and was modified
No CVS repository found or selected for localhost/reviews. .reviewboardrc not created.
这是我第一次使用评论板,并且有权将评论板服务器放在这台机器上,请帮忙。谢谢。
答案 0 :(得分:0)
So what happened was I created my own .reviewboardrc file instead of running rbt setup-repo. In this file was the following:
REVIEWBOARD_URL="http://localhost/reviews"
REPOSITORY="myrepo"
This worked great and solved my problem as rbt setup-repo is very picky about the specified path.