<?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>handyfloss &#187; svn</title>
	<atom:link href="http://handyfloss.net/tag/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://handyfloss.net</link>
	<description>Because FLOSS is handy, isn&#039;t it?</description>
	<lastBuildDate>Thu, 08 Jul 2010 19:34:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ignoring some file in a Subversion working copy</title>
		<link>http://handyfloss.net/2008.01/ignoring-some-file-in-a-subversion-working-copy/</link>
		<comments>http://handyfloss.net/2008.01/ignoring-some-file-in-a-subversion-working-copy/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 15:36:54 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=268</guid>
		<description><![CDATA[Sometimes you have files littering a svn working copy, but you don&#8217;t want to put them under version management. Often times it is impossible, or plain painful, to delete them, and having them appear in all svn status calls is uncomfortable. This can happen, for example, if you keep a repository of Python files. When [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you have files littering a svn working copy, but you don&#8217;t want to put them under version management. Often times it is impossible, or plain painful, to delete them, and having them appear in all <tt>svn status</tt> calls is uncomfortable. This can happen, for example, if you keep a repository of Python files. When a Python script is called from another script (a module, for example), a .pyc file is generated (a &#8220;compiled&#8221; version of the called .py module, that is just faster to load next time).</p>
<p>Clearly, you don&#8217;t want to put the .pyc files in the repository, but deleting them everytime you manage the working copy is painful. For that, you can make svn <b>ignore</b> some files, like e.g. .pyc files. You can do that in at least two ways: specifically for a directory, or as a general preference.</p>
<p><b>Setting ignore property on a single directory</b></p>
<p>You can set a property on any directory of a working copy, so that the chosen files in <b>that</b> directory will be ignored by svn. For example:</p>
<p><code>% svn propset 'svn:ignore' '*.pyc' pythonfiles/</code></p>
<p>will make svn ignore all .pyc files in the directory &#8220;pythonfiles&#8221;, but not those in other directories.</p>
<p><b>Setting ignore patterns globally</b></p>
<p>You can edit the <tt>~/.subversion/config</tt> file, and add &#8220;*.pyc&#8221; in the line starting with <tt>"global-ignores ="</tt>. For example, my such line is:</p>
<p><code>global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store *.pyc *.swp</code></p>
<p>It works immediately, and for all the calls to <tt>svn status</tt> you do in any working copy on that machine.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://handyfloss.net/2007.11/app-of-the-week-subversion/" title="App of the week: Subversion (November 19, 2007)">App of the week: Subversion</a> (0)</li>
	<li><a href="http://handyfloss.net/2006.10/xgl-with-xfce-under-debian-etch/" title="Xgl with Xfce under Debian Etch (October 1, 2006)">Xgl with Xfce under Debian Etch</a> (0)</li>
	<li><a href="http://handyfloss.net/2006.10/xgl-with-xfce/" title="Xgl with Xfce (October 5, 2006)">Xgl with Xfce</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2008.01/ignoring-some-file-in-a-subversion-working-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>App of the week: Subversion</title>
		<link>http://handyfloss.net/2007.11/app-of-the-week-subversion/</link>
		<comments>http://handyfloss.net/2007.11/app-of-the-week-subversion/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 11:51:51 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Application of the Week]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=252</guid>
		<description><![CDATA[I have been using Subversion for a while (after having it recommended by my colleague Thomas), and I must confess I&#8217;m a happy user. Subversion is a revision control system, designed to supersede, and replace, the (maybe) more popular CVS. Subversion (svn) is good for much more than collaborative development, as a single person can [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using <a href="http://en.wikipedia.org/wiki/Subversion_(software)">Subversion</a> for a while (after having it recommended by my colleague Thomas), and I must confess I&#8217;m a happy user. Subversion is a <a href="http://en.wikipedia.org/wiki/Revision_control">revision control system</a>, designed to supersede, and replace, the (maybe) more popular <a href="http://en.wikipedia.org/wiki/Concurrent_Versions_System">CVS</a>.</p>
<p>Subversion (svn) is good for much more than collaborative development, as a single person can keep track of versions of her own documents/scripts/whatever. Usually you only want the last version of whatever you work with. But whenever you find yourself saving a version somewhere else, to keep it like that even if further changes are made to the &#8220;current&#8221; version, svn is your friend. Whenever you wish you had saved an earlier version of the stuff you&#8217;re working with, you&#8217;re missing (know it or not) svn.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://handyfloss.net/2008.01/ignoring-some-file-in-a-subversion-working-copy/" title="Ignoring some file in a Subversion working copy (January 3, 2008)">Ignoring some file in a Subversion working copy</a> (0)</li>
	<li><a href="http://handyfloss.net/2006.10/xgl-with-xfce-under-debian-etch/" title="Xgl with Xfce under Debian Etch (October 1, 2006)">Xgl with Xfce under Debian Etch</a> (0)</li>
	<li><a href="http://handyfloss.net/2006.10/xgl-with-xfce/" title="Xgl with Xfce (October 5, 2006)">Xgl with Xfce</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2007.11/app-of-the-week-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
