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

perl swig bindings: status on "."

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-01-22 21:11:04 CET

Since we have some guys looking at the perl bindings, here is a simple
one:

 

When svn_path_basename is called during a svn_client_status call it can
barf on '.' and core dumps the interpreter.

perl: subversion/libsvn_subr/path.c:377: svn_path_basename: Assertion
`is_canonical(path, len)' failed.

 

As outlined in past discussions I found, the code fails because the
canonical version of '.' is '' (empty string) and for some reason that
path is not getting canonicalized before being passed.

 

The simple thing to do would be to map '.' to '' before
svn_client_status (or status2) is called, since changing the api
directly seems to be a source of contention (at least it was 2 years ago
:-) ).

 

Thanks,

Eric

 

PS. Support for status2, lock, and unlock would be cool too :-)
Received on Mon Jan 22 21:11:28 2007

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

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