<?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>MrBrown blob &#187; svn</title>
	<atom:link href="http://charles.lescampeurs.org/tag/svn/feed" rel="self" type="application/rss+xml" />
	<link>http://charles.lescampeurs.org</link>
	<description>random bits.</description>
	<lastBuildDate>Sat, 10 Apr 2010 09:02:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Deny access to .svn directories with Apache2 / lighttpd</title>
		<link>http://charles.lescampeurs.org/2008/05/28/deny-access-to-svn-directories-with-apache2-lighttpd</link>
		<comments>http://charles.lescampeurs.org/2008/05/28/deny-access-to-svn-directories-with-apache2-lighttpd#comments</comments>
		<pubDate>Wed, 28 May 2008 05:17:31 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[http]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=19</guid>
		<description><![CDATA[If you&#8217;re using SVN to control your web application, your certainly need to deny access to .svn sub-directories. With Apache2 &#60;DirectoryMatch "^/.*/\.svn/"&#62; Order allow,deny Deny from all &#60;/DirectoryMatch&#62; With lighttpd $HTTP["url"] =~ "/\.svn/" { url.access-deny = ( "" ) }]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F05%2F28%2Fdeny-access-to-svn-directories-with-apache2-lighttpd"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F05%2F28%2Fdeny-access-to-svn-directories-with-apache2-lighttpd&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>If you&#8217;re using SVN to control your web application, your certainly need to deny access to <em>.svn</em> sub-directories.</p>
<h2>With Apache2</h2>
<pre>    &lt;DirectoryMatch "^/.*/\.svn/"&gt;
            Order allow,deny
            Deny from all
    &lt;/DirectoryMatch&gt;</pre>
<h2>With lighttpd</h2>
<pre>    $HTTP["url"] =~ "/\.svn/" {
        url.access-deny = ( "" )
    }</pre>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2008/05/28/deny-access-to-svn-directories-with-apache2-lighttpd/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Retrieve file from svn</title>
		<link>http://charles.lescampeurs.org/2008/05/23/retrieve-file-from-svn</link>
		<comments>http://charles.lescampeurs.org/2008/05/23/retrieve-file-from-svn#comments</comments>
		<pubDate>Fri, 23 May 2008 05:51:31 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Command line]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=17</guid>
		<description><![CDATA[Sometimes you need to retrieve a single file from SVN without doing a checkout on the repository. SVN provides the svn cat to output the content of a file. You can redirect the output to get the file as : svn cat https://svn.mydomain.com/project/folder/file.ext &#62; file.ext You can also use a simple shell script to do [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F05%2F23%2Fretrieve-file-from-svn"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F05%2F23%2Fretrieve-file-from-svn&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Sometimes you need to retrieve a single file from SVN without doing a checkout on the repository.</p>
<p>SVN provides the <a title="svn cat command" href="http://svnbook.red-bean.com/en/1.4/svn.ref.svn.c.cat.html" target="_blank">svn cat</a> to output the content of a file. You can redirect the output to get the file as :</p>
<pre>svn cat https://svn.mydomain.com/project/folder/file.ext &gt; file.ext</pre>
<p>You can also use a simple shell script to do the work :</p>
<pre>$ cat svnget</pre>
<pre>#!/bin/sh

if [ -z "$1" ]; then
        echo
        echo "Usage : $0 &lt;SVN-URL&gt;"
        echo
        exit
fi

fn=`basename $1`
svn cat $1 &gt; $fn</pre>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2008/05/23/retrieve-file-from-svn/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
