FSFS: add a sanity check: the root noderev's PREDECESSOR_COUNT (aka HEADER_COUNT), when known, must equal the revision that noderev is the root of.
FSFS: add a sanity check: the root noderev's PREDECESSOR_COUNT (aka
HEADER_COUNT), when known, must equal the revision that noderev is the
root of.

* subversion/libsvn_fs_fs/fs_fs.c
  (validate_root_noderev): New function.
  (write_final_rev): New parameter, AT_ROOT.
    Use it to decide when to call validate_root_noderev().
  (commit_body): Update call to write_final_rev().


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

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