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

Re: Assertion Failure dialogs appear when attempting to open repository with bad URL

From: Bert Huijben <bert_at_qqmail.nl>
Date: Wed, 10 Jun 2015 19:04:02 +0000

I don’t think we can really fix that url in the api by canonicalizing it to something completely different/unrelated, but the assertion makes it obvious that the caller can just see/check that the url is not going to work… just like values such as the empty string or strings with no scheme, that can't be canonicalized to a url either.


From: 'Stefan Kueng'
Sent: ‎Wednesday‎, ‎June‎ ‎10‎, ‎2015 ‎7‎:‎34‎ ‎PM
To: dev_at_subversion.apache.org

On 10.06.2015 19:06, Bert Huijben wrote:
> Hi Dean,
> There is not much we can do about this. The Subversion apis require that
> you pass canonical urls, while the client (TortoiseSVN) that you use
> doesn’t canonicalize the url before passing it to this api.

And that's what the svn_dirent_canonicalize() and svn_uri_canonicalize()
APIs are for.
Problem is: in that case they don't work:

$ svn list file:///c:Software/SourceCodeRepository

try that with an svn build from the 1.9.x branch and you'll get an


   oo // \\ "De Chelonian Mobile"
  (_,\/ \_/ \ TortoiseSVN
    \ \_/_\_/> The coolest interface to (Sub)version control
    /_/ \_\ http://tortoisesvn.net
Received on 2015-06-10 21:07:56 CEST

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