<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sentiment &#187; subversion</title>
	<atom:link href="http://wouter.shush.com/tag/subversion/feed" rel="self" type="application/rss+xml" />
	<link>http://wouter.shush.com</link>
	<description>About Life, the Universe, and Everything...</description>
	<lastBuildDate>Tue, 07 Feb 2012 19:27:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Subversion version control on Windows</title>
		<link>http://wouter.shush.com/2007/09/subversion-version-control-on-windows?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=subversion-version-control-on-windows</link>
		<comments>http://wouter.shush.com/2007/09/subversion-version-control-on-windows#comments</comments>
		<pubDate>Wed, 26 Sep 2007 12:12:03 +0000</pubDate>
		<dc:creator>wooter</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://wouter.shush.com/it-stuff/subversion-version-control-on-windows</guid>
		<description><![CDATA[Having version control is one of the sound practices of a good programmer.  Version control can be done manually, but is quickly a very administrative and error-prone task, so many development organisations try to use automated systems, such as Microsoft&#8217;s &#8230; <a href="http://wouter.shush.com/2007/09/subversion-version-control-on-windows">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><!--:en-->Having version control is one of the sound practices of a good programmer.  Version control can be done manually, but is quickly a very administrative and error-prone task, so many development organisations try to use automated systems, such as Microsoft&#8217;s <a href="http://msdn.microsoft.com/ssafe/" title="Microsoft Visual SourceSafe" target="_blank">Visual SourceSafe</a> or other applications. There are also open-source counterparts, such as the old and trusty <a href="http://www.nongnu.org/cvs/" title="CVS" target="_blank">CVS</a>, or the newer <a href="http://www.google.be/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fsubversion.tigris.org%2F&amp;ei=_0H6RpOeEZ30wwHXl7GTCw&amp;usg=AFQjCNECDGdYIfVJA74uPGr3-JKbCKXFWQ&amp;sig2=w-hVlKRpWunHvn7hRrinmg" title="Subversion" target="_blank">Subversion</a>.<br />
What is interesting, however, is that many system administrators and architects do development too, but without any  version control.  A set of scripts is not as elaborate as an accounting application, but without proper versioning, even the best  administrator risks losing track of changes, lost time on debugging.  And many places do not offer any form of version control for system administrators!</p>
<p>In this post, I&#8217;ll explain how to run your own Subversion version control server to control your script development.  This is an update to <a href="http://blogs.vertigosoftware.com/teamsystem/archive/2006/01/16/Setting_up_a_Subversion_Server_under_Windows.aspx" title="Setting up a Subversion Server under Windows" target="_blank">this post</a> for Subversion 1.4.5<!--:--><span id="more-28"></span><!--:en--></p>
<h3>Subversion</h3>
<p>First of all, get the latest Windows compiled version of Subversion on <a href="http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91" target="_blank">their website</a>.  This post covers the current 1.4.5 version, but should work for all 1.4.x versions. Install the package with the basic Win32 binaries.</p>
<p>After installation, open a command line window and type in the following:</p>
<pre>svnadmin create "c:\Documents and Settings\Subversion Repository"</pre>
<p>Navigate to the directory you just created.  Uncomment the following lines in the conf\svnserve.conf file:</p>
<pre>[general]
anon-access = read
auth-access = write
password-db = passwd</pre>
<p>Uncomment the following lines in the conf\passwd file:</p>
<pre>[users]
harry = harryssecret
sally = sallyssecret</pre>
<p>Make the svnserve service by using the following command one one single line:</p>
<pre>sc &lt;computername&gt;
  create svnserve
  binpath= "c:\Program Files\Subversion\bin\svnserve.exe --service --root
  \"C:\Documents and Settings\Subversion Repository\""
  displayname= "Subversion Repository"
  depend= Tcpip</pre>
<p>Notice that all &lt;options&gt; of the SC command have a &lt;space&gt; after the = sign.  Microsoft has <a href="http://support.microsoft.com/kb/251192" title="How to Create a Windows Service Using Sc.exe" target="_blank">a nice summary</a> up on all SC options.</p>
<p>Notice also how the Repository path has been &#8220;escaped&#8221; by using \&#8221;.  You need to do this when your repository path contains spaces.</p>
<p>Type the following to get the service started:</p>
<pre>net start svnserve</pre>
<p>Next, make your first project:</p>
<pre>svn mkdir svn://localhost/myproject</pre>
<p>Subversion will create some default folders, and will open notepad with svn-commit.tmp where you can put in a comment.  Save the file, close it and the following will appear in your command line window:</p>
<pre>Authentication realm: &lt;svn://localhost:3690&gt; dc1f5697-44ac-5745-849e-e86ad8f60265
Password for 'wooter': **********
Authentication realm: &lt;svn://localhost:3690&gt; dc1f5697-44ac-5745-849e-e86ad8f60265
Username: sally
Password for 'sally': ************

Committed revision 1.</pre>
<p>As you can see, you first get asked for the password of your Windows user, and next one of the users defined in conf\passwd.</p>
<h3>TortoiseSVN</h3>
<p>Next, run the <a href="http://tortoisesvn.net/downloads" title="TortoiseSVN installer" target="_blank">TortoiseSVN installer</a>. Install the package with default settings.</p>
<p>Select a folder where you want to start your first version controlled project:</p>
<p>[photopress:subversion_tortoise_checkout.gif,full,centered]</p>
<p>Type in your repository URL and click OK:</p>
<p>[photopress:subversion_tortoise_checkout_2.gif,full,centered]</p>
<p>Create a new file in that directory, and add the file to your Subversion server</p>
<p>[photopress:subversion_tortoise_add_file.gif,full,centered]</p>
<p>Although you &#8220;added&#8221; the file, the file has not been checked into Subversion yet.  To commit all changes, right-click on the file or folder and select &#8220;SVN Commit&#8221;:</p>
<p>[photopress:subversion_tortoise_commit.gif,full,centered]</p>
<p>Now you can maintain your scripts in version control.<!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://wouter.shush.com/2007/09/subversion-version-control-on-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: wouter.shush.com @ 2012-02-08 01:21:23 -->
