<?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>Schadenfreude &#187; subversion</title>
	<atom:link href="http://www.ralree.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Sun, 28 Feb 2010 04:18:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SVN Log Made Easier</title>
		<link>http://www.ralree.com/2007/05/03/svn-log-made-easier/</link>
		<comments>http://www.ralree.com/2007/05/03/svn-log-made-easier/#comments</comments>
		<pubDate>Thu, 03 May 2007 18:16:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/svn-log-made-easier</guid>
		<description><![CDATA[So, I got tired of typing in the dates to find a range of log messages.  Here&#8217;s my solution:

# In ~/.bashrc
svn-log() {
  case $1 in
    yesterday &#124; yes &#124; y) svn log -r {`date -d yesterday +"%Y-%m-%d"`}:{`date +"%Y-%m-%d"`};;
    *) echo "Invalid Option: $1";;
  esac
}

I plan to [...]]]></description>
			<content:encoded><![CDATA[<p>So, I got tired of typing in the dates to find a range of log messages.  Here&#8217;s my solution:</p>
<pre><code>
# In ~/.bashrc
svn-log() {
  case $1 in
    yesterday | yes | y) svn log -r {`date -d yesterday +"%Y-%m-%d"`}:{`date +"%Y-%m-%d"`};;
    *) echo "Invalid Option: $1";;
  esac
}
</code></pre>
<p>I plan to add more to this later.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/05/03/svn-log-made-easier/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ignoring SVN and CVS files with rsync</title>
		<link>http://www.ralree.com/2007/03/06/ignoring-svn-and-cvs-files-with-rsync/</link>
		<comments>http://www.ralree.com/2007/03/06/ignoring-svn-and-cvs-files-with-rsync/#comments</comments>
		<pubDate>Tue, 06 Mar 2007 21:07:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/ignoring-svn-and-cvs-files-with-rsync</guid>
		<description><![CDATA[I found out how to get rid of those pesky Subversion and CVS files as well as some other crappy files laying around when rsyncing.  It&#8217;s really quite simple.  It turns out the *-C* switch does this for you:

rsync -Cavrx ...

Very nice.
]]></description>
			<content:encoded><![CDATA[<p>I found out how to get rid of those pesky Subversion and CVS files as well as some other crappy files laying around when rsyncing.  It&#8217;s really quite simple.  It turns out the <em>*-C</em>* switch does this for you:</p>
<pre><code>
rsync -Cavrx ...
</code></pre>
<p>Very nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/03/06/ignoring-svn-and-cvs-files-with-rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching SVN Locations</title>
		<link>http://www.ralree.com/2007/02/21/switching-svn-locations/</link>
		<comments>http://www.ralree.com/2007/02/21/switching-svn-locations/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 06:38:18 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/switching-svn-locations</guid>
		<description><![CDATA[I moved some crap around in my repository the other day, and I felt the pain when I tried to update.  Thankfully, the svn people have thought this thru already.

svn sw https://modzer0.cs.uaf.edu/repos/hank/code/rails/stockmaster .

At first this broke, so I had to do a temporary svn cp to resolve some missing crap.  After that, it [...]]]></description>
			<content:encoded><![CDATA[<p>I moved some crap around in my repository the other day, and I felt the pain when I tried to update.  Thankfully, the <strong>svn</strong> people have thought this thru already.</p>
<pre><code>
svn sw https://modzer0.cs.uaf.edu/repos/hank/code/rails/stockmaster .
</code></pre>
<p>At first this broke, so I had to do a temporary <strong>svn cp</strong> to resolve some missing crap.  After that, it moved right over to the new location and I could update again.</p>
<p>If I had changed servers and not paths, I could have done this:</p>
<pre><code>
svn sw --relocate https://modzer0.cs.uaf.edu/repos/hank/code/rails/stockmaster \
https://modher0.cs.uaf.edu/repos/hank/code/rails/stockmaster .
</code></pre>
<p>All documented <a href="http://svnbook.red-bean.com/en/1.1/re27.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/02/21/switching-svn-locations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy ACL Making for Subversion</title>
		<link>http://www.ralree.com/2006/09/03/easy-acl-making-for-subversion/</link>
		<comments>http://www.ralree.com/2006/09/03/easy-acl-making-for-subversion/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 12:51:43 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/easy-acl-making-for-subversion</guid>
		<description><![CDATA[So, I was messing around with Access Control Lists in svn today, and I needed
to fund out who the commiters were on each repository.  I used svn log to do
this:

svn log https://modzer0.cs.uaf.edu/repos/hank &#124; grep '^r[0-9]\{1,\}' &#124; cut -d\&#124; -f 2 &#124; sort &#124; uniq -c

This gets all the users and the number of commits [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was messing around with Access Control Lists in svn today, and I needed<br />
to fund out who the commiters were on each repository.  I used svn log to do<br />
this:</p>
<pre><code>
svn log https://modzer0.cs.uaf.edu/repos/hank | grep '^r[0-9]\{1,\}' | cut -d\| -f 2 | sort | uniq -c
</code></pre>
<p>This gets all the users and the number of commits they have:</p>
<pre><code>
      1  DevastatorIIC
     73  hank
     37  hardwarehank
</code></pre>
<p>How helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/09/03/easy-acl-making-for-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typo is broken, but I fixed Firefox</title>
		<link>http://www.ralree.com/2006/08/23/typo-is-broken-but-i-fixed-firefox/</link>
		<comments>http://www.ralree.com/2006/08/23/typo-is-broken-but-i-fixed-firefox/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 11:14:04 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[typo]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/typo-is-broken-but-i-fixed-firefox</guid>
		<description><![CDATA[So, I upgraded Typo a few days ago, and just noticed today that all my links are broken because my relative_url_root is busted.  I wonder what caused that.  Anyway, on a better note, I fixed Firefox to open all new windows in new tabs instead.  So much better.  Here’s the fix:

browser.link.open [...]]]></description>
			<content:encoded><![CDATA[<p>So, I upgraded Typo a few days ago, and just noticed today that all my links are broken because my relative_url_root is busted.  I wonder what caused that.  Anyway, on a better note, I fixed Firefox to open all new windows in new tabs instead.  So much better.  Here’s the fix:</p>
<pre><code>
browser.link.open newwindow.restriction = 0
browser.link.open newwindow = 3
</code></pre>
<p>Now, all the calls even from javascript will divert into the <strong>newwindow</strong> setting, which opens new tabs for everything.  YAY!</p>
<p>This info was stolen from <a href="http://kb.mozillazine.org/Browser.link.open_newwindow.restriction">here</a></p>
<h2>Update</h2>
<p>Well, I contacted the #typo channel on freenode, and here’s the answer I got:</p>
<pre><code>
[11:39am|sprewell&gt; hardwarehank, you should not be on trunk
[11:39am|sprewell&gt; go back to 1230
</code></pre>
<p>So, here’s the solution I came to after screwing up a few times:</p>
<ol>
<li>Move all your custom plugins (if any) from components/plugins to somewhere safe</li>
<li>Delete the components/plugins directory</li>
<li><strong>rake migrate VERSION=50</strong></li>
<li><strong>svn up -r 1230</strong></li>
<li>If it complains about not being able to create directories, just blow away those directories too after you back up anything custom.</li>
<li>Move things back in place</li>
<li><strong>mongrel_rails restart</strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/08/23/typo-is-broken-but-i-fixed-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magical SVN Remove</title>
		<link>http://www.ralree.com/2006/08/06/magical-svn-remove/</link>
		<comments>http://www.ralree.com/2006/08/06/magical-svn-remove/#comments</comments>
		<pubDate>Sun, 06 Aug 2006 15:37:52 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oneliners]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/magical-svn-remove</guid>
		<description><![CDATA[Have you ever wanted to batch remove some Subversion files?  Try this on for size:

svn rm `svn stat &#124; grep ! &#124; sed -e 's/^\!\s\+//;s/$/ /' &#124; tr -d '\n'`

That will remove all the entries from svn stat that start with !.  Very handy.  Took a few minutes to write (sed wouldn’t [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to batch remove some Subversion files?  Try this on for size:</p>
<pre><code>
svn rm `svn stat | grep ! | sed -e 's/^\!\s\+//;s/$/ /' | tr -d '\n'`
</code></pre>
<p>That will remove all the entries from <em>svn stat</em> that start with <em>!</em>.  Very handy.  Took a few minutes to write (<strong>sed</strong> wouldn’t get rid of my newline, so I used <strong><em>tr</em></strong> …), but it’s worth it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/08/06/magical-svn-remove/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixed httpd hangings</title>
		<link>http://www.ralree.com/2006/06/23/fixed-httpd-hangings/</link>
		<comments>http://www.ralree.com/2006/06/23/fixed-httpd-hangings/#comments</comments>
		<pubDate>Fri, 23 Jun 2006 02:34:30 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/fixed-httpd-hangings</guid>
		<description><![CDATA[So, Apache (httpd) was hanging for some reason, and it was really perplexing.  I turned on the mod_status stuff and looked at the results, and found that the hung processes were caused when requests went to certain Subversion repositories.  All I had to do was svnadmin recover them, and all was well.  [...]]]></description>
			<content:encoded><![CDATA[<p>So, Apache (httpd) was hanging for some reason, and it was really perplexing.  I turned on the mod_status stuff and looked at the results, and found that the hung processes were caused when requests went to certain Subversion repositories.  All I had to do was svnadmin recover them, and all was well.  </p>
<p>Otherwise, I found an interesting function for ruby today&#8230;</p>
<div class="CodeRay">
<div class="code">
<pre><code>
<span class="c">#number_with_delimiter(number, delimiter)</span>
number_with_delimiter(<span class="i">2000000</span>)
</code></pre>
</div>
</div>
<p>Makes 2000000 look like 2,000,000.  Amazing!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/06/23/fixed-httpd-hangings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simultaneous SVN Dump and Load with Netcat</title>
		<link>http://www.ralree.com/2006/06/19/simultaneous-svn-dump-and-load-with-netcat/</link>
		<comments>http://www.ralree.com/2006/06/19/simultaneous-svn-dump-and-load-with-netcat/#comments</comments>
		<pubDate>Mon, 19 Jun 2006 01:17:35 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/simultaneous-svn-dump-and-load-with-netcat</guid>
		<description><![CDATA[I started by looking at the code from here.
Then, I decided I should use netcat instead of scp.  Here&#8217;s the result:

cd &#60;repos dir&#62;
svnadmin dump reponame &#124; nc6 -x &#60;NewServer&#62; 7676


cd &#60;repos dir&#62;
svnadmin create reponame
nc6 -x -l -p 7676 &#124; svnadmin load reponame

Works like a charm &#8211; it&#8217;s awesome to have 2 windows open and [...]]]></description>
			<content:encoded><![CDATA[<p>I started by looking at the code from <a href="http://dotnot.org/blog/archives/2005/01/13/move-a-subversion-repository-from-one-machine-to-another/">here.</a><br />
Then, I decided I should use netcat instead of scp.  Here&#8217;s the result:</p>
<pre><code>
cd &lt;repos dir&gt;
svnadmin dump reponame | nc6 -x &lt;NewServer&gt; 7676
</code></pre>
<pre><code>
cd &lt;repos dir&gt;
svnadmin create reponame
nc6 -x -l -p 7676 | svnadmin load reponame
</code></pre>
<p>Works like a charm &#8211; it&#8217;s awesome to have 2 windows open and watch the simultaneous dump and import &#8211; how <em>hot</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/06/19/simultaneous-svn-dump-and-load-with-netcat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.351 seconds -->
