This is item #2 from Greg Hudson's mail about 2.0 API improvements:
http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=67095
"Right now, the svn_txdelta interface has this little side-feature tacked on
where it will, in addition to computing a delta, calculate the MD5 sum of the
target data passed in. This is totally out of scope for the delta interface; we
should take out that functionality and replace it with a meta-stream which
computes MD5 sums while reading or writing data from an underlying stream."
(I have a memory that this is how I tried to do it first, and there was some
subtle and totally unexpected reason why it didn't work out. I could either be
misremembering, or not have thought of the right solution at the time... But
anyway wanted to mention this so it's not a total surprise if this fix turns out
to be harder than we thought. -kfogel)