Checkout
Julian Foad
committed
on 06 Sep 15
On the 'move-tracking-2' branch: Add an editor method 'open_branch'.

This gets rid of some direct access to the editor's txn.

* subversion… Show more
On the 'move-tracking-2' branch: Add an editor method 'open_branch'.

This gets rid of some direct access to the editor's txn.

* subversion/include/private/svn_branch.h,

 subversion/libsvn_delta/branch.c

 (svn_branch_id_split): Newly public; renamed from 'branch_id_split'.

 (svn_branch_state_parse): Track the rename.

* subversion/include/private/svn_editor3e.h

 (svn_editor3_open_branch,

  svn_editor3_cb_open_branch_t): New.

 (svn_editor3_cb_funcs_t): Add the new method.

* subversion/libsvn_delta/editor3e.c

 (svn_editor3_open_branch,

  wrap_open_branch,

  change_detection_open_branch): New.

 (svn_editor3__get_debug_editor,

  svn_editor3__change_detection_editor): Add the new method to the vtable.

* subversion/libsvn_delta/compat3e.c

 (editor3_open_branch): New.

 (svn_editor3_in_memory,

  svn_editor3__ev3_from_delta_for_commit): Add it to the vtable.

 (editor3_alter): Move the EID allocation hack to here...

* subversion/svnmover/svnmover.c

 (subtree_replay): ... from here. Take a branch id instead of a pointer.

 (svn_branch_replay): Use the new editor method. Use branch ids instead of

   pointers.

 (replay): Pass a branch id instead of a pointer.

 (mk_branch): Use the new editor method. Return a branch id instead of a

   pointer.

 (execute): Adjust the call to mk_branch.

Show less