Book Image

TortoiseSVN 1.7 Beginner's Guide

By : Lesley Harrison
Book Image

TortoiseSVN 1.7 Beginner's Guide

By: Lesley Harrison

Overview of this book

<p>TortoiseSVN is a Subversion client that gives you quick and easy access to all of Subversion's features. Perhaps you are aware of the importance of version control in software development or document management, but do you know how to use TortoiseSVN for efficient project management? Here is the first book about version control with TortoiseSVN.</p> <p><em>TortoiseSVN 1.7 Beginner's Guide</em> provides a comprehensive coverage of TortoiseSVN in its entirety. It is easy to follow the instructions with clear explanations and screenshots. This book will introduce the important features of TortoiseSVN and at the same time, give you a deeper and clearer understanding of the basic functionality, providing the answers to many questions that are encountered when using TortoiseSVN. TortoiseSVN is a client to SVN, but with this book and TortoiseSVN, you don't need to know anything about SVN, or wade through boring version control theory to get started using one of the most powerful version control applications in the world.</p> <p>The book begins by introducing you to the basics of TortoiseSVN and tools needed to get started with version control. It then dives deep into details, covering the methods available to check and commit changes and keep track of data. Chapters cover conflict management, branching and merging of a project to avoid disturbing the main development version, using TortoiseSVN with popular bug-tracking systems, and much more.</p> <p>By following the practical steps in this book, you will learn every aspect of using TortoiseSVN—from setting up the subversion server, to working with revision logs, and providing security and protection for your subversion server.</p>
Table of Contents (19 chapters)
TortoiseSVN 1.7
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – using a pre-commit hook in TortoiseSVN


Quinn decides to make use of a pre-commit script provided by the makers of TortoiseSVN. The script is available from TortoiseSVN's Google Code Project, which checks .cpp and .h files and shows an error for every file the user forgot to update the copyright year. It's a simple matter to change the .cpp to .py so that the Python files in the project are checked.

  1. Download the script from: http://code.google.com/p/tortoisesvn/source/browse/trunk/contrib/hook-scripts/client-side/checkyear.js. If necessary, modify it to suit the file type, and copyright message format, of your project.

  2. Make a note of where you save the file; you'll need the path later.

  3. Bring up the TortoiseSVN right-click menu and select Settings.

  4. In the Settings dialog box that appears, select Hook Scripts, then click Add.

  5. Set the Hook Type to Pre-Commit Hook. Tick Wait for the script to finish, point the working copy path to your working copy, and in the Command Line To Execute...