<?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>scienceoss.com &#187; revision control</title>
	<atom:link href="http://scienceoss.com/tags/revision-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://scienceoss.com</link>
	<description>useful tidbits for using open source software in science</description>
	<lastBuildDate>Wed, 26 May 2010 03:34:19 +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>Setting up and using an SVN repository</title>
		<link>http://scienceoss.com/setting-up-and-using-an-svn-repository/</link>
		<comments>http://scienceoss.com/setting-up-and-using-an-svn-repository/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 03:36:40 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[utilities]]></category>
		<category><![CDATA[revision control]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://scienceoss.com/setting-up-and-using-an-svn-repository/</guid>
		<description><![CDATA[Install subversion (Ubuntu) sudo apt-get install subversion Make a directory to store the repositories mkdir /path/to/repository Create the repository svnadmin create /path/to/repository Import existing files into repository svn import /path/name/to/foo file:///path/to/repository when you checkout this repository, it will create the directory foo. So to get the svn repository in my ~/work directory as ~/work/foo I [...]]]></description>
			<content:encoded><![CDATA[<p>Install subversion (Ubuntu)</p>
<pre class="prettyprint"><code class="code">sudo apt-get install subversion</code></pre>
<p>Make a directory to store the repositories</p>
<pre class="prettyprint"><code class="code">mkdir /path/to/repository</code></pre>
<p>Create the repository</p>
<pre class="prettyprint"><code class="code">svnadmin create /path/to/repository</code></pre>
<p>Import existing files into repository</p>
<pre class="prettyprint"><code class="code">svn import /path/name/to/foo file:///path/to/repository</code></pre>
<p>when you checkout this repository, it will create the directory <span class="c">foo</span>. So to get the svn repository in my<span class="c"> ~/work</span> directory as <span class="c">~/work/foo</span> I would go to <span class="c">~/work</span>, then</p>
<pre class="prettyprint"><code class="code">svn co file:///path/to/repository</code></pre>
<p>that is, don&#8217;t make a new dir dir called <span class="c">foo</span> and import into there . . . it will make its own dir.</p>
<p>Check out locally</p>
<pre class="prettyprint"><code class="code">svn checkout file:///path/to/repository /local/workdir</code></pre>
<p>Check out remotely through an ssh connection</p>
<pre class="prettyprint"><code class="code">svn checkout svn+ssh://user@hostname/path/to/repository/on/remotehost /local/workdir</code></pre>
<p>Update local copy from SVN</p>
<pre class="prettyprint"><code class="code">svn update</code></pre>
<p>Check what&#8217;s been changed</p>
<pre class="prettyprint"><code class="code">svn status</code></pre>
<p>Resolve a conflict</p>
<pre class="prettyprint"><code class="code">svn resolved filename</code></pre>
<p>Send these changes to SVN (editor will prompt for revision notes, must be non-empty)</p>
<pre class="prettyprint"><code class="code">svn commit</code></pre>
<p>Send these changes to SVN, and specify logfile to send as comments</p>
<pre class="prettyprint"><code class="code">svn commit -F logfile</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://scienceoss.com/setting-up-and-using-an-svn-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

