764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
|
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
|
-
+
|
vid = db_lget_int("checkout", 0);
vfile_check_signature(vid, 0);
db_multi_exec(
"DELETE FROM vmerge;"
"INSERT OR IGNORE INTO torevert "
" SELECT pathname"
" FROM vfile "
" WHERE chnged OR deleted OR rid=0 OR pathname!=origname;"
" WHERE chnged OR deleted OR rid=0 OR pathname!=origname OR islink;"
);
}
db_multi_exec(
"INSERT OR IGNORE INTO torevert"
" SELECT origname"
" FROM vfile"
" WHERE origname!=pathname AND pathname IN (SELECT name FROM torevert);"
|
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
|
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
|
-
+
|
"DELETE FROM vfile WHERE pathname=%Q",
zFile, zFile
);
}else{
sqlite3_int64 mtime;
undo_save(zFile);
if( file_wd_size(zFull)>=0 && (isLink || file_wd_islink(zFull)) ){
file_delete(zFull);
link_delete(zFull);
}
if( isLink ){
symlink_create(blob_str(&record), zFull);
}else{
blob_write_to_file(&record, zFull);
}
file_wd_setexe(zFull, isExe);
|