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

Re: svn commit: r1067195 - in /subversion/trunk/subversion: include/svn_checksum.h libsvn_client/export.c libsvn_subr/checksum.c

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Fri, 04 Feb 2011 13:22:37 -0800

Hyrum K Wright wrote:
> > - SVN_ERR(svn_checksum_mismatch_err(svn_dirent_local_style(fb->path, pool),
> > - text_checksum, actual_checksum, pool));
> > + SVN_ERR(svn_checksum_mismatch_err(text_checksum, actual_checksum, pool,
> > + _("Checksum mismatch for '%s'"),
> > + svn_dirent_local_style(fb->path, pool)));
>
> Although the use of svn_checksum_mismatch_err() simplifies the code
> and consolidates various messages for translation, it does have one
> drawback: the call to svn_dirent_local_style() is now unconditional,
> rather than only being invoked in the (unlikely) event of a checksum
> mismatch. Is this enough of a drawback that I should revert the past
> couple of commits in this area?

Maybe this indicates that the new public API should be one that simply
generates a checksum-mismatch error message (but doesn't do the
comparison), and a private/local wrapper should be used when it is
desired to combine the comparison and the error message creation into a
single call.

- Julian
Received on 2011-02-04 22:23:21 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.