Checkout
rhuijben
committed
on 18 Feb 15
Stop setting last-rev, last-date and last-author on foreign repos copies
and merges. Fix consistency between svn_wc__db_op_copy_XXX() method… Show more
Stop setting last-rev, last-date and last-author on foreign repos copies

and merges. Fix consistency between svn_wc__db_op_copy_XXX() methods.

This fixes a bug in our entries compatibility code, as that assumes that

there is a copy if there is a last-rev.

* subversion/libsvn_wc/adm_ops.c

 (svn_wc_add4): Update caller.

* subversion/libsvn_wc/update_editor.c

 (svn_wc__complete_directory_add): Update caller.

* subversion/libsvn_wc/wc_db.c

 (insert_working_node): Don't set pristine properties on local additions.

 (svn_wc__db_op_copy_dir): Move is_moved argument last. Don't set changed*

   and properties on local additions.

 (svn_wc__db_op_copy_file): Don't set changed* and properties on local

   additions.

 (svn_wc__db_op_copy_symlink): Calulate moved_to like the other operations.

   Don't set changed* and properties on local

   additions.

* subversion/tests/cmdline/copy_tests.py

 (repos_to_wc): Fix test expectation.

Show less