<?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: svn]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=svn</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>
<item>
<title><![CDATA[SocialText CSS design]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?socialtext_css_design</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: css, SocialText, svn</div><hr/><div class="wiki">
<p>
This page collect various parts which used to be in <a href="https://saturn.ffzg.hr/rot13/index.cgi?socialtext_open_wiki_install" title="(219 months) Here are some quick notes about installation on clean Debian etch machine This page is aimed towards...">Socialtext Open Wiki Install</a>, but since they are more oriented towards wiki admins and designers, it's here as separate page.</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#new_skin_css_design_creation">Dobrica Pavlinušić's random unstructured stuff (New skin (CSS design) creation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] New skin (CSS design) creation} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#keep_local_changes_in_svn">Dobrica Pavlinušić's random unstructured stuff (Keep local changes in SVN)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Keep local changes in SVN} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="new_skin_css_design_creation">New skin (CSS design) creation</h1>
<pre>
cd /usr/share/nlw/css/
cp -r st rot13
st-admin set-workspace-config --workspace rot13 skin_name rot13
vi rot13/screen.css
</pre>
<br /><p>
See also <a target="_blank" title="(external link)" href="http://www.eu.socialtext.net/open/index.cgi?css_kit">CSS kit<!-- wiki-renamed-hyperlink "CSS kit"<http://www.eu.socialtext.net/open/index.cgi?css_kit> --></a> at SocialText Open Wiki</p>
<h1 id="keep_local_changes_in_svn">Keep local changes in SVN</h1>
<p>
It's important to save local modifications, because next <tt>make install</tt> <strong>will overwrite</strong> your changes in <tt>/usr/share/nlw</tt>. One possibility is to do overlay svn checout over <tt>/usr/share/nlw</tt> and than <tt>svn add</tt> and <tt>svn commit</tt> every change:</p>
<pre>
cd /usr/share
svn co file:///data/st-custom/share nlw.svn
cd nlw.svn
find . | cpio -pdu ../nlw/
cd - &amp;&amp; rm -Rf nlw.svn
cd nlw
svn info
</pre>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>css, SocialText, svn</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?socialtext_css_design</guid>
<pubDate>Thu, 08 Nov 2007 09:39:03 -0000</pubDate>
</item>
</channel>
</rss>