Thanks David, I wrote a small tool to do that job :)
On Friday, November 25, 2016 at 12:43:15 PM UTC+8, David Trowbridge wrote: > > Hi, > > It's perhaps a little out of date, but there is an example svn hook to > post changes to Review Board at > https://github.com/reviewboard/reviewboard/blob/master/contrib/tools/svn-hook-postcommit-review > > -David > > On Wed, Nov 23, 2016 at 1:29 AM Hansen Gao <[email protected] > <javascript:>> wrote: > >> We are now using svn and reviewboard. I am trying to use svn post-commit >> hook and RBTools to generate reviewboard post review automatically for each >> svn commit. >> >> Now I can get the revision number for each svn commit and store it in a >> text file: >> >> >> @echo off >> SET REPOS=%1% >> SET REV=%2% >> SET RPATH=PATH_TO_STORE >> >> CALL :getfilename %REPOS% >> >> echo %REV% >> %RPATH%\%FNAME%.txt >> >> :success >> exit 0 >> >> :getfilename >> set FNAME=%~nx1 >> >> >> >> I know how to publish a review request from svn client side: >> >> rbt post -g auto -p --server http://127.0.0.1 --repository REPO1 >> --repository-type svn --username user1 --password pwd1 --debug >> >> >> But I do not know how to generate a post review request through RBTools >> for a specified SVN revision. Please help :) >> >> >> >> -- >> 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 [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
