<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: subversion]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=subversion</link>
<description></description>
<pubDate>Mon, 29 Sep 2008 16:02:42 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[Subversion tools]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?subversion_tools</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: subversion, svn</div><hr/><div class="wiki">
<p>
In an effort to continue my hack-of-the-week series, here is a quick overview of few subversion hacks I have worked on lately:</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://svn.rot13.org/index.cgi/scripts/view/trunk/svn-ignore.sh">`svn-ignore.sh`<!-- wiki-renamed-hyperlink "`svn=-ignore.sh`"<http://svn.rot13.org/index.cgi/scripts/view/trunk/svn=-ignore.sh> --></a> is a tiny shell script which will bring all unversioned files in current svn or svk repository in your $EDITOR and add result of your edit to <tt>svn:ignore</tt></li>
<li><a target="_blank" title="(external link)" href="http://svn.rot13.org/index.cgi/scripts/view/trunk/svndump-move.pl">`svndump-move.pl`<!-- wiki-renamed-hyperlink "`svndump=-move.pl`"<http://svn.rot13.org/index.cgi/scripts/view/trunk/svndump=-move.pl> --></a> is more complex perl script which will allow you to reorganize directory layout in your repository while preserving revision history -- it solved problems like: <em>oh, if I only had root of my repository is subdirectory foo...</em></li>
<li><a target="_blank" title="(external link)" href="http://svn.rot13.org/index.cgi/svn2cvs/browse/trunk">`svn2cvs`<!-- wiki-renamed-hyperlink "`svn2cvs`"<http://svn.rot13.org/index.cgi/svn2cvs/browse/trunk> --></a> is a bit older tool which received attention when Bartek Teodorczyk very patiently started to report problems with it. As a result, it now has test suite, and it's much more robust</li>
</ul>
<p>
Most of documentation for those tools is hidden in subversion commit messages. If you think they are useful, take a peek there...</p>
<h1 id="moving_one_directory_to_another_checkout">Moving one directory to another checkout</h1>
<p>
From repository <tt>strix</tt> dump <tt>/strix4/utils/masscat</tt> and load it into repository <tt>strix-tools</tt> under <tt>/strix-tools/masscat</tt></p>
<pre>
svnadmin dump strix | \ 
svndumpfilter  --drop-empty-revs --renumber-revs  include /strix4/utils/masscat/ | \
sed 's!Node-path: strix4/utils/masscat!Node-path: masscat!' | \
svnadmin load strix-tools/
</pre>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>subversion, svn</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?subversion_tools</guid>
<pubDate>Mon, 29 Sep 2008 16:02:42 -0000</pubDate>
</item>
</channel>
</rss>