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

Code broken after upgrade to subversion-1 .5-rc5.

From: charlesw1234 <charlesw1234_at_163.com>
Date: Sat, 24 May 2008 12:02:42 +0800 (CST)

hi~

I'm using gentoo subversion-1.5.0-rc5, the emerge output is:

$ emerge -pv subversion

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] dev-util/subversion-1.5.0_rc5 USE="apache2 berkdb emacs nls python webdav-neon -bash-completion -debug -doc -extras -java -perl -ruby -sasl -vim-syntax -webdav-serf" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Now I'm try the following script in python(The current directory is one of my subversion working directory):
$ python
>>> import svn.core, svn.client
>>> revh = svn.core.svn_opt_revision_t()
>>> revh = svn.core.svn_opt_revision_head
>>> ctx = svn.client.svn_client_create_context()
>>> svn.client.info('.', revh, revh, MyInfoCallback, False, ctx)
And the following error message is shown:
python: subversion/libsvn_subr/path.c:119: svn_path_join: Assertion `is_canonical(base, blen)' failed.

But this code is work fine in subversion-1.4
If I use os.getcwd() to replace '.' in svn.client.info, the python is Segment fault.

Is this a bug of subversion-1.5? If I mis-use it, what can I do to get the info of my working copy?

Thanks Greatly.

Charles May/24/2008
Received on 2008-05-24 06:03:12 CEST

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

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