• No results found

Introduction to Version Control in

N/A
N/A
Protected

Academic year: 2021

Share "Introduction to Version Control in"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

Introduction to Version Control in

Toad™

In Toad™ you can use Version Control to work with different versions of database objects and to keep the database updated. You can review, manage, compare, and revert to any version of an object. This paper covers the Version Control feature in regard to SVN repository. This paper applies to Toad™ for IBM® DB2® 5.5 and newer.

Before you use Version Control in Toad

In order to enable Version Control in Toad you need to connect to an SVN repository server using an SVN client.

You can find and use freeware SVN software, e.g. Apache™ or TortoiseSVN. You should remember the location of your SVN repository installation for setting up Version Control in Toad.

How to setup Version Control

Right-click an object in a database and select Version Control | Version Control Wizard.

Click Next, select the database alias and click Next.

Select the Provider Type from:

 File system based

 Subversion

 Team Foundation Server via Team Explorer 2008

 Team Foundation Server via Team Explorer 2010

 Team Foundation Server via Team Explorer 2012

If you select Subversion write your SVN server address into Server, enter your SVN repository login and password, and click Next. Enter the path to bin folder of your SVN repository client, e.g. “C:\Program Files\TortoiseSVN\bin” and click OK.

Select the Version Control folder on your SVN server, Working folder on your disk, click Next and then click Finish.

NOTE: All different revisions of your database objects are stored on the SVN server. The working folder on your disk stores the current version of database objects.

(2)

How to include an object in Version Control

1. If you want to include an Untracked object in Version Control you right-click its icon in Object Explorer and select Version Control | Commit.

2. You need to enter a comment, check the object you want to commit and click OK.

3. After a moment its icon and status change to UpToDate ( ).

(3)

4. When you alter the object, e.g. add a column, its icon and status change to Modified to indicate that you are working with a revision that is different from the revision stored on SVN server.

5. You need to right-click the object and select Version Control | Commit to save the changes to the SVN

server. The icon and status change to UpToDate( ).

How to use Version Control

When you right click the object and select Version Control you can:

 Show Perspective to show status of all objects in SVN Repository

 Diff to show differences between versions of an object

(4)

 Diff with latest revision to show the differences between the current and the latest committed subversion

 Show history to review all changes of an object

(5)

NOTE: After Version Control has been set, object icons in Object Explorer change to:

Table 1.

Icon Description

Objects that do not use Version Control are Untracked

For objects with UpToDate status

Objects that have been Modified and not yet commited

Objects that were modified by you and on the server at the same time have Merge status

Objects that were modified on the server have OutOfDate status

For objects with Unknown status

(6)

© 2014 Dell Inc.

ALL RIGHTS RESERVED.

This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a software license or nondisclosure agreement. This software may be used or copied only in accordance with the terms of the applicable agreement. No part of this guide may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and recording for any purpose other than the purchaser’s personal use without the written permission of Dell Inc.

The information in this document is provided in connection with Dell products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Dell products.

EXCEPT AS SET FORTH IN THE TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE AGREEMENT FOR THIS PRODUCT, DELL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL DELL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF DELL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Dell makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Dell does not make any commitment to update the information contained in this document.

If you have any questions regarding your potential use of this material, contact:

Dell Inc.

Attn: LEGAL Dept 5 Polaris Way Aliso Viejo, CA 92656

Refer to our web site (software.dell.com) for regional and international office information.

Trademarks

Dell, the Dell logo, and Toad are trademarks of Dell Inc. Other trademarks and trade names may be used in this document to refer to either the entities claiming the marks and names or their products. Dell disclaims any proprietary interest in the marks and names of others.

References

Related documents