<?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>Blog &#187; Mercurial</title>
	<atom:link href="http://blog.bprog.no/index.php/tag/mercurial/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bprog.no</link>
	<description>Some personal and some technical posts</description>
	<lastBuildDate>Sun, 14 Jun 2009 19:04:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bash script for creating files in empty folders &#8211; Mercurial workaround</title>
		<link>http://blog.bprog.no/index.php/2009/05/bash-script-for-creating-files-in-empty-folders-mercurial-workaround/</link>
		<comments>http://blog.bprog.no/index.php/2009/05/bash-script-for-creating-files-in-empty-folders-mercurial-workaround/#comments</comments>
		<pubDate>Sun, 10 May 2009 01:00:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Empty folders]]></category>
		<category><![CDATA[Mercurial]]></category>

		<guid isPermaLink="false">http://blog.bprog.no/?p=125</guid>
		<description><![CDATA[I was astonished to find out that Mercurial was unable to represent empty folders. The most obvious workaround is to create an empty file in each of those folders. But hey, you don&#8217;t want to do that by hand do you? Well luckily we&#8217;re all using a Linux based OS with an extremely powerful command [...]]]></description>
			<content:encoded><![CDATA[<p>I was astonished to find out that Mercurial was unable to represent empty folders. The most obvious workaround is to create an empty file in each of those folders. But hey, you don&#8217;t want to do that by hand do you? Well luckily we&#8217;re all using a Linux based OS with an extremely powerful command line. It took me just a couple of minutes to come up with a one-liner bash script which creates an empty file in every empty directory.</p>
<blockquote><p>find . -empty -type d | xargs &#8211;replace=EMPTYDIR touch &#8220;EMPTYDIR/.empty&#8221;</p></blockquote>
<p>This will put an empty file named &#8220;.empty&#8221; in every empty sub directory from where you&#8217;re standing.</p>
<p><strong><em><span style="color: #800000;">Please make sure that you copy the line correctly. There is an double hyphen before xargs&#8217;s replace parameter and regular double quotes around the touch argument. </span></em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bprog.no/index.php/2009/05/bash-script-for-creating-files-in-empty-folders-mercurial-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
