Log Message: |
Instead of transforming nodes into an copy by changing their op-depth make
a proper copy, to allow the layer bump code to handle further edge cases
like things that are recorded while shadowing.
* subversion/libsvn_wc/wc-queries.sql
(STMT_UPDATE_OP_DEPTH_RECURSIVE): Remove query.
(STMT_COPY_OP_DEPTH_RECURSIVE): New query.
* subversion/libsvn_wc/wc_db.c
(make_copy_txn): Remove two unused arguments and their handling.
Move the flush, conflict and work item code to caller.
(svn_wc__db_op_make_copy_internal): New function, containing some
bits from make_copy_txn() and some from svn_wc__db_op_make_copy(),
running inside a transaction. Allow handling the other valid make-copy
case.
(svn_wc__db_op_make_copy): Call svn_wc__db_op_make_copy_internal to
do several queries inside a transaction.
* subversion/libsvn_wc/wc_db.h
(svn_wc__db_op_make_copy): Extend documentation.
* subversion/libsvn_wc/wc_db_private.h
(svn_wc__db_op_make_copy_internal): New function.
* subversion/libsvn_wc/wc_db_update_move.c
(tc_editor_delete): Use svn_wc__db_op_make_copy_internal() to make
the copy.
|