Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reviewboard/SVN post-review errors: repository path is not in the list of known repositories

I'm having difficulties with creating a new review entry in Review Board automatically through a checkin in Subversion (SVN). I've created a post-commit hook which, when run manually gives the following exception:

Failed to execute command: ['c:\\python25\\Scripts\\post-review', '--repository-   
url=file:///Repository/svn/TestProject', '--user
=reviewmanager', '--password=########', '-p', '--submit-as=mario', '--revision-    
range=44:45', '--server=http://172.16.4.175/reviewboard
--disable-proxy', '--summary=refs #2564 testcheckin for reviewboard', 
'--description=(In [45]) refs #2564 testcheckin for reviewboard. \npublish review', '']

There was an error creating this review request.

The repository path "http://sos35/svn/TestProject" is not in the list of known repositories on the server.

I've created a repository with this specific path in the reviewboard server. svn info gives this path as the rootpath of the svn repository. Running this script on the SVN repository server from the hooks folder.

So everything seems to be lined up for success, except for the previously mentioned exception.

Does anyone have any clue to solve this puzzle? Tried the .reviewboardrc file checkin in the project-root, with no success. Could be because this information in being overridden in the commandline of post-review.

like image 947
Mario Avatar asked Aug 09 '12 11:08

Mario


3 Answers

Make sure that the repository URL in ReviewBoard settings does not end with a slash. That did the trick for me.

like image 118
malenkiy_scot Avatar answered Nov 26 '22 22:11

malenkiy_scot


Perhaps you should ask your review-board administrator to add the root SVN path for you, I encountered this problem yesterday, and soon after the administrator add the SVN path for me, the post-review command worked.

However, I was faced with a new problem, the review request is successfully created but the diff file was not uploaded. I think the integration of review-board with SVN or possibly other SCMs really needs improvement.

like image 45
chenxi.hou Avatar answered Nov 26 '22 23:11

chenxi.hou


I also had similar issue but removing the tick from end of the path fixed the issue.

like image 29
RootUser RD Avatar answered Nov 26 '22 23:11

RootUser RD