Index: subversion/libsvn_wc/adm_ops.c =================================================================== --- subversion/libsvn_wc/adm_ops.c (revision 6604) +++ subversion/libsvn_wc/adm_ops.c (working copy) @@ -1015,6 +1015,27 @@ parent_access, pool)); } } + else + { + /* + * If it is a copied file, create a text base for it that is + * identical to the file contents. + * */ + const char * text_base_path; + apr_status_t status; + svn_node_kind_t existing_text_base_kind; + + text_base_path = svn_wc__text_base_path(path, FALSE, pool); + + /* First - check if it already exists - if so don't copy it */ + SVN_ERR (svn_io_check_path (text_base_path, + &existing_text_base_kind, pool)); + + if (existing_text_base_kind == svn_node_none) + { + SVN_ERR (svn_io_copy_file (path, text_base_path, FALSE, pool)); + } + } } else /* scheduling a directory for addition */ {