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

Subversion command-line reference


The following table provides a list of SVN commands:

Getting help

Subversion has an extensive help system. To view the list of available commands, use SVN Help. Using svn help <command> will give detailed information on the usage of the specified command, along with any switches that can be used with that command.

Syntax

Usage

svn help

Shows a list of commands.

svn help <command>

Shows detailed help for that command.

Working with working copies

Syntax

Usage

svn checkout "/PATH/branchname/"

Performs a checkout, creating a working copy of the branch (or trunk) specified.

svn checkout "/PATH/branchname/" <foldername>

As above, but checks out into a folder with the name specified.

svn update –r<revision-number> "/PATH/TO/UPDATE_FROM"

Updates your working copy to the specified revision (or the latest revision, if no revision number is specified).

svn add

Used to add files to version control. Switches are filename, foldername (in which case subfolders and files will be added), * (all items will be added, recursively, ignoring already versioned folders), and * --force (which will recourse into versioned directories).

svn copy "source" "destination"

Copies from the source path to the destination path.

svn move "source "destination"

Moves files from the source path to the destination path.

svn delete "/PATH"

Deletes the target path.

svn revert "/path/to/file"

Reverts changes to the specified file or folder.

svn log "/PATH"

Shows log messages.

svn blame "/PATH"

Shows commits and messages for the given path.

svn diff "/PATH/filename"

See changes to filename.

svn diff "/PATH/file@1" "/PATH/ file@3"

See changes to filename between revisions one and three.

svn merge "URL1" "URL2" "/PATH/ filename"

Apply the diff of URL1 and URL2 to filename.

svn commit "/PATH"

Commit changes to a file or folder

svn resolve "/PATH"

Resolve a conflict.

svn cleanup "/PATH"

Remove locks and complete operations – acts recursively.

svn lock "/PATH"

Get a lock on the given path.

svn unlock "/PATH"

Releases a lock on a given path.

svn cat "/PATH/filename"

Prints the contents of the file to the screen.

svn status "/PATH"

Shows the status of the path.

svn propdel <PROPERTY> "/PATH"

Deletes <PROPERTY>.

svn propget <PROPERTY> "/PATH"

Gets the value of <PROPERTY>

svn proplist "/PATH"

Lists the properties of /PATH

svn propset <PROPERTY> <VALUE> "/PATH"

Sets <PROPERTY> to <VALUE> for /PATH

Arguments for commands

These arguments can be added to SVN commands to modify the default behavior. For example, svn update will update to the latest revision by default, but svn update –r101 will update to revision 101.

Argument

Usage

-m "Message content"

Adds a message

-q

Quiet

-v

Verbose

-r<number>

Revision number

-c

Change

-t

Transaction

-R

Recursive

-N

Non recursive

Properties and statuses

The following are the possible statuses that an item can have. If there is no status listed beside an item, that means there have been no modifications.

Property

Meaning

A

Added

D

Deleted

M

Modified

R

Replaced

C

Conflict

X

External

I

Ignored

?

Not found in repository

!

Missing

~

Type changed