rbt setup-repo:未找到或选择 ipaddresshere/reviews 的 CVS 存储库

rbt setup-repo: No CVS repository found or selected for ipaddresshere/reviews

在 运行 rbt setup-repo 上,我收到错误:

No CVS repository found or selected for ipaddresshere/reviews. . reviewboardrc not created.

ipaddresshere 是我设置评论板服务器和网站的计算机的 IP 地址。 cvs 存储库是一个远程存储库,其路径在我的实际评论板站点上使用 pserver 指定。

目前,我已经手动创建了一个 .reviewboardrc 文件,其中的审查板 url 是 myipaddress/reviews ,存储库名称和存储库类型是 cvs。我正在使用 ReviewBoard 2.0.17 和 RBTools 0.7.4。

运行 此命令带有 --debug on give:

>>> 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.

我是第一次使用reviewboard,任务是把reviewboard服务器放到这台机器上,请帮忙。谢谢。

所以我创建了自己的 .reviewboardrc 文件而不是 运行 rbt setup-repo。此文件中包含以下内容:

REVIEWBOARD_URL="http://localhost/reviews"
REPOSITORY="myrepo"

这很好用并解决了我的问题,因为 rbt setup-repo 对指定路径非常挑剔。