

<?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>Gilles Ruppert &#187; Subversion</title>
	<atom:link href="http://latower.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://latower.com</link>
	<description>a.k.a. elduderino78</description>
	<lastBuildDate>Sun, 05 Jun 2011 11:01:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Upgrading the Subversion command line client on Mac OSX Leopard</title>
		<link>http://latower.com/2009/05/upgrading-subversion-on-osx/</link>
		<comments>http://latower.com/2009/05/upgrading-subversion-on-osx/#comments</comments>
		<pubDate>Wed, 20 May 2009 23:04:13 +0000</pubDate>
		<dc:creator>elduderino78</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://latower.com/?p=75</guid>
		<description><![CDATA[UPDATE: Since I wrote this post, I found a couple of other ways of upgrading the Subversion command line client. One option is to install the package via MacPorts or Homebrew. If you use Homebrew, you probably don&#8217;t have to &#8230; <a href="http://latower.com/2009/05/upgrading-subversion-on-osx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><ins datetime="2010-08-05T00:38:42+00:00">UPDATE: Since  I wrote this post, I found a couple of other ways of upgrading the Subversion command line client.</p>
<p>One option is to install the package via <a href="http://www.macports.org/">MacPorts</a> or <a href="http://mxcl.github.com/homebrew/">Homebrew</a>. If you use Homebrew, you probably don&#8217;t have to do anything else, as Homebrew sets up the symlinks automatically. If you install via MacPorts, you have the same issue as you do with the Collabnet installer.</p>
<p>Instead of creating symlinks though, you can also change the PATH environment variable. To do this, open <code>~/.bash_profile</code> or <code>~/.bashrc</code> in your favourite editor (<a href="http://www.vim.org/">vim</a>) and make sure that you have a line similar to this:</p>
<p><code>export PATH=/opt/local/bin:/opt/local/sbin:$PATH</code></p>
<p>This will make sure that <code>/opt/local/bin/</code>, which contains the MacPorts installs, will be checked before any other locations. MacPorts <em>should</em> add this by itself. This makes sure that svn as installed by MacPorts will be used.</p>
<p>As before: you can check which svn binary you are using by typing <code>which svn</code> and <code>svn --version</code> in the terminal.</p>
<p>Hope this helps!</p>
<h3>Original post</h3>
<p></ins><br />
OSX Leopard ships with Subversion 1.4.x by default. Since then, SVN has had 2 major upgrades (merge tracking anyone?). To make things easy, there is a binary available at <a href="http://www.open.collab.net/downloads/community/">Collab.net</a>. But unfortunately you need to do some work yourself.</p>
<p>The path of the built in Subversion command line client is different to the one that the Collab.net Community binary is installed to. The following steps will fix this. </p>
<p>Disclaimer &#8211; Be careful: when you use the Terminal you are flying without a safety net! No undo &amp; no restore from trash. Do this at your own risk and don&#8217;t forget to have an up-to-date backup!!!</p>
<ol>
<li>install the binary downloaded to Collab.net</li>
<li>open your Terminal and check which version of SVN you are using by typing <code>svn --version</code>. This should say 1.4.x</li>
<li>check which installed instance of SVN the OS is using by typing <code>which svn</code>. This will return the path to the SVN version you are using, which probably is <code>/usr/local/bin/svn</code></li>
<li>check whether the Collab.net version is installed by going to it: <code>cd /opt/subversion/bin</code>. Doing an <code>ls</code> should show you the subversion files</li>
<li>Backup the current svn location: by going to it (<code>cd /usr/local/bin</code>) and copying it to your desktop or wherever you fancy (<code>mv svn* ~/Desktop/</code>)</li>
<li>now you need to create <a href="http://en.wikipedia.org/wiki/Symbolic_link">symlinks</a> to the Collab.net binaries:
<ul>
<li><code>ln -s /opt/subversion/bin/svn svn</code></li>
<li><code>ln -s /opt/subversion/bin/svnadmin svnadmin</code></li>
<li><code>ln -s /opt/subversion/bin/svndumpfilter svndumpfilter</code></li>
<li><code>ln -s /opt/subversion/bin/svnlook svnlook</code></li>
<li><code>ln -s /opt/subversion/bin/svnserve svnserve</code></li>
<li><code>ln -s /opt/subversion/bin/svnsync svnsync</code></li>
<li><code>ln -s /opt/subversion/bin/svnversion svnversion</code></li>
</ul>
</li>
<li>That should be it</li>
</ol>
<p>The beauty is that you only need to do this once. The next time you upgrade your Subversion client, the symlinks will just point to the updated files and everything should be fine. As I said earlier though: only do this if you feel comfortable on the command line.</p>
<p><ins datetime="2009-05-27T23:06:12+00:00">UPDATE: I have been told that some people seem to have SVN installed in <code>/usr/bin/</code>. Just use the path that is returned by the <code>which svn</code> command. You might also need to use <code>sudo</code> to run some of the command (i.e. move).</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://latower.com/2009/05/upgrading-subversion-on-osx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>TextMate &amp; Subversion 1.5 update problem with conflict</title>
		<link>http://latower.com/2008/10/textmate-subversion-15-update-problem/</link>
		<comments>http://latower.com/2008/10/textmate-subversion-15-update-problem/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 15:12:13 +0000</pubDate>
		<dc:creator>elduderino78</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://latower.com/?p=40</guid>
		<description><![CDATA[We recently upgraded to Subversion 1.5 server at BBC Worldwide. I ended up upgrading my client at the same time with the latest OSX binary from Colabnet. One weird thing started to happen though: whenever there were conflicts, TextMate wouldn&#8217;t &#8230; <a href="http://latower.com/2008/10/textmate-subversion-15-update-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We recently upgraded to Subversion 1.5 server at BBC Worldwide. I ended up upgrading my client at the same time with the latest OSX binary from Colabnet.<br />
One weird thing started to happen though: whenever there were conflicts, TextMate wouldn&#8217;t allow me to use the &#8216;Resolve Conflicts with FileMerge&#8230;&#8217;.</p>
<p>Long story short: the interactive mode keeps TextMate from getting all the data so you don&#8217;t get the .rxxx &amp; .mine files which are needed for FileMerge to show you the differences.</p>
<p>To fix this is:</p>
<ol>
<li>go into your TextMate Subversion Bundle</li>
<li>go to the &#8216;Update to Newest (HEAD)&#8217; command and add <br/><code>--non-interactive</code> after <code>'#{svn}' update </code></li>
</ol>
<p>You can see the resulting code here (change on line 14).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">require_cmd <span style="color: #ff0000;">&quot;<span style="color: #007800;">${TM_SVN:=svn}</span>&quot;</span> <span style="color: #ff0000;">&quot;If you have installed svn, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_SVN&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)&quot;</span>
&nbsp;
<span style="color: #ff0000;">&quot;<span style="color: #007800;">${TM_RUBY:-ruby}</span>&quot;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TM_SUPPORT_PATH</span>/lib/shelltokenize.rb&quot;</span> <span style="color: #cc0000; font-style: italic;">&lt;&lt;END
	svn = ENV['TM_SVN'] || &quot;svn&quot;
	ruby = ENV['TM_RUBY'] || &quot;ruby&quot;
	support = ENV['TM_BUNDLE_SUPPORT']
	paths = TextMate.selected_paths_array
&nbsp;
	# TODO: Ideally, we'd like to use a tooltip for one and not others, but we can't switch from a tooltip
	# to dynamic HTML output (or maybe we could double-fork a process?)
	# if ((paths.size == 1) and not (File.directory? paths[0]))
	#	puts %x{#{svn} update #{TextMate.selected_paths_for_shell}}
	# else
		update = IO.popen(&quot;'#{svn}' update --non-interactive #{TextMate.selected_paths_for_shell}&quot;, 'r')
		format = IO.popen(&quot;'#{ruby}' -- '#{support}/format_status.rb'&quot;, 'w')
		update.each_line { |line| format.puts(line) }
	# end	
END</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># force TM to refresh the current file..</span>
rescan_project</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://latower.com/2008/10/textmate-subversion-15-update-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

