<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>andthennothing.net: Relocating svk mirrors</title>
  <subtitle type="html">&amp;ldquo;first there was a three-legged monkey...&amp;rdquo;</subtitle>
  <id>tag:andthennothing.net,2005:Typo</id>
  <generator uri="http://typo.leetsoft.com" version="4.0">Typo</generator>
  <link href="http://andthennothing.net/xml/atom10/article/291/feed.xml" rel="self" type="application/xml+atom"/>
  <link href="http://andthennothing.net/archives/2005/10/22/relocating-svk-mirrors" 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://andthennothing.net/archives/2005/10/22/relocating-svk-mirrors" rel="alternate" type="text/html"/>
    <category term="svn" scheme="http://andthennothing.net/tags/291"/>
    <category term="svk" scheme="http://andthennothing.net/tags/291"/>
    <category term="writeup" scheme="http://andthennothing.net/tags/291"/>
    <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>
</feed>
