<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Team Project Debugging</title><link>https://sourceforge.net/p/omegat/wiki/Team%2520Project%2520Debugging/</link><description>Recent changes to Team Project Debugging</description><atom:link href="https://sourceforge.net/p/omegat/wiki/Team%20Project%20Debugging/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 26 Jun 2019 12:47:26 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/omegat/wiki/Team%20Project%20Debugging/feed" rel="self" type="application/rss+xml"/><item><title>Team Project Debugging modified by Aaron Madlon-Kay</title><link>https://sourceforge.net/p/omegat/wiki/Team%2520Project%2520Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -3,6 +3,14 @@
 ```sh
 svnadmin create testRepo.svn
 ```
+## HTTP access
+It is not trivial to serve an svn repo over HTTP, but we have a Docker image set up for it:
+```sh
+docker run --rm -p 1234:80 -e SVN_REPO_NAME=test omegatorg/httpd-svn
+```
+The repo is accessible at `http://localhost:1234/svn/test`.
+
+Note that toxiproxy does not support WebDAV so it cannot proxy an svn repo over HTTP. Thus it is not known how to simulate network problems as is possible with a git HTTP repo.
 # Local git repo
 Create a local git repo accessible via `file://` URL:
 ```sh
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aaron Madlon-Kay</dc:creator><pubDate>Wed, 26 Jun 2019 12:47:26 -0000</pubDate><guid>https://sourceforge.net07aa861dc3c3884be97f90ce1b97eeffce710240</guid></item><item><title>Team Project Debugging modified by Aaron Madlon-Kay</title><link>https://sourceforge.net/p/omegat/wiki/Team%2520Project%2520Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="local-svn-repo"&gt;Local svn repo&lt;/h1&gt;
&lt;p&gt;Create a local svn repo accessible via &lt;code&gt;file://&lt;/code&gt; URL:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;svnadmin create testRepo.svn
&lt;/pre&gt;&lt;/div&gt;


&lt;h1 id="local-git-repo"&gt;Local git repo&lt;/h1&gt;
&lt;p&gt;Create a local git repo accessible via &lt;code&gt;file://&lt;/code&gt; URL:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;mkdir -p testRepo.git/omegat
&lt;span class="nb"&gt;cd&lt;/span&gt; testRepo.git
git init
touch omegat/project_save.tmx
git add -A
git commit -m &lt;span class="s2"&gt;"Initial commit"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h2 id="http-access"&gt;HTTP access&lt;/h2&gt;
&lt;p&gt;Serve a local repo over HTTP with Python 3 like so:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; .git
python -m http.server &lt;span class="m"&gt;8000&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;For Python 2, use &lt;code&gt;SimpleHTTPServer&lt;/code&gt; instead of &lt;code&gt;http.server&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now you can access the repo as &lt;code&gt;http://localhost:8000&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="simulating-network-problems"&gt;Simulating network problems&lt;/h2&gt;
&lt;p&gt;Simulate network problems with &lt;a class="" href="https://github.com/Shopify/toxiproxy" rel="nofollow"&gt;toxiproxy&lt;/a&gt;:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;toxiproxy-server &lt;span class="p"&gt;&amp;amp;&lt;/span&gt;
&lt;span class="c1"&gt;# Create proxy targeting HTTP server started above&lt;/span&gt;
toxiproxy-cli create git -l localhost:8001 -u localhost:8000
&lt;span class="c1"&gt;# Add 1m40s of latency&lt;/span&gt;
toxiproxy-cli toxic add git -t latency -a &lt;span class="nv"&gt;latency&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;100000&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Now you can access the repo as &lt;code&gt;http://localhost:8001&lt;/code&gt; and it will timeout (assuming timeout properly set at less than 1m40s).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aaron Madlon-Kay</dc:creator><pubDate>Wed, 26 Jun 2019 12:25:50 -0000</pubDate><guid>https://sourceforge.net8415f746e7ed444a9f0ecfabc2dae43a0504c4f6</guid></item></channel></rss>