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

Re: svn commit: r1444956 - in /subversion/branches/fsfs-format7/subversion: libsvn_client/patch.c libsvn_fs_fs/fs.c libsvn_fs_fs/fs_fs.c libsvn_fs_fs/hotcopy.c libsvn_fs_fs/transaction.c libsvn_repos/repos.c libsvn_wc/adm_files.c

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Tue, 12 Feb 2013 08:21:37 +0100

On Mon, Feb 11, 2013 at 10:03 PM, Bert Huijben <bert_at_qqmail.nl> wrote:

>
>
> > -----Original Message-----
> > From: stefan2_at_apache.org [mailto:stefan2_at_apache.org]
> > Sent: maandag 11 februari 2013 21:47
> > To: commits_at_subversion.apache.org
> > Subject: svn commit: r1444956 - in /subversion/branches/fsfs-
> > format7/subversion: libsvn_client/patch.c libsvn_fs_fs/fs.c
> > libsvn_fs_fs/fs_fs.c libsvn_fs_fs/hotcopy.c libsvn_fs_fs/transaction.c
> > libsvn_repos/repos.c libsvn_wc/adm_files.c
> >
> > Author: stefan2
> > Date: Mon Feb 11 20:47:10 2013
> > New Revision: 1444956
> >
> > URL: http://svn.apache.org/r1444956
> > Log:
> > On the fsfs-format7 branch: update callers of the deprecated
> > svn_io_file_create to svn_io_file_create2. Use the default (0)
> > length value everywhere, except for those few places where the
> > actual length is obvious and unlikely to change
>
> Why did you deprecate this function instead of adding a separate optimized
> variant for your use case.
>

I didn't want to introduce e.g. svn_io_file_create_binary
alongside svn_io_file_create. svn_io_file_create2 lifting
svn_io_file_create's limitation of accepting C strings only
seemed like a logical extension of the original functionality
and not something completely different.

I don't think providing an explicit size makes sense for the average caller?
>

svn_io_file_create is often used to create empty files.
So, we should then also have svn_io_file_create_empty()
to save the unnecessary empty string parameter.

I opted for keeping the number of functions in our API low.
But I don't have strong feelings about that.

-- Stefan^2.

-- 
Certified & Supported Apache Subversion Downloads:
*
http://www.wandisco.com/subversion/download
*
Received on 2013-02-12 08:22:12 CET

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.