<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://gotdrupal.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>GotDrupal.com | Drupal Tutorial Site - server management</title>
 <link>http://gotdrupal.com/taxonomy/term/24/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Quick Tip: SVN Filtering</title>
 <link>http://gotdrupal.com/videos/svn-filtering</link>
 <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;If you manage your own Drupal servers, and have shell access, one of your most powerful tools for deployment are &lt;a href=&quot;http://cvsbook.red-bean.com/&quot; title=&quot;CVS Book from Red-Bean.com&quot;&gt;&lt;span class=&quot;caps&quot;&gt;CVS&lt;/span&gt;&lt;/a&gt; and &lt;a href=&quot;http://svnbook.red-bean.com/&quot; title=&quot;SVN Book from Red-Bean.com&quot;&gt;&lt;span class=&quot;caps&quot;&gt;SVN&lt;/span&gt;&lt;/a&gt;. Using the &lt;a href=&quot;http://drupal.org/project/cvs_deploy&quot; title=&quot;Drupal.org CVS Deploy Module&quot;&gt;&lt;span class=&quot;caps&quot;&gt;CVS&lt;/span&gt; deploy&lt;/a&gt; module, you can get rid of that tedious Download to computer -&amp;gt; upload via &lt;span class=&quot;caps&quot;&gt;FTP&lt;/span&gt;&amp;nbsp;process.&lt;/p&gt;
&lt;p&gt;I found a powerful piece of code on the website of &lt;a href=&quot;http://ceardach.com/blog/2008/07/quick-svn-script-automatically-adding-and-deleting-files&quot;&gt;Kathleen Murtagh&lt;/a&gt;. The code was optimized by &lt;a href=&quot;http://drupal.org/user/25027&quot;&gt;drupal user&lt;/a&gt; &lt;a href=&quot;http://dgtlmoon.com/&quot;&gt;dgtlmoon&lt;/a&gt;. By applying a simple condition, and using the code as a function within .bashrc or .bash&amp;#95;profile, you add some needed functionality when managing a Drupal server (or anything else really) using&amp;nbsp;&lt;span class=&quot;caps&quot;&gt;SVN&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Here&#039;s the code you need for your .bashrc in case you already know what&#039;s going on. It allows you to pass in regular expressions to be applied to the svn status function. If you supply a second argument, it&#039;s used as the &lt;span class=&quot;caps&quot;&gt;SVN&lt;/span&gt; option for each of the filtered files. Cool&amp;nbsp;Stuff!&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;nbsp; svngrep()&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; # Modified from&lt;br /&gt;&amp;nbsp; # &lt;a href=&quot;http://ceardach.com/&lt;br /&gt;&quot; title=&quot;http://ceardach.com/&lt;br /&gt;&quot;&gt;http://ceardach.com/&lt;br /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if test -z &amp;quot;$2&amp;quot;; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; svn status | egrep &amp;quot;${1}&amp;quot; | awk &amp;#039;{print $2}&amp;#039;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; svn ${2} &amp;#96;svn status | egrep &amp;quot;${1}&amp;quot; | awk &amp;#039;{print $2}&amp;#039;&amp;#96;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;&amp;nbsp; }&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;</description>
 <comments>http://gotdrupal.com/videos/svn-filtering#comments</comments>
 <category domain="http://gotdrupal.com/category/skill-level/advanced">Advanced</category>
 <category domain="http://gotdrupal.com/category/tags/cvs">cvs</category>
 <category domain="http://gotdrupal.com/category/tags/cvsdeploy">cvs_deploy</category>
 <category domain="http://gotdrupal.com/category/tags/server-management">server management</category>
 <category domain="http://gotdrupal.com/category/tags/svn">svn</category>
 <pubDate>Mon, 22 Sep 2008 20:20:05 +0000</pubDate>
 <dc:creator>Matt Petrowsky</dc:creator>
 <guid isPermaLink="false">23 at http://gotdrupal.com</guid>
</item>
</channel>
</rss>

