Get Started with Subversion using SvnX

A very important part of a development environment is source code control. Subversion is the server-side software that I use for this. There are a number of SVN clients for the Mac. Let’s take a closer look at setting up my favorite SVN client for the Mac – SvnX.

SvnX is a free and open source SVN client for the Mac. It has a rather simple user interface and supports most features required for SVN work. Let’s install it to get a better idea of what it can do. Head over to the SvnX site and download the latest release. After your download completes it should extract automatically. Drag and drop the SvnX application into your system’s Applications folder. That’s it, the installation of SvnX is complete. SvnX is a front-end for the SVN client, and therefore we need to also install the SVN client binary for SvnX to work.

Download the SVN client binary from here. Extract the file you download and copy the svn binary file to /usr/local/bin/

Double click on SvnX in your Applications folder to launch it. The first screen will look something like in the image below. There are two windows here, titled Working Copies and Repositories. You’ll get a better idea of what these two are as we go along.

Before we get into the details of configuring SvnX here’s a quick explanation of how SVN works. There is a repository hosted on a central server which keeps a copy of the documents for project. This could be code or other kinds of documents. The repository maintains versions of the documents. Every time you “check in” new versions it adds a “tag” for the new version so that you can retrieve an older version of the document at any time. Here’s a very good introduction to how SVN works.

To configure SvnX click on SvnX in the application’s menu and then choose Preferences. In the Preferences window enter the path of the svn binary, which is /usr/local/bin/ in our case.

Now let’s configure SvnX to work with your repository. For the purpose of this exercise I will use a repository that is hosted at the following address – “http://svn.sevenacross.com/project”. The username and password for this repository are “calvin” and “calvin123″ respectively. Please replace these with the information for your repository.

In the window with the title Repositories add the address of your repository, the username, and the password:

After you’ve entered all this information double click on the the entry for this repository to launch it. you should get a window that looks like the following:

It would contain a set of directory in the navigation area at the bottom. Select the directory you want to “check out” and click on the button svn checkout at the top of the window. A finder window should pop up asking where you want to “check out” the documents. After the process of “checking out” the code is over you will find an entry for it in theWorking Copies window.

You are ready to begin working with these documents. Now open finder and go to the directory where you “checked out” the code. Edit one or two documents by adding a line of text or a few words somewhere and then save the files. Return to SvnX and double click on the entry for the project in the “Working Copies” window. You will find the files you modified listed in the window that opens. Select them and click on the Add button. Now enter these modified files back into SVN by clicking on the Commit button. Now if someone else were to “check out” this project out of your SVN server she will see the new files with a new tag.

Suppose there are many people working on this project you need to make sure you have the latest version of the documents before you start working on it again. To do that double click on the project entry in the “Working Copies” window and click on the Update button. This will fetch all the latest revisions for all the files that are part of this SVN repository.

There are many things that you can do using SvnX such as moving a section of the repository, or finding the differences between multiple files… but they are beyond the scope of this article. Feel free to read up the project’s documentation or to play with SvnX to discover how to perform these tasks.

时间: 2024-10-29 19:08:02

Get Started with Subversion using SvnX的相关文章

[Subversion]Mac 上 svn使用

之前试用的Versions 过期了 下载svnX发现它很精简很好用 后来直接用了Xcode发现Xcode一开始直接在Source Control 里面Check Out 发现只有填写连接的地方 但是配置问题地方填写 都是直接通过然后显示一个文件夹名字 但里面并没有内容 所以就在repository地址后面加了一些参数(直接加一个?k也可以)就会直接跳出账号密码的配置界面 下面是可能碰到的问题的解决方法 Error validating server certificate for… 按t或者p依

Mac 操作系统安装 SVN server教程(Subversion With Mac OS X Tutorial)

Find recent articles on my github page: rubyrobot.github.io ? 2006-2014 Imagine Ecommerce Subversion With Mac OS X Tutorial Updated: April 2011 Subversion is a version control system that allows you to work with other people on a project and switch b

How to Install Subversion on Mac OS X

How to Install Subversion on Mac OS X 740,518 views 17 Editors Edited 8 days ago Two Parts:Install From a Binary PackageSet Up Your Subversion Environment Subversion, sometimes called SVN, is an open-source system that remembers every change made to

Mac 操作系统安装 SVN 服务器教程(Subversion With Mac OS X Tutorial)

Find recent articles on my github page: rubyrobot.github.io © 2006-2014 Imagine Ecommerce Subversion With Mac OS X Tutorial Updated: April 2011 Subversion is a version control system that allows you to work with other people on a project and switch b

RHEL6.4下搭建apache和subversion(SVN)

1.说明 rhel6.4系统下搭建apache+svn 2.实现 1)在服务器上安装配置SVN服务: 2)SVN服务支持svnserve独立服务模式访问: 3)SVN服务支持Apache的http模式访问. 3.安装svn服务器 [[email protected] ~]# yum install -y subversion [[email protected] ~]# rpm -qa|grep subversion subversion-1.6.11-15.el6_7.x86_64 4.安装a

Windows Pre-commit hook for comment length Subversion

@echo off :: Stops commits that have empty log messages. @echo off setlocal rem Subversion sends through the path to the repository and transaction id set REPOS=%1 set TXN=%2 svnlook log %REPOS% -t %TXN% | findstr . > nul if %errorlevel% gtr 0 (goto

SVN版本管理系统的安装 CentOS + Subversion + Apache + Jsvnadmin

CI服务器:192.168.4.221 root用户操作                            建议安装前更新操作系统 # yum update 更新完成后重启 # reboot 安装apache # yum install httpd httpd-devel # service httpd start # chkconfig httpd on # vi /etc/httpd/conf/httpd.conf 找到ServerName 并修改成 ServerName localho

Centos搭建SVN服务器subversion

1.安装  subversion yum install subversion #最终显示 Installed:   subversion.x86_64 0:1.6.11-12.el6_6                                                                                                                                                           D

使用subversion管理iOS源代码

1.安装和配置subversion服务器 在windows 服务器上安装VisualSVN-Server,下载地址http://www.visualsvn.com/server/download/.采用默认安装,安装完成创建一个服务器的代码仓库hello,如图所示. 然后在Users右键创建用户tony,再回到hello仓库右键- >Properties,将tony用户授权可以访问hello仓库. 如果在浏览器中通过https://192.168.1.103/svn/hello/网址访问没有问题