background preloader

Svn

Facebook Twitter

Dominik Pich : Update SVN-Client in XCode (and OSX if you like) Merge - SVN - how to apply change made in trunk to all branches. Mac OS X: SVN (Subversion) missing in Mountain Lion (10.8) After upgrading to Mountain Lion, I realized that subversion (svn) was missing. Since I happened to install a new version of eclipse I first thought the problem was with my eclipse install but after wasting way too much time trying to fix it in eclipse I realized my problem was somewhere else… So here’s what I did to fix it. SVN is part of the Command Line Tools. To install them go to Downloads for Apple Developers. This requires an Apple Developer ID.

An alternative is to install Xcode. The downside of this method is that you have to install Xcode which is a waste of space (1.5 GB download and 3.3 GB install) unless you develop for Mac OS X or iOS. Once you’ve installed the Command Line Tools, you can check whether SVN is installed and whether you have the right version (1.6.18) opening a Terminal and typing the following: That’s it !

Update: Another way is to use Homebrew or MacPorts. With Homebrew installed, open a Terminal window and type the following: If you get the following error: Svn - How to remove a file from version control without deleting it. Using command-line Subversion. Getting started with command-line Subversion If you are participating in a development project that is using Subversion for version control, you will need to use Subversion to access and change project source files.

You can browse the source code online to view a project's directory structure and files by clicking on the Subversion link in the left navigation pane for the project. The Subversion page displays with three subdirectories: branches/, tags/, trunk/ and one README file. The README file gives a top level view of the Subversion repository. Getting a local working copy for your project: svn checkout To get a "working copy" of the latest source files, you must check out the source files, a process which copies the files onto your system from the repository. Svn checkout Enter your user password when prompted. See Basic Work Cycle, Initial Checkout, Working Copies Working with files in the Subversion repository svn add FILENAME/DIR. svn blame FILENAME See svn log. Colordiff. Marvin Tam | Coloring svn diff output on Mac OS. It’s nice to be able to quickly distinguish changes in svn diff‘s output.

We can do that with a little Perl wrapper called ColorDiff. Get ColorDiff First, install MacPorts if you haven’t already. First snag — my new employer‘s network firewall blocks rsync for some reason, so sudo port selfupdate didn’t work for me. However, turns out that I can also get the ports tree using Subversion or tarball via HTTP. Next, install ColorDiff using the command sudo port install colordiff.

Configure Subversion Client Open up ~/.subversion/config in your favorite text editor, and search for this line: Add this line right below it (I like keeping the default examples intact): Et voilà: Further Steps The default colors are kinda ugly, but you can customize the color output using ~/.colordiffrc as documented in man colordiff.