Hi , I have installed ReviewBoard 2.0.12 and Collabnet SVN Edge with following environment : OS : Ubuntu 14.10 ReviewBoard : 2.0.12 Collabnet SVN Edge : 4.0.13 RBTools : 0.7.2
I am facing issues while automating rbt post via post hook script . My post-commit hook is as follows : *#!/bin/bash* *REPOS="$1"* *REV="$2"* *TXN_NAME="$3"* *AUTHOR=$(svnlook author -r $REV $REPOS)* *DATE=$(svnlook date -r $REV $REPOS)* *{* * echo "REPOSITORY: $REPOS"* * echo "REVISION: $REV"* * echo "COMMITTED BY: $AUTHOR"* * echo "DATE: $DATE"* * echo "**************************************************"* * echo "DESCRIPTION:"* * svnlook log -r $REV $REPOS* * echo "FILES:"* * svnlook changed -r $REV $REPOS* * echo "**************************************************"* * echo "Diff "* * echo ""* * svnlook diff $REPOS* *} | mail -s "SVN Check In Rev $REV by $AUTHOR" randhir* *rbt post -d --server http://192.168.0.2:82/reviews --username=admin --password=asdf123 --submit-as=$AUTHOR --repository IT --repository-type svn* But somehow the reviews are not getting posted to the review board server, however i am getting the check in mails perfectly with the diff. when i peform a checkout on a command line and then run this rbt post command exactly same as in post commit hook then the reviews are getting posted . See below : *root@server2:/abc/IT# rbt post -d --server http://192.168.0.2:82/reviews --username=admin --password=asdf123 --submit-as=$AUTHOR --repository IT --repository-type svn* *>>> RBTools 0.7.2* *>>> Python 2.7.8 (default, Oct 20 2014, 15:05:19)* *[GCC 4.9.1]* *>>> Running on Linux-3.16.0-23-generic-x86_64-with-Ubuntu-14.10-utopic* *>>> Home = /root* *>>> Current directory = /abc/IT* *>>> Checking for a Subversion repository...* *>>> Running: svn info --non-interactive* *>>> Running: diff --version* *>>> Running: svn --version -q* *>>> repository info: Path: http://192.168.0.2:18080/svn/IT, Base path: /, Supports changesets: False* *>>> Making HTTP GET request to http://192.168.0.2:82/reviews/api/* *>>> Making HTTP GET request to http://192.168.0.2:82/reviews/api/repositories/* *>>> Running: svn info --non-interactive* *>>> Running: diff --version* *>>> Running: svn --version -q* *>>> repository info: Path: http://192.168.0.2:18080/svn/IT, Base path: /, Supports changesets: False* *>>> Running: svn status -q --ignore-externals* *>>> Running: svn diff --diff-cmd=diff --notice-ancestry -r BASE* *>>> Running: svn info trunk/abc* *>>> Running: svn info trunk* *>>> Running: svn diff --diff-cmd=diff --notice-ancestry -r BASE --no-diff-deleted* *>>> Running: svn info trunk/abc* *>>> Running: svn info trunk/abc* *>>> Running: svn info trunk/abc* *>>> Making HTTP GET request to http://192.168.0.2:82/reviews/api/validation/diffs/* *>>> Making HTTP POST request to http://192.168.0.2:82/reviews/api/validation/diffs/* *>>> Making HTTP GET request to http://192.168.0.2:82/reviews/api/review-requests/?only-links=create&only-fields=* *>>> Making HTTP POST request to http://192.168.0.2:82/reviews/api/review-requests/* *>>> Making HTTP GET request to http://192.168.0.2:82/reviews/api/review-requests/10/diffs/?only-fields=* *>>> Making HTTP POST request to http://192.168.0.2:82/reviews/api/review-requests/10/diffs/* *>>> Making HTTP GET request to http://192.168.0.2:82/reviews/api/review-requests/10/draft/?only-fields=commit_id* *Review request #10 posted.* *http://192.168.0.2:82/reviews/r/10/* *http://192.168.0.2:82/reviews/r/10/diff/* but when i perform a commit to make this post commit hook run then i see below error : *root@server2:/abc/IT# svn commit -m "test"* *Sending trunk/abc* *Transmitting file data .* *Committed revision 35.* *Warning: post-commit hook failed (exit code 1) with output:* *>>> RBTools 0.7.2* *>>> Python 2.7.8 (default, Oct 20 2014, 15:05:19)* *[GCC 4.9.1]* *>>> Running on Linux-3.16.0-23-generic-x86_64-with-Ubuntu-14.10-utopic* *>>> Home =* *>>> Current directory = /* *>>> Checking for a Subversion repository...* *>>> Running: svn info --non-interactive* *>>> Command exited with rc 1: ['svn', 'info', '--non-interactive']* *svn: E155007: '/' is not a working copy* *---* *ERROR: The provided repository type was not detected in the current directory.* Somehow via post commit hook Home and Current directory is not identified . Please Help. I have all the working setup but still not able to use Reviewboard as it is not getting automated . -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.