<?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>SameShirtEveryDay.com &#187; Subversion</title>
	<atom:link href="http://sameshirteveryday.com/category/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://sameshirteveryday.com</link>
	<description>Personal blog of the one called Alex Gorbatchev, from Toronto, Canada.</description>
	<lastBuildDate>Wed, 30 Dec 2009 20:00:32 +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>Converting _svn to .svn</title>
		<link>http://sameshirteveryday.com/2007/05/12/converting-_svn-to-svn/</link>
		<comments>http://sameshirteveryday.com/2007/05/12/converting-_svn-to-svn/#comments</comments>
		<pubDate>Sat, 12 May 2007 20:19:04 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/05/12/converting-_svn-to-svn/</guid>
		<description><![CDATA[Back in the day, Visual Studio 2003 had a bug which made it behave poorly if there were folders or files in a project which started with a dot in their file names. Ever since, TortoiseSVN had support for &#8216;_svn&#8217; folders. This problem was fixed in Visual Studio 2005, but the folders stayed. I found [...]]]></description>
			<content:encoded><![CDATA[<p>Back in the day, Visual Studio 2003 had a bug which made it behave poorly if there were folders or files in a project which started with a dot in their file names.</p>
<p>Ever since, <a href="http://tortoisesvn.net/">TortoiseSVN</a> had support for &#8216;_svn&#8217; folders. This problem was fixed in Visual Studio 2005, but the folders stayed. I found this to be a problem when I started using Ruby because svn client itself doesn&#8217;t play well with &#8216;_svn&#8217; folders.<span id="more-5"></span></p>
<p>To help with the problem I wrote a little Ruby script which simply goes through every folder starting from your current one and renames every &#8216;_svn&#8217; to &#8216;.svn&#8217;.</p>
<p>First, if you don&#8217;t already have, install Rio gem, which is a wonderful IO library.</p>
<pre>gem install rio</pre>
<p>Then open and drop <a href="http://www.sameshirteveryday.com/wp-content/uploads/2007/05/svnrename.zip">svnrename.bat</a> into your <code>\Rails\bin</code> folder. Then open cmd prompt and go to your desired folder, type <code>svnrename</code> and you are done.</p>
<p>Here&#8217;s what the file looks like:</p>
<pre name="code" class="ruby">"%~d0%~p0ruby" -x "%~f0" %*
goto endofruby
#!/bin/ruby

require 'rio'

dir = ARGV[0]
dir = '.' if dir.nil?
count = 0

rio('.').all.rename.dirs('_svn') do |d|
	count += 1
	puts d
	d.basename = '.svn'
end

puts "Nothing found" if count == 0

__END__
:endofruby</pre>
<p>This was one of my very first Ruby utilities. So&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/05/12/converting-_svn-to-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

