-1

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

4

2 回答 2

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

这可用于生成差异文件。

于 2013-02-28T12:02:51.760 回答
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
于 2014-03-01T08:10:54.847 回答