Upload
jayakrishnan-melethil
View
232
Download
0
Embed Size (px)
Citation preview
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 1/21
SVN management using XCode-SCM
Presented by:Rachna A
9-Dec-2010
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 2/21
What is a ver sion?
One of a sequence of copies of a pr ogr am, eachincor por ating new modifications. Each ver sion is usually
identified by a number , commonly of the for m X.Y where X isthe major ver sion number and Y is the release number .
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 3/21
What is ver sion contr ol or SCM?
SCM stands for software configur ation managementIn software engineer ing, software configur ationmanagement (SCM) is the task of tr acking and contr ollingchanges in the software. Configur ation management
pr actices include revision contr ol and the establishment of baselines.
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 4/21
What are the uses of ver sion contr ol?
1. It pr ovides one method for an entire team to use; ever ybodyoper ates under the same 'gr ound rules'.
2. The ability to tr ack changes pr omotes accountability and makesit easier to find the r ight per son to solve problems in the
mater ials maintained.3. A list of exact changes made can be generated quickly and
easily, making it easier to advise user s of the infor mation on how it has changed f r om ver sion to ver sion.
4. It is easy to 'roll back' to an earlier version of the infor mation,if a ser ious mistake was made dur ing a change.
5. Regulates multiple user s wanting to change the same file
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 5/21
What is SVN?
Stands for Subver sion. Ver sion contr ol system that is used.
It is open source and f ree software.
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 6/21
What do you need to use SVN?
1. SVN Ser ver - A ser ver where you can host your repositor y. eg:-pr ojectlocker or create a local repositor y
2. SVN client - on each user s system. GUI based SVN clients are
the best eg:- xcode
Other SVN clients available in the mar ket:Windows - Tor toise SVNMac - Ver sions, Smar tSVN, svnX
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 7/21
SVN Folder Structure
Trunk: The trunk is the main line of development in a SVNrepositor y.
Br anch: A branch is a side-line of development created to make lar ger , exper imental or disrupting wor k without annoying user s of the
trunk ver sion. Also, br anches can be used to create developmentlines for multiple ver sions of the same pr oduct, like having a place tobackpor t bugfixes into a stable release.
Tags: Finally, tags are mar ker s to highlight notable revisions in the
histor y of the repositor y, usually things like "this was released as1.0".
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 8/21
How to create a local repositor y on your system?
Open the ter minal and navigate to the desired patheg:- /Users/Shared/subversion
Type 'svnadmin create <Repositor y Name>'eg:- svnadmin create SampleRepository
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 9/21
Tell Xcode about your repositor y
Step 1: Select SCM->Repositor ies menu item
Step 2: Select Configure option in the pop up dialog
contd...
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 10/21
Tell Xcode about your repositor ycontd....
Step 3: In the XCode pref erences screen, select the '+' sign to add anew repositor y
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 11/21
Tell Xcode about your repositor ycontd....
Step 4: Type in the name of the repositor y and select the SCMsystem
Step 5: Type in the URL of the repositor y
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 12/21
Tell Xcode about your repositor ycontd....
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 13/21
Tell Xcode about your repositor ycontd....
Step 6: Impor t your pr oject into the repositor y
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 14/21
Tell Xcode about your repositor ycontd....
Step 7: Checkout the pr oject to get a wor king copy
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 15/21
Tell Xcode about your repositor ycontd....
Step 8: Select Pr oject->Edit Pr oject Settings -> Gener al taband click on 'Configure Roots and SCM' button
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 16/21
Tell Xcode about your repositor ycontd....
Step 9: Right-click on 'Gr oups and Files' in the XCode window andselect SCM in the pop-up
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 17/21
How to get the URL of your repository
Local Repositor yURL syntax - file://<repositor y path>eg:- file:///Users/Shared/subversion/SampleRepository
Shared Repositor y1. Log in to pr oject locker
2. Select User Home link3. Select the URL corresponding to the specific pr oject.eg:- https://equity2.projectlocker.com/RapidValue/AngiesList_iPhone/svn
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 18/21
SVN Terms
Checkout: getting a new wor king copy of the files f r om the repositor yonto a local computer .
Commit: Send changes f r om your wor king copy to the repositor y
Update: Get latest changes in the repositor y into your local system Add: Add files and director ies to your wor king copy and schedule them for addition to the repositor y. They will be uploaded and addedto the repositor y on your next commit.
contd...
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 19/21
SVN Terms
Delete: Items specified are scheduled for deletion upon the nextcommit. Files (and director ies that have not been committed) are immediately removed f r om the wor king copy.
Note: Do not use this command unless it is really needed. Be ver y
caref ul while using this command on a live pr oject repositor y
Diff: Shows the diff erences between two ver sion of a file
Rever t: Undo all local edits
Resolve: Resolve ³conflicted´ state on wor king copy files or director ies.
8/8/2019 SVN Management Using XCode SCM
http://slidepdf.com/reader/full/svn-management-using-xcode-scm 20/21
Things to remember
Do not exper iment with a live pr oject repositor y under anycircumstances. Create a local repositor y for exper imentalpur poses.
Always change the passwor d of Pr ojectLocker after the
fir st login. When adding new files to your pr oject always remember
to do a pr oject commit. For file modifications however , it issufficient to commit only the specific files.