<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.webitoo.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>WebIToo - howto</title>
  <link>http://www.webitoo.com/</link>
  <description>A blog about web 2.0 development, AJAX, MVC, good practice and handy tools to make your life easier in everyday's web developper life.</description>
  <language>en</language>
  <pubDate>Fri, 25 Jul 2008 23:41:07 +0200</pubDate>
  <copyright>All rights reserved</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Ignoring undesired files in subversion</title>
    <link>http://www.webitoo.com/post/2007/08/15/Ignoring-undesired-files-in-subversion</link>
    <guid isPermaLink="false">urn:md5:aa3b453475c6638426ad155b90e1d8ed</guid>
    <pubDate>Wed, 15 Aug 2007 11:02:00 +0200</pubDate>
    <dc:creator>Romain</dc:creator>
        <category>Tools</category>
        <category>howto</category><category>subversion</category>    
    <description>    &lt;p&gt;Good web development practices includes versionning your source code, to be able to rapidly track new appearing bugs and efficiently share work on same source code between more than one people (In fact i use it also for personnal projects, that only involves one developper).&lt;/p&gt;


&lt;p&gt;Basic usage is pretty straightforward, and the Subversion Book (see related links) will get you started pretty fast (it took me about an afternoon to read the basic chapters, install subversion, set up svnserve not to give my code to anybody requesting it, installing trac (web interface/wiki/ticket/timeline frontend to svn) and learning the basics to import/checkout/update/revert/resolve stuff in a svn tree.&lt;/p&gt;


&lt;p&gt;Recently, some new problem came to me, and I was glad to see that it was not a problem at all because of subversion properties. Properties are text values you set on a svn versionned folder that can have a special meaning. For example, svn:externals property allows you to use another project as a subpart of your tree, very handy in case of plugins, or dependencies for example.&lt;/p&gt;


&lt;p&gt;But todays property that interests us is svn:ignore. Pretty self explaining, it allows you to ignore some files, or file patterns, when commiting your changes. Why? Imagine python development, where .pyc (python compiled) files arise everywhere you run .py (python source) files... Ignoring *.pyc would be usefull, don't you think? Ok, you do not write python, so what? Imagine a cache system... Or a website logs... The interest is the same, you'd like to simply ignore the cache, or log folder from svn status or svn commit, thoose folders are usefull but versionning them is very questionable, if not complete nonsense.&lt;/p&gt;


&lt;p&gt;So here is how to proceed. The svn commands we're going to use are propset, propget, propedit and propget.&lt;/p&gt;


&lt;p&gt;svn propset svn:ignore &amp;lt;mask&amp;gt; &amp;lt;dir&amp;gt; &amp;lt;path&amp;gt;
svn propset svn:ignore &amp;lt;dir&amp;gt; &amp;lt;path&amp;gt;&lt;/p&gt;


&lt;p&gt;Once set, you can simply propedit it, with your favorite text editor (set SVN_EDITOR, or EDITOR environment variable to the one you like):&lt;/p&gt;


&lt;p&gt;svn propedit svn:ignore &amp;lt;path&amp;gt;&lt;/p&gt;


&lt;p&gt;To look at the current value of the property:&lt;/p&gt;


&lt;p&gt;svn propget svn:ignore &amp;lt;path&amp;gt;&lt;/p&gt;



&lt;p&gt;Related links:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://svnbook.red-bean.com/&quot; hreflang=&quot;en&quot;&gt;The Subversion Book&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
    
    
    
      </item>
    
</channel>
</rss>