Checkout
Julian Foad
committed
on 21 Oct 15
On the 'move-tracking-2' branch: Virtualize access to private data in the
branch txn object.

* subversion/include/private/svn_branch.h
(s… Show more
On the 'move-tracking-2' branch: Virtualize access to private data in the

branch txn object.

* subversion/include/private/svn_branch.h

 (svn_branch_txn_get_branches): Constify the txn pointer.

 (svn_branch_txn_add_branch): New.

* subversion/libsvn_delta/branch.c

 (branch_txn_get_branches,

  branch_txn_add_branch,

  branch_txn_add_new_branch,

  branch_txn_delete_branch,

  svn_branch_txn_get_branches,

  svn_branch_txn_add_branch,

  svn_branch_txn_add_new_branch,

  svn_branch_txn_delete_branch,

  branch_txn_create): Virtualize these four accessors for private data (the

   'branches' array).

 (svn_branch_txn_finalize_eids,

  svn_branch_txn_get_branch_by_id,

  svn_branch_txn_parse,

  svn_branch_state_serialize): Make these 'public' functions use the

   virtual accessors.

* subversion/libsvn_delta/branch_nested.c

 (nested_branch_txn_get_branches,

  nested_branch_txn_add_branch,

  nested_branch_txn_add_new_branch,

  nested_branch_txn_delete_branch,

  svn_nested_branch_txn_create):

   Add forwarding implementations for the new virtual methods.

* subversion/libsvn_delta/branch_private.h

 (branch_txn_v_get_branches_t,

  branch_txn_v_add_branch_t,

  branch_txn_v_add_new_branch_t,

  branch_txn_v_delete_branch_t,

  svn_branch_txn_vtable_t):

   Declare the new virtual methods.

Show less