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

Re: CVS update: subversion/subversion/libsvn_subr xml.c

From: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2000-11-06 23:47:15 CET

This isn't a complete review (I'm in the middle of something else
right now), just a couple of quick comments:

Branko =?ISO-8859-2?Q?=C8ibej?= <brane@xbc.nu> writes:
> It's actually two changes in SVN, but they're intermixed a bit, so I
> didn't try to pry them apart:
>
>
> * Change all tests of APR status codes (except for tests for
> APR_SUCCESS) to use APR_STATUS_IS_blabla() macros. This is
> necessary for Win32, because there are actually several different
> possible codes for some kinds of errors. The APR macros take care
> of that, and should be portable. This should also be the Right Way
> to write such tests in future.

Whoa, that's a really good idea. Thanks for pointing this out and
making the change; we should be careful to use this method from now
on.

> * In check_adm_exist and svn_wc__ensure_directory, replace the
> apr_opendir checks with apr_stat. That's because apr_opendir won't
> return ENOENT on Win32, and I guess apr_stat should be faster in
> general, anyway. There might be a problem here with symlinks to
> directories, but from what I've seen, we don't support symlinks
> right now. Another possibility would be to change apr_opendir to
> return ENOENT everywhere.

Probably they should just use svn_io_check_path() now, actually; I'll
take a look and D.T.R.T.
Received on Sat Oct 21 14:36:14 2006

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.