Following up on r1560690 (backported in 1.8.8 and 1.7.16), obtain the
copyfrom_id a bit earlier to not only record the copy with the right
information but also at the right op-depth.

This resolves an issue I just found myself while performing a URL WC copy
on a working copy that was relocated. Both 1.8.8 and trunk would show
all nodes (except the copy root) as incomplete because each descendant
would be stored at its own op-root.

* subversion/libsvn_wc/wc_db.c
  (get_info_for_copy): Calculate the right copyfrom_id here
  (db_op_copy): Instead of here... because this value is used in more
    places than just when inserting the node. Most importantly for
    op_depth_for_copy().

* subversion/tests/libsvn_wc/op-depth-test.c
  (repo_wc_copy): New test.
  (test_funcs): Add test.

* subversion/tests/libsvn_wc/utils.c
  (sbox_wc_copy_url,
   sbox_wc_relocate): New functions.

* subversion/tests/libsvn_wc/utils.h
  (sbox_wc_copy_url,
   sbox_wc_relocate): New functions.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1580626 13f79535-47bb-0310-9956-ffa450edef68