hi<br>I figured out what the real difference is:<br>if you apply relpath to something which is already relative <br>while not in the base dir, it prepends your path. (the old canonicalpath does not)<br><br>anyways, I&#39;ll just abspath first where this could be&nbsp; a problem
<br><br><div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Marius Kruger</b> &lt;<a href="mailto:amanic@gmail.com">amanic@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>so I wrote proper tests for canonical path, <br>and when I saw your mail, <br>I tried them with relpath, <br>and you are right it passes all the tests.<br>I did not expect this though, <br><br>will fixup i.e use relpath.
<br><br>I can&#39;t seem to win<br>regards<br><span class="sg">marius</span><div><span class="e" id="q_1120d93ab1ff2574_2"><br><br><div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Robert Collins</b>
 &lt;<a href="mailto:robertc@robertcollins.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">robertc@robertcollins.net
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, 2007-04-20 at 07:17 +0200, Marius Kruger wrote:<br>&gt;<br>&gt;
<br>&gt; I can change the doc string to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;Normalize filename<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Returns the filename relative to the working tree base,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resolving pathelements like &#39;.&#39;, &#39;..&#39;, and removing trailing
<br>&gt; slashes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for directories.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;<br><br>How is it different to WorkingTree.relpath ?<br><br>-Rob<br><br>--<br>GPG key available at: &lt;<a href="http://www.robertcollins.net/keys.txt" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.robertcollins.net/keys.txt</a>&gt;.<br><br></blockquote></div><br></span></div></blockquote></div><br>