[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnurl and path.c

From: McClain Looney <m_at_loonsoft.com>
Date: 2004-04-26 03:36:02 CEST

wow, i just read my original mail, seems it suffered greatly from last
minute editing. it should say something like "to fix this, remove the
+1 from the substring call in the return statement in getParent()".
sorry for the confusion.

On Apr 25, 2004, at 4:06 PM, Cédric Chabanois wrote:

> Did you fix svnclientadapter ?
>
> Cédric
>
>> Hello,
>>
>> in svn 1.0.2, if a non-cannonical path is passed to
>> svn_path_join(base, component, pool), the assertion on 156 will fail.
>> currently, the SVNURL.getParent() function returns an SVNUrl with an
>> appended "/", which causes the vm to exit(!) due to the assertion
>> failure path.c. removing the +1 from the return statement.
>>
>> Here's a testcase:
>> public void testCanonicalGetParentToString()throws Exception{
>> SVNUrl url = new SVNUrl("http://blah.com/svn/blah/");
>> assertFalse(url.getParent().toString().endsWith("/"));
>> url = new SVNUrl("http://blah.com/svn/blah/A.class");
>> assertFalse(url.getParent().toString().endsWith("/"));
>> }
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: dev-help@subclipse.tigris.org
>
>

---
McClain Looney
m@loonsoft.com
Received on Mon Apr 26 11:36:02 2004

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.