在ReviewBoard中提出审核请求时出错

时间:2013-02-27 15:39:27

标签: review-board

我已经安装了评论板。我添加了本地GIT存储库。在创建审阅请求期间,可以选择存储库。但是,当我从存储库中选择一个文件并尝试将其添加为Diff时,它会说“所选文件似乎不是差异。”#39;如果有人对这个问题有任何答案,请告诉我。感谢....

2 个答案:

答案 0 :(得分:1)

git diff <filename1> ><filename2>.diff

这可以用于生成diff文件。

答案 1 :(得分:0)

Some helpful tips for reviewboard are:

Log Settings:
Check/Tick - Enable logging
Log directory: /var/www/reviewboard
Log Level: Debug

Review board git configuration steps::
$ git config --global user.name "Chalpat Rauth"
$ git config --global user.email chalpat.rauth@ap.sony.com
You can veryify the entries in vim ~/.gitconfig
$ ssh-keygen -t rsa
copy the public key ./root/.ssh/id_rsa.pub to gitlab as a new key 
chmod 700 -R /root/.ssh/
git clone git@gitlab.csx.sony.co.jp:testtest.git
During configuration in ReviewBoard:
Hosting service: None - Custom Repository
Repository Type: Git
Path: /var/www/reviewboard/code/testtest/.git
Note the below:
In path: /var/www/reviewboard/code/testtest/helloworld/src/test/java/com/sony/csx
git add <file_name>
git commit -m "This is second commit"
git push
git diff HEAD >DiffForReview

LDAP Settings::
Check/Tick - Allow anonymous read-only access
Authentication Method: LDAP
LDAP Server: ldap://ldap.csx.sony.co.jp
LDAP Base DN: dc=csx,dc=sony,dc=co,dc=jp
Surname Attribute: csxUsername1
Full Name Attribute: csxUsernameF
E-Mail LDAP Attribute: mail
User Mask: uid=%s