Publishing the generated code diff to Review Board

Exclusive offer: get 50% off this eBook here
Getting Started with Review Board

Getting Started with Review Board — Save 50%

Analyze and improve your code using the collaborative code review tool, Review Board with this book and ebook

£13.99    £7.00
by Sandeep Rawat | February 2014 | Open Source

This article, written by Sandeep Rawat, the author of Getting started with Review Board, highlights posting of code review requests by publishing a code review request through the web application of Review Board.

(For more resources related to this topic, see here.)

You have authored some code changes and prepared a code diff. Now you want to publish it to Review Board so as to share it with the team for review. Let us create and publish a code review request with the code diff that we generated.

When you log in to your Review Board site, you see different tabs at the top navigation bar. New Review Request is one of them. Clicking on this tab will lead you to the following screen:

You have to provide the following details in the case of an SVN repository:

  • Repository: This dropdown lets you choose the repository on which you are working. It lists all of the repositories added by the admin.
  • Base Directory: This shows the absolute path of the directory for which you have generated the SVN diff.
  • Diff: The process of uploading the code diff varies from VCS to VCS; that is, the fields required for creating the new review request will change as per the selected repository (if the repositories are of a different type of VCS). Let's see what the screen for creating a review request looks like for Git:

In the case of Git, the diff option remains the same; you don't have to provide a base directory in this case(unlike SVN). There is an additional field named Parent Diff that is a common field for distributed version control systems such as Git or Mercurial.

As a standard practice, you should make sure that all of the branches in your Git repository are made available in the Review Board server. If that is not the case, you will not be able to post the code diff for a branch that is not available directly because Review Board will not be able to show the code diff. In this case, you have to use the Parent Diff feature of Review Board.

Summary

This article explained briefly about one of the methods of publishing the generated code diff to Review Board to get it reviewed by others.

Resources for Article:


Further resources on this subject:


Getting Started with Review Board Analyze and improve your code using the collaborative code review tool, Review Board with this book and ebook
Published: February 2014
eBook Price: £13.99
Book Price: £21.99
See more
Select your format and quantity:

About the Author :


Sandeep Rawat

Sandeep Rawat is a passionate DevOps consultant who has extensive knowledge of build and release automation along with skills to manage a secure and scalable cloud infrastructure. He is an expert at streamlining build and release processes, and he has used them to achieve multiple, smooth build and releases per day at one of India's popular e-commerce website, Snapdeal. Currently, he is associated with Mettl, an online assessment solution for testing technical, aptitude, and psychometric skills. He works there as a DevOps consultant.

Sandeep is also an avid blogger. He blogs at http://sandy4blogs.blogspot.in/. In his spare time, he loves to work on various utilities; these can be found on his GitHub profile at https://github.com/sandy724.

His recent technology love is Puppet and Cloud Hosting.

Books From Packt


Cinder – Begin Creative Coding
Cinder – Begin Creative Coding

Cinder Creative Coding Cookbook
Cinder Creative Coding Cookbook

Sonar Code Quality Testing Essentials
Sonar Code Quality Testing Essentials

Learning Gerrit Code Review
Learning Gerrit Code Review

Programming with CodeIgniter MVC
Programming with CodeIgniter MVC

 CodeIgniter 1.7 Professional Development
CodeIgniter 1.7 Professional Development

CodeIgniter 1.7
CodeIgniter 1.7

 CodeIgniter 2 Cookbook
CodeIgniter 2 Cookbook


Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software