Various improvements to the wc_db code.
Various improvements to the wc_db code.

* subversion/libsvn_wc/wc_db.c:
  (wcroot_t): add a format number
  (create_wcroot): initialize the format number to 0
  (scan_upwards_for_repos): replace WC_ID and SDB parameters with a single
    wcroot parameter.
  (determine_obstructed_file): new function, yanked out of
    parse_local_abspath, as a tight encapsulation of this functionality
  (parse_local_abspath): shift code out to determine_obstructed_file
  (get_statement_for_path): switch STMT_IDX type to an enum
  (gather_children): rename parameter to STMT_IDX to align with
    get_statement_for_path. use that func to eliminate a bunch of code.
    change initial array size to 10 based on review of svn's trunk.
  (svn_wc__db_close): tweak to store wcroots rather than SDBs.
  (svn_wc__db_scan_base_repos): tweak params to scan_upwards_for_repos


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

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