Merge the equivalent of the fix in r1580626 to this branch.

* 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().


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.7.x-r1580626@1580637 13f79535-47bb-0310-9956-ffa450edef68