You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/07/17 14:39:49 UTC

svn commit: r1504100 [1/5] - in /subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs: dag.c fs.c fs_fs.c fs_fs.h pack.c transaction.c transaction.h tree.c

Author: stefan2
Date: Wed Jul 17 12:39:48 2013
New Revision: 1504100

URL: http://svn.apache.org/r1504100
Log:
On the fsfs-improvements branch:  Last step in the fs_fs.* split up.
Move transaction code to the new transaction.* pair.  Although this
is a large patch, this time it is actually just moving code around
and adding a few #includes.

* subversion/libsvn_fs_fs/transaction.h
  (): new file
  (svn_fs_fs__put_node_revision,
   svn_fs_fs__txn_changes_fetch,
   svn_fs_fs__paths_changed,
   svn_fs_fs__create_txn,
   svn_fs_fs__change_txn_prop,
   svn_fs_fs__change_txn_props,
   svn_fs_fs__get_txn,
   svn_fs_fs__reserve_copy_id,
   svn_fs_fs__create_node,
   svn_fs_fs__purge_txn,
   svn_fs_fs__abort_txn,
   svn_fs_fs__set_entry,
   svn_fs_fs__add_change,
   svn_fs_fs__set_contents,
   svn_fs_fs__create_successor,
   svn_fs_fs__set_proplist,
   svn_fs_fs__commit,
   svn_fs_fs__list_transactions,
   svn_fs_fs__open_txn,
   svn_fs_fs__txn_proplist,
   svn_fs_fs__delete_node_revision,
   svn_fs_fs__get_txn_ids,
   svn_fs_fs__txn_prop,
   svn_fs_fs__begin_txn): moved over from fs_fs.h

* subversion/libsvn_fs_fs/transaction.c
  (): new file
  (txn_vtable): moved variable declaration here from fs_fs.c
  (unlock_proto_rev_baton,
   get_writable_proto_rev_baton,
   get_and_increment_txn_key_baton,
   rep_write_baton,
   write_hash_baton,
   commit_baton): moved structure declaration here from fs_fs.c
  (path_txn_sha1,
   path_txn_changes,
   path_txn_props,
   path_txn_proto_rev_lock,
   path_txn_next_ids,
   path_and_offset_of,
   get_shared_txn,
   free_shared_txn,
   with_txnlist_lock,
   unlock_proto_rev_body,
   unlock_proto_rev,
   unlock_proto_rev_list_locked,
   get_writable_proto_rev_body,
   get_writable_proto_rev,
   purge_shared_txn_body,
   purge_shared_txn,
   store_sha1_rep_mapping,
   unparse_dir_entry,
   unparse_dir_entries,
   fold_change,
   process_changes,
   create_new_txn_noderev_from_rev,
   get_and_increment_txn_key_body,
   create_txn_dir,
   create_txn_dir_pre_1_5,
   get_txn_proplist,
   write_next_ids,
   read_next_ids,
   get_new_txn_node_id,
   rep_write_contents,
   choose_delta_base,
   rep_write_cleanup,
   rep_write_get_baton,
   get_shared_rep,
   rep_write_contents_close,
   set_representation,
   get_next_revision_ids,
   write_hash_handler,
   write_hash_rep,
   write_hash_delta_rep,
   validate_root_noderev,
   write_final_rev,
   write_final_changed_path_info,
   verify_as_revision_before_current_plus_plus,
   write_final_current,
   verify_locks,
   commit_body,
   write_reps_to_cache): moved static functions here from fs_fs.c
  (svn_fs_fs__put_node_revision,
   svn_fs_fs__txn_changes_fetch,
   svn_fs_fs__paths_changed,
   svn_fs_fs__create_txn,
   svn_fs_fs__change_txn_prop,
   svn_fs_fs__change_txn_props,
   svn_fs_fs__get_txn,
   svn_fs_fs__reserve_copy_id,
   svn_fs_fs__create_node,
   svn_fs_fs__purge_txn,
   svn_fs_fs__abort_txn,
   svn_fs_fs__set_entry,
   svn_fs_fs__add_change,
   svn_fs_fs__set_contents,
   svn_fs_fs__create_successor,
   svn_fs_fs__set_proplist,
   svn_fs_fs__commit,
   svn_fs_fs__list_transactions,
   svn_fs_fs__open_txn,
   svn_fs_fs__txn_proplist,
   svn_fs_fs__delete_node_revision,
   svn_fs_fs__get_txn_ids,
   svn_fs_fs__txn_prop,
   svn_fs_fs__begin_txn): moved API implementation here from fs_fs.c

* subversion/libsvn_fs_fs/fs_fs.h
  (svn_fs_fs__put_node_revision,
   svn_fs_fs__txn_changes_fetch,
   svn_fs_fs__paths_changed,
   svn_fs_fs__create_txn,
   svn_fs_fs__change_txn_prop,
   svn_fs_fs__change_txn_props,
   svn_fs_fs__get_txn,
   svn_fs_fs__reserve_copy_id,
   svn_fs_fs__create_node,
   svn_fs_fs__purge_txn,
   svn_fs_fs__abort_txn,
   svn_fs_fs__set_entry,
   svn_fs_fs__add_change,
   svn_fs_fs__set_contents,
   svn_fs_fs__create_successor,
   svn_fs_fs__set_proplist,
   svn_fs_fs__commit,
   svn_fs_fs__list_transactions,
   svn_fs_fs__open_txn,
   svn_fs_fs__txn_proplist,
   svn_fs_fs__delete_node_revision,
   svn_fs_fs__get_txn_ids,
   svn_fs_fs__txn_prop,
   svn_fs_fs__begin_txn): moved to transaction.h

* subversion/libsvn_fs_fs/fs_fs.c
  (): #include the new header
  (txn_vtable,
   unlock_proto_rev_baton,
   get_writable_proto_rev_baton,
   get_and_increment_txn_key_baton,
   rep_write_baton,
   write_hash_baton,
   commit_baton,
   path_txn_sha1,
   path_txn_changes,
   path_txn_props,
   path_txn_proto_rev_lock,
   path_txn_next_ids,
   path_and_offset_of,
   get_shared_txn,
   free_shared_txn,
   with_txnlist_lock,
   unlock_proto_rev_body,
   unlock_proto_rev,
   unlock_proto_rev_list_locked,
   get_writable_proto_rev_body,
   get_writable_proto_rev,
   purge_shared_txn_body,
   purge_shared_txn,
   store_sha1_rep_mapping,
   unparse_dir_entry,
   unparse_dir_entries,
   fold_change,
   process_changes,
   create_new_txn_noderev_from_rev,
   get_and_increment_txn_key_body,
   create_txn_dir,
   create_txn_dir_pre_1_5,
   get_txn_proplist,
   write_next_ids,
   read_next_ids,
   get_new_txn_node_id,
   rep_write_contents,
   choose_delta_base,
   rep_write_cleanup,
   rep_write_get_baton,
   get_shared_rep,
   rep_write_contents_close,
   set_representation,
   get_next_revision_ids,
   write_hash_handler,
   write_hash_rep,
   write_hash_delta_rep,
   validate_root_noderev,
   write_final_rev,
   write_final_changed_path_info,
   verify_as_revision_before_current_plus_plus,
   write_final_current,
   verify_locks,
   commit_body,
   write_reps_to_cache,
   svn_fs_fs__put_node_revision,
   svn_fs_fs__txn_changes_fetch,
   svn_fs_fs__paths_changed,
   svn_fs_fs__create_txn,
   svn_fs_fs__change_txn_prop,
   svn_fs_fs__change_txn_props,
   svn_fs_fs__get_txn,
   svn_fs_fs__reserve_copy_id,
   svn_fs_fs__create_node,
   svn_fs_fs__purge_txn,
   svn_fs_fs__abort_txn,
   svn_fs_fs__set_entry,
   svn_fs_fs__add_change,
   svn_fs_fs__set_contents,
   svn_fs_fs__create_successor,
   svn_fs_fs__set_proplist,
   svn_fs_fs__commit,
   svn_fs_fs__list_transactions,
   svn_fs_fs__open_txn,
   svn_fs_fs__txn_proplist,
   svn_fs_fs__delete_node_revision,
   svn_fs_fs__get_txn_ids,
   svn_fs_fs__txn_prop,
   svn_fs_fs__begin_txn): moved to transaction.c

* subversion/libsvn_fs_fs/dag.c
  (): #include the new header

* subversion/libsvn_fs_fs/fs.c
  (): #include the new header

* subversion/libsvn_fs_fs/pack.c
  (): #include the new header

* subversion/libsvn_fs_fs/tree.c
  (): #include the new header

Added:
    subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/transaction.c
    subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/transaction.h
Modified:
    subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/dag.c
    subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/fs.c
    subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/fs_fs.c
    subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/fs_fs.h
    subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/pack.c
    subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/tree.c

Modified: subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/dag.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/dag.c?rev=1504100&r1=1504099&r2=1504100&view=diff
==============================================================================
--- subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/dag.c (original)
+++ subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/dag.c Wed Jul 17 12:39:48 2013
@@ -34,6 +34,7 @@
 #include "key-gen.h"
 #include "fs_fs.h"
 #include "id.h"
+#include "transaction.h"
 
 #include "../libsvn_fs/fs-loader.h"
 

Modified: subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/fs.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/fs.c?rev=1504100&r1=1504099&r2=1504100&view=diff
==============================================================================
--- subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/fs.c (original)
+++ subversion/branches/fsfs-improvements/subversion/libsvn_fs_fs/fs.c Wed Jul 17 12:39:48 2013
@@ -43,6 +43,7 @@
 #include "recovery.h"
 #include "rep-cache.h"
 #include "revprops.h"
+#include "transaction.h"
 #include "verify.h"
 #include "svn_private_config.h"
 #include "private/svn_fs_util.h"