trying to setup post-review with perforce got the following error.

I am able to ping and telnet to the perforce server from my
client....  my repository setting is:
Hosting service:  Custom
Repository type:  Perforce
Path: perforce.example.com
Username:  <useranme>
Password:  <password>

$ post-review --debug --summary=p4-testing-change
>>> RBTools 0.3.2
>>> Home = /home/build
>>> svn info
>>> p4 info
>>> repository info: Path: repoman.example.com:1666, Base path: None, Supports 
>>> changesets: True
>>> HTTP GETting api/
>>> HTTP GETting http://vmreviews.lab-example.com/reviews/api/info/
>>> Using the new web API
>>> Generating diff for changenum default
>>> p4 opened -c default
>>> Processing edit of //depot/Iocaine/main/Product/build.xml
>>> Writing "//depot/Iocaine/main/Product/build.xml#197" to "/tmp/tmpzT7Exi"
>>> p4 print -o /tmp/tmpzT7Exi -q //depot/Iocaine/main/Product/build.xml#197
>>> diff -urNp /tmp/tmpzT7Exi 
>>> /home/build/build_client/Iocaine/main/Product/build.xml
>>> Using changenums on Review Board 1.5.2. Falling back to the deprecated 1.0 
>>> API
==> Review Board Login Required
Enter username and password for Review Board at 
http://vmreviews.lab-example.com/reviews/
>>> Looking for 'vmreviews.lab-example /reviews/' cookie in 
>>> /home/build/.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request on perforce.example.com for None
>>> HTTP POSTing to 
>>> http://vmreviews.lab-example.com/reviews/api/json/reviewrequests/new/: 
>>> {'repository_path': 'perforce.example.com'}
>>> Review request created
>>> Attempting to set field 'summary' to 'p4-testing-change' for review request 
>>> '12'
>>> HTTP POSTing to 
>>> http://vmreviews.lab-example.com/reviews/api/json/reviewrequests/12/draft/set/:
>>>  {'summary': 'p4-testing-change'}
>>> Uploading diff, size: 361
>>> HTTP POSTing to 
>>> http://vmreviews.lab-example.com/reviews/api/json/reviewrequests/12/diff/new/:
>>>  {}
>>> Got API Error 105 (HTTP code 200): One or more fields had errors
>>> Error data: {u'fields': {u'path': [u'[P4.connect()] Connect to server 
>>> failed; check $P4PORT.\nTCP connect to perforce.example.com 
>>> failed.\nperforce.example.com: service unknown.\n']}, u'stat': u'fail', 
>>> u'err': {u'msg': u'One or more fields had errors', u'code': 105}, 
>>> u'deprecated': {u'in_version': u'1.5'}}

Error uploading diff

The generated diff file was empty. This usually means no files were
modified in this change.

Try running with --output-diff and --debug for more information.

Your review request still exists, but the diff is not attached.

$ post-review --debug --summary=p4-testing-change --output-diff
>>> RBTools 0.3.2
>>> Home = /home/build
>>> svn info
>>> p4 info
>>> repository info: Path: repoman.example.com:1666, Base path: None, Supports 
>>> changesets: True
>>> HTTP GETting api/
>>> HTTP GETting http://vmreviews.lab-example.com/reviews/api/info/
>>> Using the new web API
>>> Generating diff for changenum default
>>> p4 opened -c default
>>> Processing edit of //depot/Iocaine/main/Product/build.xml
>>> Writing "//depot/Iocaine/main/Product/build.xml#197" to "/tmp/tmpDCtOBl"
>>> p4 print -o /tmp/tmpDCtOBl -q //depot/Iocaine/main/Product/build.xml#197
>>> diff -urNp /tmp/tmpDCtOBl 
>>> /home/build/build_client/Iocaine/main/Product/build.xml
>>> Using changenums on Review Board 1.5.2. Falling back to the deprecated 1.0 
>>> API
--- //depot/Iocaine/main/Product/build.xml      //depot/Iocaine/main/
Product/build.xml#197
+++ //depot/Iocaine/main/Product/build.xml      2011-03-30 06:09:25
@@ -1,4 +1,5 @@
 <project name="Iocaine" default="all-nodist" basedir=".">
+<project name="Iocaine" default="all-nodist" basedir=".">
        <property environment="env" />

        <property name="src_dir" value="src/" />
$


what does "check $P4PORT.\nTCP connect to perforce.example.com
failed." mean?

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to