Author: rhuijben Date: Tue Feb 10 12:37:55 2015 New Revision: 1658699 URL: http://svn.apache.org/r1658699 Log: * subversion/tests/libsvn_wc/op-depth-test.c (move_in_delete): Extend test.
Modified: subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c Modified: subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c?rev=1658699&r1=1658698&r2=1658699&view=diff ============================================================================== --- subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c (original) +++ subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c Tue Feb 10 12:37:55 2015 @@ -6165,6 +6165,33 @@ move_in_delete(const svn_test_opts_t *op } SVN_ERR(sbox_wc_update(&b, "", 3)); + { + nodes_row_t nodes[] = { + {0, "", "normal", 3, ""}, + {0, "A", "normal", 3, "A"}, + {0, "A/B", "normal", 3, "A/B"}, + {0, "A/B/C", "normal", 3, "A/B/C"}, + {0, "A/B/C/D", "normal", 3, "A/B/C/D"}, + {0, "A/B/C/D/E", "normal", 3, "A/B/C/D/E"}, + + {1, "C2", "normal", 2, "A/B/C", MOVED_HERE}, + {1, "C2/D", "normal", 2, "A/B/C/D", MOVED_HERE}, + + {2, "A/B", "base-deleted", NO_COPY_FROM}, + {2, "A/B/C", "base-deleted", NO_COPY_FROM, "C2"}, + {2, "A/B/C/D", "base-deleted", NO_COPY_FROM}, + {2, "A/B/C/D/E", "base-deleted", NO_COPY_FROM}, + + {0} + }; + conflict_info_t conflicts[] = { + {"A/B", FALSE, FALSE, TRUE}, + {0} + }; + + SVN_ERR(check_db_rows(&b, "", nodes)); + SVN_ERR(check_db_conflicts(&b, "", conflicts)); + } SVN_ERR(sbox_wc_revert(&b, "A/B", svn_depth_empty)); { nodes_row_t nodes[] = { @@ -6181,7 +6208,13 @@ move_in_delete(const svn_test_opts_t *op {1, "C2/D", "normal", 2, "A/B/C/D", MOVED_HERE}, {0} }; + conflict_info_t conflicts[] = { + {"A/B/C", FALSE, FALSE, TRUE}, + {0} + }; SVN_ERR(check_db_rows(&b, "", nodes)); + /* Where did this conflict come from? */ + SVN_ERR(check_db_conflicts(&b, "", conflicts)); } /* Revert should have left a tree-conflict (or broken the move). */