  "Hey, you wanna see something *really* scary?"  -- The Twilight Zone
  "Hey, you wanna see something *really* scary?"  -- The Twilight Zone

Fix two colluding bugs whereby internal txdelta stream checksums were
both computed incorrectly, and never finalized.  Because they were not
finalized, stream->digest remained all zeroes, and the incorrect
checksums never got out where they could affect anything.

* subversion/libsvn_delta/text_delta.c
  (svn_txdelta): Don't initialize the digest to all zeroes anymore,
    that can only serve to mask a bug.  And remove the utterly
    mysterious comment that seemed to be referring to an internal
    function all the way over in libsvn_fs/util/skel.c.  Huh?
  (svn_txdelta_next_window): Compute the checksum on the target data,
    not on the source data; and finalize the checksum in the
    end-of-stream case that the code actually reaches, not in the
    bogus end-of-stream case that was never reached.  Therefore remove
    the latter case, which means unwrapping one level of braces and
    and reindenting.  Sorry about that, but it should help the
    function breathe better.

Note that this is very old code; in fact, it predates Subversion's
self-hosting.  So if you've recently gotten a checksum error and you
think maybe this was the problem, it wasn't.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@845634 13f79535-47bb-0310-9956-ffa450edef68

wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion