<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://shazwazza.com/rss/xslt"?>
<rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Shazwazza</title>
    <link>https://shazwazza.com/</link>
    <description>My blog which is pretty much just all about coding</description>
    <generator>Articulate, blogging built on Umbraco</generator>
    <image>
      <url>/media/0libq25y/frog.png?rmode=max&amp;v=1da0e911f4e6890</url>
      <title>Shazwazza</title>
      <link>https://shazwazza.com/</link>
    </image>
    <item>
      <guid isPermaLink="false">1312</guid>
      <link>https://shazwazza.com/post/visualsvn-server-on-svn-protocol/</link>
      <category>etc...</category>
      <category>Hosting</category>
      <category>Servers</category>
      <title>VisualSVN server on SVN protocol</title>
      <description>&lt;div class="imported-post"&gt;This post was imported from FARMCode.org which has been discontinued. These posts now exist here as an archive. They may contain broken links and images.&lt;/div&gt;I’m sure I’m not the only one who has noticed that running SVN over the Http protocol using VisualSVN is REALLY slow in comparison to running SVN using the &lt;a href="file:///"&gt;file:///&lt;/a&gt; or svn:// protocol. It is nice having the option of the http protocol so at least you can browse your repositories in your browser, allow external access to them without opening up another port on your firewall and also apply Windows security to your repositories, however, it is really, really slow. After some Googling on how to get VisualSVN server to run using the SVN protocol, it turns out this is not possible but you can run the SVN protocol as a service in tandem with VisualSVN which will give you the best of both worlds. Luckily for us, VisualSVN installs all of the necessary files for us to do this. Here’s how:  &lt;ul&gt; &lt;li&gt;Create a batch file in your VisualSVN bin folder (normally: C:\Program Files\VisualSVN Server\bin) called something like: “INSTALLSVNPROTOCOL.bat”  &lt;ul&gt; &lt;li&gt;You’ll need to edit the below script to map your svn repository folders properly. Change the “E:\YOUR-SVN-REPOSITORY-ROOT-FOLDER” to the path of your svn repository root folder. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt; &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:6871554c-fe1c-4b44-82bd-7ca600f9cf46" class="wlWriterSmartContent"&gt;&lt;pre style="background-color: white; width: 574px; word-wrap: break-word; white-space: pre-wrap; height: 202px; overflow: hidden"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000ff"&gt;echo&lt;/span&gt;&lt;span style="color: #000000"&gt; ---Install the service 

&lt;/span&gt;&lt;span style="color: #008000"&gt;REM&lt;/span&gt;&lt;span style="color: #008000"&gt; this should all be on one line!&lt;/span&gt;&lt;span style="color: #008000"&gt;
&lt;/span&gt;&lt;span style="color: #000000"&gt;sc create SVNPROTOCOLSERVICE binpath&lt;/span&gt;&lt;span style="color: #000000"&gt;=&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;"&lt;/span&gt;&lt;span style="color: #000000"&gt;\"c:\Program Files\VisualSVN Server\bin\svnserve.exe\" --service --root \"E:\YOUR-SVN-REPOSITORY-ROOT-FOLDER\" &lt;/span&gt;&lt;span style="color: #000000"&gt;"&lt;/span&gt;&lt;span style="color: #000000"&gt; displayname&lt;/span&gt;&lt;span style="color: #000000"&gt;=&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;"&lt;/span&gt;&lt;span style="color: #000000"&gt;SVN Service&lt;/span&gt;&lt;span style="color: #000000"&gt;"&lt;/span&gt;&lt;span style="color: #000000"&gt; depend&lt;/span&gt;&lt;span style="color: #000000"&gt;=&lt;/span&gt;&lt;span style="color: #000000"&gt; Tcpip

&lt;/span&gt;&lt;span style="color: #0000ff"&gt;echo&lt;/span&gt;&lt;span style="color: #000000"&gt; ---Config to auto-&lt;/span&gt;&lt;span style="color: #0000ff"&gt;start&lt;/span&gt;&lt;span style="color: #000000"&gt;
sc config SVNPROTOCOLSERVICE &lt;/span&gt;&lt;span style="color: #0000ff"&gt;start&lt;/span&gt;&lt;span style="color: #000000"&gt;=&lt;/span&gt;&lt;span style="color: #000000"&gt; auto&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Next, run your batch file. 
&lt;ul&gt;
&lt;li&gt;This will install a windows service to host your repositories on the SVN protocol &lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;Update your windows service to run as Administrator, or a user that has the permissions to run the service 
&lt;ul&gt;
&lt;li&gt;Start Menu –&amp;gt; Adminstrative Tools –&amp;gt; Services –&amp;gt; Find the “SVN Service” that was just created –&amp;gt; Right click –&amp;gt; Properties –&amp;gt; Log On&amp;nbsp; Tab –&amp;gt; Change “Log on as:” to use your Administrator account. &lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;Start the windows service &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Your done!&lt;/strong&gt; You can now access your repositories via the SVN protocol using something like:&lt;/p&gt;
&lt;p&gt;svn://yourservername.yourdomainname.local/YOUR-REPOSITORY-NAME&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ok, to uninstall:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a batch file in the same folder as your install batch file called something like “UNINSTALLSVNPROTOCOL.bat” &lt;/li&gt;&lt;/ul&gt;
&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:13d5f319-ed8f-430c-b30d-c748ccaef504" class="wlWriterSmartContent"&gt;&lt;pre style="background-color: white; width: 326px; word-wrap: break-word; white-space: pre-wrap; height: 93px; overflow: hidden"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000ff"&gt;echo&lt;/span&gt;&lt;span style="color: #000000"&gt; --remove svn service

sc stop SVNPROTOCOLSERVICE 
sc delete SVNPROTOCOLSERVICE&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Run the batch file &lt;/li&gt;&lt;/ul&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:08:09 Z</pubDate>
      <a10:updated>2023-03-23T15:08:09Z</a10:updated>
    </item>
  </channel>
</rss>