problems with RB and Perforce config

708 views
Skip to first unread message

Chuck O'Neill

unread,
Aug 5, 2015, 8:58:32 PM8/5/15
to reviewboard
Did a basic install/config for RB 2.0.18 and set up a Perforce repository. On a local mac installed RBTools 0.7.4.
rbt post --debug 323331
coneill-mbp15 [512]:rbt post --debug 323331
>>> RBTools 0.7.4
>>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
>>> Running on Darwin-14.4.0-x86_64-i386-64bit
>>> Home = /Users/coneill
>>> Current directory = /Users/coneill
>>> Running: git version
>>> Checking for a Subversion repository...
>>> Running: svn --non-interactive info
>>> Command exited with rc 1: ['svn', '--non-interactive', u'info']
svn: E155007: '/Users/coneill' 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...
>>> Unable to execute "hg --help": skipping Mercurial
>>> Checking for a CVS repository...
>>> Unable to execute "cvs": skipping CVS
>>> Checking for a Perforce repository...
>>> Running: p4 info
>>> Running: diff --version
>>> repository info: Path: hostname.domain:port0, Base path: None, Supports changesets: True
>>> Running: p4 counters
Unable to find a Review Board server for this source code tree.

I don't find anything in the logs to help me

coneill-mbp15 [514]:rbt list-repo-types
The following repository types are supported by this installation
of RBTools. Each "<type>" may be used as a value for the
"--repository-type=<type>" command line argument. Repository types
which are detected in the current directory are marked with a "*"
[*] "<type>": <Name>
   "svn": Subversion
   "git": Git
   "mercurial": Mercurial
   "cvs": CVS
 * "perforce": Perforce
   "plastic": Plastic
   "clearcase": ClearCase
   "bazaar": Bazaar
   "tfs": TFS

Any ideas what's likely the problem - Many thanks
Chuck

Christian Hammond

unread,
Aug 6, 2015, 7:01:01 PM8/6/15
to revie...@googlegroups.com
Hi Chuck,

RBTools needs to know where the Review Board server is and what repository to use. You'll need to define a .reviewboardrc file at the root of the repository containing:

REVIEWBOARD_URL = 'https://yourserver/'
REPOSITORY = "<configured repo name in Review Board>"


Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - https://www.reviewboard.org

--
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 reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chuck O'Neill

unread,
Aug 7, 2015, 12:03:03 PM8/7/15
to reviewboard
Thanks Christian - I stumbled into the same solution, but also had permission problems with /var/www/<rbname>/tmp. Once both were fixed, things seem fine. rbi setup-repo failed initially - I presume because of the permission problems - so I configured the .reviewboardrc file by hand. 

Appreciate the reply

Chuck
Reply all
Reply to author
Forward
0 new messages