<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://127.0.0.1:3001/hgsubversion/</link>
    <language>en-us</language>

    <title>hgsubversion: tests/fixtures/non_ascii_path_1.svndump history</title>
    <description>tests/fixtures/non_ascii_path_1.svndump revision history</description>
    <item>
    <title>svnwrap: fix handling of quotable URLs (fixes #197, refs #132)</title>
    <link>http://127.0.0.1:3001/hgsubversion/log/ae5968ffe6fe/tests/fixtures/non_ascii_path_1.svndump</link>
    <description><![CDATA[svnwrap: fix handling of quotable URLs (fixes #197, refs #132)<br/>
<br/>
The way hgsubversion handles URLs that may or may not be quoted is<br/>
somewhat fragile. As part of fixing issue 132 in 925ff8c5989c, the<br/>
path component of URLs was always quoted. The URL has been attempted<br/>
encoded since the initial check-in.<br/>
<br/>
The fix from 925ff8c5989c was incomplete; reverting it allows us to<br/>
clone a URL with a '~' in it.[1] Encoding the URL as UTF-8 seldom<br/>
works as expected, as the default string encoding is ASCII, causing<br/>
Python to be unable to decode any URL containing an 8-bit<br/>
character.<br/>
<br/>
The core problem here is that we don't know whether the URL specified<br/>
by the user is quoted or not. Rather than trying to deal with this<br/>
ourselves, we pass the problem on to Subversion. Then, we obtain the<br/>
URL from the RA instance, where it is always quoted. (It's worth<br/>
noting that the editor interface, on the other hand, always deals with<br/>
unquoted paths...)<br/>
<br/>
Thus, the following invariants should apply to SubversionRepo<br/>
attributes:<br/>
- svn_url and root will always be quoted.<br/>
- subdir will always be unquoted.<br/>
<br/>
Tests are added that verify that it won't affect the conversion<br/>
whether a URL is specified in quoted or unquoted form. Furthermore, a<br/>
test fixture for this is added *twice*, so that we can thoroughly test<br/>
both quoted and unquoted URLs. I'm not adding a test dedicated to<br/>
tildes in URLs; it doesn't seem necessary.<br/>
<br/>
[1] Such as &lt;https://svn.kenai.com/svn/winsw~subversion&gt;.]]></description>
    <author>&#68;&#97;&#110;&#32;&#86;&#105;&#108;&#108;&#105;&#111;&#109;&#32;&#80;&#111;&#100;&#108;&#97;&#115;&#107;&#105;&#32;&#67;&#104;&#114;&#105;&#115;&#116;&#105;&#97;&#110;&#115;&#101;&#110;&#32;&#60;&#100;&#97;&#110;&#99;&#104;&#114;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 04 Oct 2010 21:00:36 -0500</pubDate>
</item>

  </channel>
</rss>
