Detect a NEW in the other tree, generate conflict condition.

This commit is contained in:
Klaas Freitag 2013-11-08 10:08:49 +01:00
parent 40e2e5891f
commit 586cfa2aac

View File

@ -146,6 +146,9 @@ static int _csync_merge_algorithm_visitor(void *obj, void *data) {
other->destpath = c_strdup( cur->path );
csync_vio_set_file_id( other->file_id, cur->file_id );
cur->instruction = CSYNC_INSTRUCTION_NONE;
} else if (other->instruction == CSYNC_INSTRUCTION_NEW) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "OOOO=> NEW detected in other tree!");
cur->instruction = CSYNC_INSTRUCTION_CONFLICT;
} else {
cur->instruction = CSYNC_INSTRUCTION_NONE;
other->instruction = CSYNC_INSTRUCTION_SYNC;