【问题标题】:rbt setup-repo: No CVS repository found or selected for ipaddresshere/reviewsrbt setup-repo:没有找到或选择用于 ipaddresshere/reviews 的 CVS 存储库
【发布时间】:2015-06-29 16:51:46
【问题描述】:

运行 rbt setup-repo 时,出现错误:

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

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

目前我已经手动创建了一个 .reviewboardrc 文件,其中包含 myipaddress/reviews 的评论板 url 以及存储库名称和存储库类型 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.

这是我第一次使用评论板,并被赋予将评论板服务器放在这台机器上的任务,请帮助。谢谢。

【问题讨论】:

    标签: http repository cvs python-2.6 review-board


    【解决方案1】:

    所以发生的事情是我创建了自己的 .reviewboardrc 文件,而不是运行 rbt setup-repo。在这个文件中有以下内容:

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

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

    【讨论】:

      猜你喜欢
      • 2015-08-23
      • 1970-01-01
      • 2012-08-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多