Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Make phantom records a warning, not a fatal error, when trying to checkout or examine a check-in. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
f7cff4ad13d06ec008119347f65972b6 |
| User & Date: | drh 2011-01-07 17:17:06.614 |
| Original Comment: | Make phantom records are warning, not a fatal error, when trying to checkout or examine a check-in. |
References
|
2011-01-12
| ||
| 09:35 | • New ticket [bde9513fae] The delta manifest has more files than modified in the checkin. artifact: 29896288f6 user: anonymous | |
Context
|
2011-01-11
| ||
| 23:47 | For the "import --git" command, if a new commit omits the "from" field, then make it a child of the previous commit if the two are on the same branch. check-in: 25201dd86f user: drh tags: trunk | |
|
2011-01-07
| ||
| 17:17 | Make phantom records a warning, not a fatal error, when trying to checkout or examine a check-in. check-in: f7cff4ad13 user: drh tags: trunk | |
| 17:08 | Do not complain about unfinalized SQL statements when exiting on a fatal error. Fix comments and indentation on the vfile_verify_not_phantom() function. check-in: c2f5dbe655 user: drh tags: trunk | |
Changes
Changes to src/vfile.c.
| ︙ | ︙ | |||
68 69 70 71 72 73 74 |
rid = fast_uuid_to_rid(z);
if( rid==0 && phantomize ){
rid = content_new(zUuid);
}
return rid;
}
| < < < < < < < < < < < < < < < < < < < < < < < < < < | > | > > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
rid = fast_uuid_to_rid(z);
if( rid==0 && phantomize ){
rid = content_new(zUuid);
}
return rid;
}
/*
** Build a catalog of all files in a checkin.
*/
void vfile_build(int vid){
int rid;
Stmt ins;
Manifest *p;
ManifestFile *pFile;
db_begin_transaction();
p = manifest_get(vid, CFTYPE_MANIFEST);
if( p==0 ) return;
db_multi_exec("DELETE FROM vfile WHERE vid=%d", vid);
db_prepare(&ins,
"INSERT INTO vfile(vid,rid,mrid,pathname) "
" VALUES(:vid,:id,:id,:name)");
db_bind_int(&ins, ":vid", vid);
manifest_file_rewind(p);
while( (pFile = manifest_file_next(p,0))!=0 ){
if( pFile->zUuid==0 || uuid_is_shunned(pFile->zUuid) ) continue;
rid = uuid_to_rid(pFile->zUuid, 0);
if( rid==0 || db_int(-1, "SELECT size FROM blob WHERE rid=%d", rid)<0 ){
fossil_warning("content missing for %s", pFile->zName);
continue;
}
db_bind_int(&ins, ":id", rid);
db_bind_text(&ins, ":name", pFile->zName);
db_step(&ins);
db_reset(&ins);
}
db_finalize(&ins);
manifest_destroy(p);
|
| ︙ | ︙ |