dav/sync.c

changeset 556
1a58014260e0
parent 554
ebac6e1ac190
child 557
90ad7324bbbc
equal deleted inserted replaced
555:c9ada14ee90e 556:1a58014260e0
1452 ucx_mempool_reg_destr(sn->mp, db, (ucx_destructor)destroy_db); 1452 ucx_mempool_reg_destr(sn->mp, db, (ucx_destructor)destroy_db);
1453 if (cmd_getoption(a, "verbose")) { 1453 if (cmd_getoption(a, "verbose")) {
1454 curl_easy_setopt(sn->handle, CURLOPT_VERBOSE, 1L); 1454 curl_easy_setopt(sn->handle, CURLOPT_VERBOSE, 1L);
1455 curl_easy_setopt(sn->handle, CURLOPT_STDERR, stderr); 1455 curl_easy_setopt(sn->handle, CURLOPT_STDERR, stderr);
1456 } 1456 }
1457 if(dir->hashing) {
1458 sn->flags |= DAV_SESSION_STORE_HASH;
1459 }
1457 1460
1458 DavBool restore_removed = cmd_getoption(a, "restore-removed") ? 1 : 0; 1461 DavBool restore_removed = cmd_getoption(a, "restore-removed") ? 1 : 0;
1459 DavBool restore_modified = cmd_getoption(a, "restore-modified") ? 1 : 0; 1462 DavBool restore_modified = cmd_getoption(a, "restore-modified") ? 1 : 0;
1460 DavBool restore = restore_removed || restore_modified; 1463 DavBool restore = restore_removed || restore_modified;
1461 int depth = restore ? -1 : 0; 1464 int depth = restore ? -1 : 0;

mercurial