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'll just abspath first where this could be a problem
<br><br><div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Marius Kruger</b> <<a href="mailto:amanic@gmail.com">amanic@gmail.com</a>> 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'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>
<<a href="mailto:robertc@robertcollins.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">robertc@robertcollins.net
</a>> 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>><br>>
<br>> I can change the doc string to<br>> """Normalize filename<br>><br>> Returns the filename relative to the working tree base,<br>> resolving pathelements like '.', '..', and removing trailing
<br>> slashes<br>> for directories.<br>> """<br><br>How is it different to WorkingTree.relpath ?<br><br>-Rob<br><br>--<br>GPG key available at: <<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>>.<br><br></blockquote></div><br></span></div></blockquote></div><br>