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

Cancelling location segments operation from callback

From: Martin Panter <vadmium+floss_at_gmail.com>
Date: Sun, 26 Jan 2014 03:23:38 +0000

This is a followup from my message from a couple months ago:
http://svn.haxx.se/users/archive-2013-11/0165.shtml

Basically, I was trying to cancel an svn_ra_get_location_segments()
call by returning an error from the callback. The API call seems to
finish straight away as I expect, but when I subsequently call
svn_ra_get_log2(), it fails in version 1.8.3+, although it succeeds in
1.7.8.

I have converted the demonstration into C code:
https://gist.github.com/vadmium/8613200

When I played with other kinds of URLs, I noticed that “file:” URLs
always work as I expect (no log failure), but that
“svn+ssh://localhost” always returns error 210004 “Malformed network
data”, even in 1.7.8. So this makes me wonder, is Subversion actually
meant to support a callback returning an error to cancel an operation
like I have been doing?

Thanks
Martin
Received on 2014-01-26 04:24:27 CET

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