Checkout
Ivan Zhakov
committed
on 08 Aug 16
Introduce svn_stream_checksum() function to calculate checksum of specified
stream contents. Use new API where it makes sense.

* subversion… Show more
Introduce svn_stream_checksum() function to calculate checksum of specified

stream contents. Use new API where it makes sense.

* subversion/include/svn_io.h

 (svn_stream_checksum): New.

* subversion/libsvn_subr/stream.c

 (compute_stream_checksum): New. Helper for svn_stream_checksum().

 (svn_stream_checksum): New.

* subversion/tests/libsvn_subr/stream-test.c

 (test_stream_checksum): New. Simple test for svn_stream_checksum().

 (test_funcs): Add test_stream_checksum to test list.

* subversion/libsvn_fs/fs-loader.c

* subversion/libsvn_repos/config_pool.c

* subversion/libsvn_subr/io.c

* subversion/tests/libsvn_fs/fs-test.c

 (svn_fs_file_checksum, auto_parse, svn_io_file_checksum2,

  get_file_checksum): Use svn_stream_checksum() instead of

  svn_stream_checksummed2(READ_ALL=TRUE) + svn_stream_close().

Show less