<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>andthennothing.net: Tag svk</title>
  <subtitle type="html">&amp;ldquo;first there was a three-legged monkey...&amp;rdquo;</subtitle>
  <id>tag:www.andthennothing.net,2005:Typo</id>
  <generator uri="http://typo.leetsoft.com" version="4.0">Typo</generator>
  <link href="http://www.andthennothing.net/xml/atom10/tag/svk/feed.xml" rel="self" type="application/xml+atom"/>
  <link href="http://www.andthennothing.net/tags/svk?tag=svk" rel="alternate" type="text/html"/>
  <updated>2005-12-18T03:19:08+00:00</updated>
  <entry>
    <author>
      <name>Jonas Bengtsson</name>
      <email>jonas.b@home.se</email>
    </author>
    <id>urn:uuid:a58ec083-ecb9-49e1-a5bd-126307a9de92</id>
    <published>2005-10-22T12:37:00+00:00</published>
    <updated>2005-12-18T03:19:08+00:00</updated>
    <title>Relocating svk mirrors</title>
    <link href="http://www.andthennothing.net/archives/2005/10/22/relocating-svk-mirrors" rel="alternate" type="text/html"/>
    <category term="svn" scheme="http://www.andthennothing.net/tags/svk"/>
    <category term="svk" scheme="http://www.andthennothing.net/tags/svk"/>
    <category term="writeup" scheme="http://www.andthennothing.net/tags/svk"/>
    <content type="html">&lt;p&gt;&lt;a href="http://andthennothing.net/archives/2005/10/01/handling-multiple-repositories-with-svn-and-svk"&gt;When I created my svk mirrors&lt;/a&gt; I used http to connect to my svn repository. However since then I activated https support on my server. Due to some stupidity on my part (and how hard it is to debug webserver configuration problems) I didn&amp;#8217;t get it to work until this week (thanks to the &lt;a href="http://www.textdrive.com"&gt;TextDrive support&lt;/a&gt;). To relocate a mirror you should just have to do like this:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;C:\&amp;gt;svk mirror --list
Path                    Source
============================================================
//andthennothing        http://urltorepository
//typo/mirror           svn://leetsoft.com/typo/trunk
C:\&amp;gt;svk mirror --relocate //andthennothing https://urltorepository&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

But I wouldn&amp;#8217;t write this if it was that painless. I got this error instead:
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;C:\&amp;gt;svk mirror --relocate //andthennothing https://urltorepository
Error validating server certificate for 'https://hostname:443':
&amp;lt;snip /&amp;gt;
(R)eject, accept (t)emporarily or accept (p)ermanently? p
Type error in argument 2 of svn_auth_cred_ssl_server_trust_t_accepted_failures_set. Expected _p_apr_uint32_t at C:/Development/svk/lib/SVN/Base.pm line 80, &amp;lt;STDIN&amp;gt; line 1.&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

After a while of searching darix at the &lt;a href="irc://irc.freenode.net/svn"&gt;#svn&lt;/a&gt; helped me out.
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;C:\&amp;gt;svn ls https://urltorepository
Error validating server certificate for 'https://hostname:443':
&amp;lt;snip /&amp;gt;
(R)eject, accept (t)emporarily or accept (p)ermanently? p
branches/
trunk/
C:\&amp;gt;svk mirror --relocate //andthennothing https://urltorepository
Authentication realm: &amp;lt;https://hostname:443&amp;gt; realm
Password for 'user':
Committed revision 633.
C:\&amp;gt;svk mirror --list
Path                    Source
============================================================
//andthennothing        https://urltorepository
//typo/mirror           svn://leetsoft.com/typo/trunk&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Yay! So I guess there&amp;#8217;s some problems with adding a certificate through svk at least on Windows (more specifically &lt;a href="http://svn.haxx.se/users/archive-2005-04/1247.shtml"&gt;svn&amp;#8217;s Perl bindings on Windows&lt;/a&gt;). But as soon as the certificate is cached (through svn) everything works fine.&lt;/p&gt;


	&lt;p&gt;I feel so much secure now using https instead of http :-)&lt;/p&gt;


	&lt;p&gt;&lt;ins&gt;Update:&lt;/ins&gt; To relocate a svn checkout you just type &lt;code&gt;svn switch https://urltorepository&lt;/code&gt;. Easy peasy!&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Jonas Bengtsson</name>
      <email>jonas.b@home.se</email>
    </author>
    <id>urn:uuid:3067c42b-7001-4a39-b07d-b5a8d0441256</id>
    <published>2005-10-01T19:46:00+00:00</published>
    <updated>2005-12-18T03:19:02+00:00</updated>
    <title>Handling multiple repositories with svn and svk</title>
    <link href="http://www.andthennothing.net/archives/2005/10/01/handling-multiple-repositories-with-svn-and-svk" rel="alternate" type="text/html"/>
    <category term="svn" scheme="http://www.andthennothing.net/tags/svk"/>
    <category term="svk" scheme="http://www.andthennothing.net/tags/svk"/>
    <category term="scm" scheme="http://www.andthennothing.net/tags/svk"/>
    <category term="typo" scheme="http://www.andthennothing.net/tags/svk"/>
    <category term="writeup" scheme="http://www.andthennothing.net/tags/svk"/>
    <content type="html">&lt;p&gt;On a day-to-day basis I&amp;#8217;m using &lt;a href="http://www.perforce.com/"&gt;Perforce&lt;/a&gt; at work for my &lt;acronym title="Software Configuration Management"&gt;SCM&lt;/acronym&gt; needs. I&amp;#8217;ve used &lt;a href="http://www.cvshome.org"&gt;CVS&lt;/a&gt; a few times back in the days but I&amp;#8217;ve tried to forget about it :-). But as I&amp;#8217;m migrating to my new web host I have to learn how to use Subversion (svn). The main issue I saw was how to manage multiple branches and repositories.&lt;/p&gt;


	&lt;p&gt;I asked at the &lt;a href="http://typo.leetsoft.com/"&gt;Typo&lt;/a&gt; mailing list, and a similar thread appeared on the &lt;a href="http://www.rubyonrails.org/"&gt;Rails&lt;/a&gt; mailing list, and the general recommendation was to use &lt;a href="http://svk.elixus.org/"&gt;svk&lt;/a&gt; (especially &lt;a href="http://article.gmane.org/gmane.comp.lang.ruby.rails/23701"&gt;this mail&lt;/a&gt; won me over). Other reference material I used was &lt;a href="http://scottstuff.net/blog/articles/2005/07/07/distributed-development-with-svk"&gt;this&lt;/a&gt;, &lt;a href="http://svk.elixus.org/"&gt;that&lt;/a&gt;, and &lt;a href="http://svnbook.red-bean.com/"&gt;the other&lt;/a&gt;. This is a writeup of how I went about &lt;em&gt;(it might not be that easy to understand and a little more explanations are probably needed for this to be helpful, but just ask me if there is something that you don&amp;#8217;t understand)&lt;/em&gt;:&lt;/p&gt;


	&lt;p&gt;Installing svk from &lt;a href="http://svk.elixus.org/?SVKWin32"&gt;here&lt;/a&gt;.&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;svk depotmap --init
svk mkdir //typo
svk mirror svn://leetsoft.com/typo/trunk //typo/mirror
svk sync //typo/mirror
svk co //typo/mirror typo-mirror&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Seems to work.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m a little bit worried at this stage. I&amp;#8217;d like to use the &lt;a href="http://www.eclipse.org/"&gt;Eclipse&lt;/a&gt; plugin &lt;a href="http://subclipse.tigris.org"&gt;subclipse&lt;/a&gt; when developing. Perhaps I should only use svk when migrating between different trees. Yes, I think I&amp;#8217;ll go for that, and to make it smooth I&amp;#8217;ll keep all svk checkouts (&lt;code&gt;svk co --list&lt;/code&gt;) in one directory called &lt;code&gt;svk&lt;/code&gt;. So let&amp;#8217;s relocate:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;svk co --relocate typo-mirror svk\typo-mirror&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;I might change my mind further down the line and want to use svk exclusively, but I don&amp;#8217;t expect that to be a problem since svk appears to be quite flexible.&lt;/p&gt;


	&lt;p&gt;Time to move into svn land. I need to create a trunk and a development tree on my Textdrive repository.&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;svn mkdir http://urltorepository/trunk
svn mkdir http://urltorepository/branches
svn mkdir http://urltorepository/branches/dev&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

Time to chechout the svn branches:
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;svn co http://urltorepository/trunk site-trunk
svn co http://urltorepository/branches/trunk site-dev&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Back in svk land.&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;svk mirror http://urltorepository //site
svk sync //site
svk co //site/branches/dev site-dev&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Time to do a baseless merge from Typo to the dev branch:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;svk smerge --baseless //typo/mirror site-dev&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Since the dev branch was empty before it&amp;#8217;s safe to commit the changes without reviewing: &lt;code&gt;svk commit&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;Time to update Typo with the changes I&amp;#8217;ve done previously. &lt;code&gt;svn update&lt;/code&gt; in my site-dev checkout. Firing up a favourite open source utility of mine: &lt;a href="http://winmerge.org/"&gt;WinMerge&lt;/a&gt;. Takes a while to merge all the files, but now I&amp;#8217;m done, just have to try out if it works alright. It seems to work fine. &lt;code&gt;svn status&lt;/code&gt;. Hmm, most of my customizations of Typo is in the views, and looking at this &lt;a href="http://typo.leetsoft.com/trac/ticket/354"&gt;ticket&lt;/a&gt; Typo is apparently supporting themed views, have to try it out&amp;#8230; Yes it works, neato! &lt;code&gt;svn add&lt;/code&gt; on all the new files and &lt;code&gt;svn commit&lt;/code&gt;.&lt;/p&gt;


Back to svk to integrate to the trunk. 
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;svk sync //site
svk co //site/trunk andthennothing-trunk&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

Migrating from the dev branch to trunk: 
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;svk smerge --baseless //site/branches/dev site-trunk
svk commit&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;I think that&amp;#8217;s it and hope it will be quite easy to manage in the future. There are two main cycles I&amp;#8217;ll be performing. One is getting updates from the Typo repository, and then migrate the changes to the dev branch to the trunk. The other one is migrating changes I&amp;#8217;m doing to the dev branch to the trunk. Both of those should be quite easy to manage in svk. I think that the dev branch might be unnecessary, but I&amp;#8217;m used to working with a lot of different branches (release, import, team, personal etc.) so that&amp;#8217;s how I&amp;#8217;m feeling comfortable at the moment. But it will probably be quite easy to remove the dev branch if deemed unnecessary.&lt;/p&gt;


	&lt;p&gt;Both svn and svk are new and welcomed acquaintances. Working in the command prompt with &lt;span class="caps"&gt;SCM&lt;/span&gt; tools were nicer than I thought and remembered. Hopefully I will have the same opinion in a couple of weeks when I have a little more experience with merging and resolving conflicts (I&amp;#8217;m somewhat worried that it will be cumbersome). svn&amp;#8217;s poor support for branches and merging is my main pet peeve, but svk handled that nicely. I would go for a svk only (on the client side) if there were a Eclipse plug-in.&lt;/p&gt;


	&lt;p&gt;Nice learning experience!&lt;/p&gt;</content>
  </entry>
</feed>

