SVN Management Using XCode SCM
SVN Management Using XCode SCM
Presented by:
Rachna A
What is a version?
1. SVN Server - A server where you can host your repository. eg:-
projectlocker or create a local repository
2. SVN client - on each users system. GUI based SVN clients are
the best eg:- xcode
Other SVN clients available in the market:
Windows - Tortoise SVN
Mac - Versions, SmartSVN, svnX
SVN Folder Structure
Trunk: The trunk is the main line of development in a SVN
repository.
Branch: A branch is a side-line of development created to make
larger, experimental or disrupting work without annoying users of the
trunk version. Also, branches can be used to create development
lines for multiple versions of the same product, like having a place to
backport bugfixes into a stable release.
Tags: Finally, tags are markers to highlight notable revisions in the
history of the repository, usually things like "this was released as
1.0".
How to create a local repository on your system?
Step 1: Select SCM->Repositories menu item
Step 2: Select Configure option in the pop up dialog
contd...
Tell Xcode about your repository
contd....
Step 3: In the XCode preferences screen, select the '+' sign to add a
new repository
Tell Xcode about your repository
contd....
Step 4: Type in the name of the repository and select the SCM
system
Tell Xcode about your repository
contd....
Step 7: Checkout the project to get a working copy
Tell Xcode about your repository
contd....
Step 8: Select Project->Edit Project Settings -> General tab
and click on 'Configure Roots and SCM' button
Tell Xcode about your repository
contd....
Step 9: Right-click on 'Groups and Files' in the XCode window and
select SCM in the pop-up
How to get the URL of your repository
• Local Repository
URL syntax - file://<repository path>
eg:- file:///Users/Shared/subversion/SampleRepository
• Shared Repository
1. Log in to project locker
2. Select User Home link
3. Select the URL corresponding to the specific project.
eg:- https://equity2.projectlocker.com/RapidValue/AngiesList_iPhone/svn
SVN Terms
Checkout: getting a new working copy of the files from the repository
onto a local computer.
Commit: Send changes from your working copy to the repository
Update: Get latest changes in the repository into your local system
Add: Add files and directories to your working copy and schedule
them for addition to the repository. They will be uploaded and added
to the repository on your next commit.
contd...
SVN Terms
Delete: Items specified are scheduled for deletion upon the next
commit. Files (and directories that have not been committed) are
immediately removed from the working copy.
Note: Do not use this command unless it is really needed. Be very
careful while using this command on a live project repository
Things to remember