Saturday, January 25, 2014

MAC SVN from Terminal

Am pretty used to SmartSVN on my MAC and Tortoise SVN on Windows. Being an evaluation version of SmartSVN, the tagging and branching features are not available. Below simple steps will help us to use the Command line SVN tool that comes along with Terminal 

To checkout the repository, below command can be used

svn checkout

Once checked out, the same files can be updated using the below command very easily. 

svn update

My orginal intention was to branch an existing path in SVN and the command to do that is as below 


svn copy    -m "Creating a private branch for new features"

Few of additional commands are given below 

svn commit -m "some message about what you did"
svn remove path/to/a/file/or/folder
svn rename path/to/oldfilename path/to/newfilename
svn status //gives the total status of local repo. such as files to be committed etc.


To create a branch, the sample command is like belw

svn copy http://svn.mportal.co.in:8080/svn/twc/iOS-twc/branches/BRANCH_MY_TWC_CLIENT_1_DEC_2014_V5.1_FDP_AND_VC_PHASE_2 http://svn.mportal.co.in:8080/svn/twc/iOS-twc/branches/BRANCH_MY_TWC_CLIENT_10_DEC_2014_V5.5_Notifications -m "TWCIOSPORTING-5 Branch for notification implementation"

Now to copy a certain revision, below command can be used.
svn copy -r45490 http://10.11.252.152:8080/svn/twc/iOS-twc/branches/BRANCH_6.3 http://10.11.252.152:8080/svn/twc/iOS-twc/branches/BRANCH_6.3_TestFlight -m "TWCIOSPORTING-5 Branch for fixing the crash on iOs 9.0- 9.2 OS versions"