Glenn A. Thompson <gthompson@cdr.net> (gthompson)


Patch
r845421, r845407, r845347, r845304, r845302, r844282

r844282 | cmpilato | 2002-12-30 04:14:56 +0000 (Mon, 30 Dec 2002)

This patch is the first in a series of incremental patches which aim
to provided filesystem database back-end abstraction.  

Patch by: Glenn A. Thompson <gthompson@cdr.net>

No functionality was changed in this patch -- we're only talking about
renamed functions and macros.  Also, as a general note, users of
DB_WRAP() now use BDB_WRAP().  I don't feel like listing this
everywhere it happens.

* subversion/libsvn_fs/bdb/bdb-err.c
* subversion/libsvn_fs/bdb/bdb-err.h
  New files.

* subversion/libsvn_fs/bdb/bdb_compat.c
* subversion/libsvn_fs/bdb/bdb_compat.h
  (svn_bdb__check_version): Was svn_fs__bdb_check_version.

* subversion/libsvn_fs/bdb/changes-table.h
* subversion/libsvn_fs/bdb/changes-table.c
  (svn_fs__bdb_open_changes_table): Was svn_fs__open_changes_table.
  (svn_fs__bdb_changes_add): Was svn_fs__changes_add.
  (svn_fs__bdb_changes_delete): Was svn_fs__changes_delete.
  (svn_fs__bdb_changes_fetch): Was svn_fs__changes_fetch.
  (svn_fs__bdb_changes_fetch_raw): Was svn_fs__changes_fetch_raw.

* subversion/libsvn_fs/bdb/copies-table.h
* subversion/libsvn_fs/bdb/copies-table.c
  (svn_fs__bdb_open_copies_table): Was svn_fs__open_copies_table.
  (svn_fs__bdb_reserve_copy_id): Was svn_fs__reserve_copy_id.
  (svn_fs__bdb_create_copy): Was svn_fs__create_copy.
  (svn_fs__bdb_delete_copy): Was svn_fs__delete_copy.
  (svn_fs__bdb_get_copy): Was svn_fs__get_copy.

* subversion/libsvn_fs/bdb/nodes-table.h
* subversion/libsvn_fs/bdb/nodes-table.c
  (svn_fs__bdb_open_nodes_table): Was svn_fs__open_nodes_table.
  (svn_fs__bdb_new_node_id): Was svn_fs__new_node_id.
  (svn_fs__bdb_new_successor_id): Was svn_fs__new_successor_id.
  (svn_fs__bdb_delete_nodes_entry): Was svn_fs__delete_nodes_entry.
  (svn_fs__bdb_get_node_revision): Was svn_fs__get_node_revision.
  (svn_fs__bdb_put_node_revision): Was svn_fs__put_node_revision.

* subversion/libsvn_fs/bdb/reps-table.h
* subversion/libsvn_fs/bdb/reps-table.c
  (svn_fs__bdb_open_reps_table): Was svn_fs__open_reps_table.
  (svn_fs__bdb_read_rep): Was svn_fs__read_rep.
  (svn_fs__bdb_write_rep): Was svn_fs__write_rep.
  (svn_fs__bdb_write_new_rep): Was svn_fs__write_new_rep.
  (svn_fs__bdb_delete_rep): Was svn_fs__delete_rep.

* subversion/libsvn_fs/bdb/rev-table.h
* subversion/libsvn_fs/bdb/rev-table.c
  (svn_fs__bdb_open_revisions_table): Was svn_fs__open_revisions_table.
  (svn_fs__bdb_get_rev): Was svn_fs__get_rev.
  (svn_fs__bdb_put_rev): Was svn_fs__put_rev.
  (svn_fs__bdb_youngest_rev): Was svn_fs__youngest_rev.

* subversion/libsvn_fs/bdb/strings-table.h
* subversion/libsvn_fs/bdb/strings-table.c
  (svn_fs__bdb_open_strings_table): Was svn_fs__open_strings_table.
  (svn_fs__bdb_string_read): Was svn_fs__string_read.
  (svn_fs__bdb_string_read): Was svn_fs__string_read.
  (svn_fs__bdb_string_append): Was svn_fs__string_append.
  (svn_fs__bdb_string_clear): Was svn_fs__string_clear.
  (svn_fs__bdb_string_size): Was svn_fs__string_size.
  (svn_fs__bdb_string_delete): Was svn_fs__string_delete.
  (svn_fs__bdb_string_copy): Was svn_fs__string_copy.

* subversion/libsvn_fs/bdb/txn-table.h
* subversion/libsvn_fs/bdb/txn-table.c
  (svn_fs__bdb_open_transactions_table): Was svn_fs__open_transactions_table.
  (svn_fs__bdb_put_txn): Was svn_fs__put_txn.
  (svn_fs__bdb_create_txn): Was svn_fs__create_txn.
  (svn_fs__bdb_delete_txn): Was svn_fs__delete_txn.
  (svn_fs__bdb_get_txn): Was svn_fs__get_txn.
  (svn_fs__bdb_get_txn_list): Was svn_fs__get_txn_list.
  
* subversion/libsvn_fs/err.h
* subversion/libsvn_fs/err.c
  (db_err_to_apr_err): Moved to bdb/bdb-err.c; now called (bdb_err_to_apr_err).
  (svn_fs__dberr): Moved to bdb/bdb-err.c; now called (svn_fs__bdb_dberr).
  (svn_fs__dberrf): Moved to bdb/bdb-err.c; now called (svn_fs__bdb_dberrf).
  (svn_fs__wrap_db): Moved to bdb/bdb-err.c; now called (svn_fs__bdb_wrap_db).

* subversion/libsvn_fs/dag.c
  (get_node_revision, set_node_revision, svn_fs__dag_get_revision,
   txn_body_dag_init_fs, svn_fs__dag_set_proplist,
   svn_fs__dag_clone_root, svn_fs__dag_delete_if_mutable,
   svn_fs__dag_get_edit_stream, svn_fs__dag_finalize_edits,
   svn_fs__dag_copy, svn_fs__dag_copied_from, svn_fs__dag_commit_txn,
   svn_fs__deltify): Update calls to renamed functions.

* subversion/libsvn_fs/fs.c
* subversion/libsvn_fs/trail.c
  Update calls to renamed functions and macros.
  
* subversion/libsvn_fs/node-rev.c
  (svn_fs__create_node, svn_fs__create_successor,
   svn_fs__delete_node_revision): Update calls to renamed functions.

* subversion/libsvn_fs/reps-strings.c
  (delete_strings, get_one_window, rep_undeltify_range,
   rep_read_range, svn_fs__get_mutable_rep,
   svn_fs__delete_rep_if_mutable, svn_fs__rep_contents_size,
   rep_write, svn_fs__rep_contents_clear, write_string,
   write_svndiff_strings, svn_fs__rep_deltify, svn_fs__rep_undeltify):
    Update calls to renamed functions.
                              
* subversion/libsvn_fs/revs-txns.c
  (get_rev_txn, svn_fs__rev_get_txn_id, txn_body_youngest_rev,
   txn_body_youngest_rev, svn_fs__set_rev_prop): Update calls to
    renamed functions.

* subversion/libsvn_fs/tree.c
  (get_id_path, choose_copy_id, make_path_mutable, add_change,
   deltify_if_mutable_under_txn_id, update_ancestry, undelete_change,
   merge, txn_body_commit, txn_body_paths_changed): Update calls to
    renamed functions.

* subversion/libsvn_fs/deltify.c
  (svn_fs__deltify): Update calls to renamed functions.

* subversion/libsvn_fs/txn.c
  (txn_body_begin_txn, svn_fs__close_txn, txn_body_list_transactions): 
    Update calls to renamed functions.

* subversion/tests/libsvn_fs/changes-test.c
  (txn_body_changes_add, txn_body_changes_fetch_raw,
   txn_body_changes_fetch, txn_body_changes_delete): Update calls to
    renamed functions.

* subversion/tests/libsvn_fs/fs-test.c
  (txn_body_check_id): Update calls to renamed functions.

* subversion/tests/libsvn_fs/strings-reps-test.c
  (txn_body_write_new_rep, txn_body_write_rep, txn_body_read_rep,
   txn_body_delete_rep, verify_expected_record, txn_body_string_append,
   txn_body_string_clear, txn_body_string_delete, txn_body_string_size,
   txn_body_string_append_fail, txn_body_string_copy): Update calls to
    renamed functions.


r845302 | gthompson | 2003-03-06 23:20:19 +0000 (Thu, 06 Mar 2003)

* COMMITTERS: add myself to the Commit access for specific areas section

r845304 | gthompson | 2003-03-06 23:42:20 +0000 (Thu, 06 Mar 2003)

* COMMITTERS: gthompson entry was made shorter.

r845347 | gthompson | 2003-03-11 07:14:06 +0000 (Tue, 11 Mar 2003)

This patch fixes some problems with the second in a series of fs-refactoring patches now called pluggable-db.  The concerns driving this patch can be found in the following thread: http://subversion.tigris.org/servlets/BrowseList?list=dev&by=thread&from=86869

NOTE: The next installment of the pluggable-db (db_cntxt) is being delayed until      some design documentation is updated.  The old documents are being 
      reformatted and will be placed in the notes directory of this branch.  
      This will make it easier to follow any design changes that occur going
      forward.

* subversion/libsvn_fs/bdb/txn-table.c
  Removed include of bdb-fs.h.
  
* subversion/libsvn_fs/bdb/reps-table.c
  Removed include of bdb-fs.h.

* subversion/libsvn_fs/bdb/nodes-table.c
  Removed include of bdb-fs.h.

* subversion/libsvn_fs/bdb/copies-table.c
  Removed include of bdb-fs.h.

* subversion/libsvn_fs/bdb/uuids-table.c
  Removed include of bdb-fs.h.

* subversion/libsvn_fs/bdb/strings-table.c
  Removed include of bdb-fs.h.

* subversion/libsvn_fs/bdb/changes-table.c
  Removed include of bdb-fs.h.

* subversion/libsvn_fs/bdb/nodes-table.h
    (svn_fs__bdb_open_nodes_table) declaration was put back.

* subversion/libsvn_fs/bdb/changes-table.h
    (svn_fs__bdb_open_changes_table) declaration was put back.

* subversion/libsvn_fs/bdb/reps-table.h
    (svn_fs__bdb_open_reps_table) declaration was put back.

* subversion/libsvn_fs/bdb/txn-table.h
    (svn_fs__bdb_open_transactions_table) declaration was put back.

* subversion/libsvn_fs/bdb/copies-table.h
    (svn_fs__bdb_open_copies_table) declaration was put back.

* subversion/libsvn_fs/bdb/uuids-table.h
    (svn_fs__bdb_open_uuids_table) declaration was put back.

* subversion/libsvn_fs/bdb/strings-table.h
    (svn_fs__bdb_open_strings_table) declaration was put back.

* subversion/libsvn_fs/bdb/rev-table.h
    (svn_fs__bdb_open_revisions_table) declaration was put back.

* subversion/libsvn_fs/bdb/bdb-fs.h
  Renamed temporary public declarations to follow svn namespace standards:
    (svn_fs__bdb_cleanup_fs_apr) was (bdb_cleanup_fs_apr.
    (svn_fs__bdb_create_fs) was (bdb_create_fs).
    (svn_fs__bdb_open_fs) was (bdb_open_fs).
    (svn_fs__bdb_recover_fs) was (bdb_recover_fs).
    (svn_fs__bdb_delete_fs) was (bdb_delete_fs).
    (svn_fs__bdb_set_berkeley_errcall) was (bdb_set_berkeley_errcall).
  Removed the following declarations for table open functions:
    (svn_fs__bdb_open_changes_table)
    (svn_fs__bdb_open_copies_table)
    (svn_fs__bdb_open_nodes_table)
    (svn_fs__bdb_open_reps_table)
    (svn_fs__bdb_open_revisions_table)
    (svn_fs__bdb_open_strings_table)
    (svn_fs__bdb_open_transactions_table)
    (svn_fs__bdb_open_uuids_table)

* subversion/libsvn_fs/bdb/bdb-fs.c
  Renamed function names to follow svn namespace standards:
    (svn_fs__bdb_cleanup_fs_apr) was (bdb_cleanup_fs_apr.
    (svn_fs__bdb_create_fs) was (bdb_create_fs).
    (svn_fs__bdb_open_fs) was (bdb_open_fs).
    (svn_fs__bdb_recover_fs) was (bdb_recover_fs).
    (svn_fs__bdb_delete_fs) was (bdb_delete_fs).
    (svn_fs__bdb_set_berkeley_errcall) was (bdb_set_berkeley_errcall).
  Replaced svn_utf_cstring_from_utf8 with svn_path_cstring_from_utf8 
    to restore a change that was undone. (svn_fs__bdb_create_fs)
  Removed a cast that was removed in an earlier patch. 
    (svn_fs__bdb_cleanup_fs_apr)
  Fixed a couple formatting issues introduced by the 5212.

* subversion/libsvn_fs/fs.c
    Call renamed functions in bdb-fs.c by name until vtable installed:
    (svn_fs__bdb_cleanup_fs_apr) was (bdb_cleanup_fs_apr.
    (svn_fs__bdb_create_fs) was (bdb_create_fs).
    (svn_fs__bdb_open_fs) was (bdb_open_fs).
    (svn_fs__bdb_recover_fs) was (bdb_recover_fs).
    (svn_fs__bdb_delete_fs) was (bdb_delete_fs).
    (svn_fs__bdb_set_berkeley_errcall) was (bdb_set_berkeley_errcall).


r845407 | gthompson | 2003-03-14 17:19:13 +0000 (Fri, 14 Mar 2003)

This patch provides baseline documentation for the work to be done on the 
pluggable-db branch.  It is merely a slight reformatting of the documentation
presented during the original "gat fs-refactor" effort at:
http://www.cdrguys.com/subversion/index.html

NOTE: The next installment of the pluggable-db (db_cntxt) is being delayed 
      while this design documentation is being updated.
      The baseline documentation should make it easier to identify any design 
      changes that occur going forward.

* notes/pluggable-db/curFSSmplViewImg.jpg (New)
  A simplified view of current FS layers.
  
* notes/pluggable-db/finalFSSmplViewImg.jpg (New)
  A simplified view of proposed FS layers.

* notes/pluggable-db/pluggable-db.html (New)
  A brief description of work previously done off-line.


r845421 | gthompson | 2003-03-14 21:07:08 +0000 (Fri, 14 Mar 2003)

Set svn:mime-type.

* notes/pluggable-db/curFSSmplViewImg.jpg Set to image/jpg.
  
* notes/pluggable-db/finalFSSmplViewImg.jpg  Set to image/jpg.

* notes/pluggable-db/pluggable-db.html Set to text/html.