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

svnurl and path.c

From: McClain Looney <m_at_loonsoft.com>
Date: 2004-04-22 21:43:07 CEST

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("/"));
        }

-- 
McClain Looney
LoonSoft LLC
m@loonsoft.com
Received on Fri Apr 23 05:43:07 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.