After once we have successfully setup a review board server(which is not part of this post) we need to setup our client machine to be able to create diffs and upload it onto the review board server for review.
2. Install python setuptools:
a. goto - https://pypi.python.org/pypi/setuptools/1.1#installation-instructions
b. search for "ez_setup.py"
c. right click and save the file.
d. run this script. It is suppose to download and install the proper version of the setuptools.
Note: You may run in a situation where the script could fail due to lack of administrator permissions.
And you would not get a option to run the script as admin. To enable that you would need to do certain registry tweaks manually. Follow the link - http://www.howtogeek.com/howto/windows-vista/add-run-as-administrator-to-any-file-type-in-windows-vista/
e. after successful installation you could see easy_install.exe under the C:\Python27\Scripts location.
f. add "C:\Python27" and "C:\Python27\Scripts" for easy access.
3. Install RBTools:
a. open command prompt
b. type = easy_install -U RBTools
c. It will install the RBTools for you.
Usage:
a. Checkout the code.
b. create a .reviewboardrc file and add line - REVIEWBOARD_URL = 'http://reviewboardpath.com'
c. type post-review - it should create the diff and upload it to the review board server now.
NOTE: If you see a error like "The current directory does not contain a checkout from a supported source code repository". Then in windows one of the most common cause would be that you dont have command line svn installed. It looks like post-review cannot communicate to the svn server through TortoiseSVN.
Here i am covering how to setup windows client developer machine
1. Install Python2.7.3 : download form here - http://www.python.org/download/releases/2.7.3/
Reviewboard doesn't support 3.x versions of python to work properly.
2. Install python setuptools:
a. goto - https://pypi.python.org/pypi/setuptools/1.1#installation-instructions
b. search for "ez_setup.py"
c. right click and save the file.
d. run this script. It is suppose to download and install the proper version of the setuptools.
Note: You may run in a situation where the script could fail due to lack of administrator permissions.
And you would not get a option to run the script as admin. To enable that you would need to do certain registry tweaks manually. Follow the link - http://www.howtogeek.com/howto/windows-vista/add-run-as-administrator-to-any-file-type-in-windows-vista/
e. after successful installation you could see easy_install.exe under the C:\Python27\Scripts location.
f. add "C:\Python27" and "C:\Python27\Scripts" for easy access.
3. Install RBTools:
a. open command prompt
b. type = easy_install -U RBTools
c. It will install the RBTools for you.
Usage:
a. Checkout the code.
b. create a .reviewboardrc file and add line - REVIEWBOARD_URL = 'http://reviewboardpath.com'
c. type post-review - it should create the diff and upload it to the review board server now.
NOTE: If you see a error like "The current directory does not contain a checkout from a supported source code repository". Then in windows one of the most common cause would be that you dont have command line svn installed. It looks like post-review cannot communicate to the svn server through TortoiseSVN.
Precise
ReplyDelete