2013-02-27 5 views
-1

Я установил обзор. Я добавил локальный репозиторий GIT. При создании запросов на просмотр репозиторий доступен для выбора. Но когда я выбираю файл из репозитория и пытаюсь добавить его как Diff, он говорит: «Выбранный файл не является diff.». Пожалуйста, дайте мне знать, есть ли у кого-нибудь ответ на этот вопрос. Спасибо ....Ошибка во время запроса на просмотр в обзоре

ответ

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