
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Basic Work Cycle
|
29
Make Changes to Your Working Copy
Now you can get to work and make changes in your working copy. It’s usually most
convenient to decide on a particular change (or set of changes) to make, such as writ-
ing a new feature, fixing a bug, etc. The Subversion commands that you use here are
svn add, svn delete, svn copy, and svn move. However, if you are merely editing a file
(or files) that is already in Subversion, you may not need to use any of these com-
mands until you commit. Changes you can make to your working copy:
File changes
This is the simplest sort of change. You don’t need to tell Subversion that you
intend to change a file; just make your changes. Subversion will be able to auto-
matically detect which files have been changed.
Tree changes
You can ask Subversion to mark files and directories for scheduled removal,
addition, copying, or moving. While these changes may take place immediately
in your working copy, no additions or removals happen in the repository until
you commit them.
To make file changes, use your text editor, word processor, graphics program, or
whatever tool you would normally use. Subversion handles binary files just as easily
as it handles text files—and just as efficiently, too.
Here is an overview of the four Subversion subcommands that ...