Retired Document
Important: This document, which describes Xcode 3, has been superseded in Xcode 4 by the chapter Repositories, Snapshots, and Archives from the Xcode Overview.
Using Source Control and Snapshots
Source control and snapshots let you keep track of changes you make to your source files. However, they are not made to work together. Snapshots provide an undo/redo mechanism with local change stores. Source control provides the benefits of snapshots but with a more robust back end and support for multiple developers.
You may want to use source control to work on a project in which other developers also work. That way, you can stay up to date with the changes your colleagues make. But you may also want to undo/redo changes you make locally. If you choose to do so, you should keep the following in mind:
When your source control system places metadata in your project root (through
.svn
orCVS
directories, for example), restoring an entire snapshot restores these metadata, as well, which may result in potentially serious synchronization problems with the repository.Therefore, if you’re using source control and snapshots in the same project, you should never restore entire snapshots. Instead, you should restore individual files or changes.
If you restore a snapshot made before a commit operation, you revert the affected files to a state prior to the commit.
Therefore, after performing a commit that would cause such reversion, you should take measures to ensure that the next commit operation involving those files does not revert changes published by other developers.
Copyright © 2011 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2011-03-08