Cleanup the offset handling in FSFS.  Explicitly seek to the end of a file when opening it for append-mode writing, so that future routines will read a correct offset in the case nothing has yet been written. Also, place a cosmetic ENDREP after directory content representations for consistency.
Cleanup the offset handling in FSFS.  Explicitly seek to the end of a
file when opening it for append-mode writing, so that future routines
will read a correct offset in the case nothing has yet been written.
Also, place a cosmetic ENDREP after directory content representations
for consistency.

   * subversion/libsvn_fs_fs/fs_fs.c
     (get_file_offset): New helper function that returns the current
       offset in an open file.
     (build_rep_list, get_combined_window, rep_write_get_baton,
      rep_write_contents_close, write_final_rev,
      write_final_changed_path_info): Use the new get_file_offset
       helper function.
     (open_and_seek_representation_write, svn_fs__fs_commit): Seek to
       the end of the file after opening it for append.
     (write_hash_rep): Write a cosmetic ENDREP after rep.

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion