Some FSX code cleanup and stream handling fixes.
Some FSX code cleanup and stream handling fixes.

The stream handling issue lies in the difference between the delta
stream being created and the raw output stream. We checksum the input
into the delta stream and close it once the delta is complete. After
that, we add the "ENDREP" sequence to the raw stream.  This did not
surface as an error before since writing to a closed file stream is
not being prevented.

* subversion/libsvn_fs_x/transaction.c
  (rep_write_contents): Get rid of FSFS remnants as we always write
                        deltififed data.
  (rep_write_get_baton): Don't close the output stream automatically
                         because we need to add the footer after the
                         plaintext has already been fully deltified.
  (rep_write_contents_close): Again, we always deltify in FSX.  Also,
                       we now need to close the raw stream explicitly.
  (write_container_delta_rep): Close the raw rep stream explicitly.
  (write_final_changed_path_info): Update function docstring.

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

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion