You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2013/02/14 15:38:19 UTC
svn commit: r1446207 - /subversion/trunk/subversion/libsvn_delta/svndiff.c
Author: rhuijben
Date: Thu Feb 14 14:38:19 2013
New Revision: 1446207
URL: http://svn.apache.org/r1446207
Log:
* subversion/libsvn_delta/svndiff.c
(noop_write_handler): New function.
(svn_txdelta_parse_svndiff): Following up on r1446194, hook
noop_write_handler to avoid an assertion in some unexpected tests.
Modified:
subversion/trunk/subversion/libsvn_delta/svndiff.c
Modified: subversion/trunk/subversion/libsvn_delta/svndiff.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/svndiff.c?rev=1446207&r1=1446206&r2=1446207&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/svndiff.c (original)
+++ subversion/trunk/subversion/libsvn_delta/svndiff.c Thu Feb 14 14:38:19 2013
@@ -903,6 +903,14 @@ write_handler(void *baton,
/* NOTREACHED */
}
+/* Minimal svn_stream_t write handler, doing nothing */
+static svn_error_t *
+noop_write_handler(void *baton,
+ const char *buffer,
+ apr_size_t *len)
+{
+ return SVN_NO_ERROR;
+}
static svn_error_t *
close_handler(void *baton)
@@ -953,7 +961,8 @@ svn_txdelta_parse_svndiff(svn_txdelta_wi
else
{
/* And else we just ignore everything as efficiently as we can.
- by not hooking the stream at all */
+ by only hooking a no-op handler */
+ svn_stream_set_write(stream, noop_write_handler);
}
return stream;
}