2013-02-27 20 views
-1

我已经安装了评论板。我添加了本地GIT存储库。在创建审阅请求期间,可以选择存储库。但是,当我从存储库中选择一个文件并尝试将其添加为Diff时,它会显示“所选文件似乎不是差异”。请让我知道,如果有人有任何问题的答案。谢谢....在ReviewBoard中提出审查请求时出错

回答

1
git diff <filename1> ><filename2>.diff 

这可用于生成diff文件。

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 [email protected] 
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 [email protected]: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