<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>andthennothing.net: Relocating svk mirrors</title>
    <link>http://www.andthennothing.net/archives/2005/10/22/relocating-svk-mirrors</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>&amp;ldquo;first there was a three-legged monkey...&amp;rdquo;</description>
    <item>
      <title>Relocating svk mirrors</title>
      <description>&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;</description>
      <pubDate>Sat, 22 Oct 2005 12:37:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:a58ec083-ecb9-49e1-a5bd-126307a9de92</guid>
      <author>jonas.b@home.se (Jonas Bengtsson)</author>
      <link>http://www.andthennothing.net/archives/2005/10/22/relocating-svk-mirrors</link>
      <category>svn</category>
      <category>svk</category>
      <category>writeup</category>
      <trackback:ping>http://www.andthennothing.net/articles/trackback/291</trackback:ping>
    </item>
  </channel>
</rss>

