47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
if( sz!=UUID_SIZE || !validate16(zUuid, sz) ){
return 0;
}
strcpy(z, zUuid);
canonical16(z, sz);
rid = db_int(0, "SELECT rid FROM blob WHERE uuid=%Q", z);
if( rid==0 && phantomize ){
rid = content_put(0, zUuid);
}
return rid;
}
/*
** Build a catalog of all files in a baseline.
** We scan the baseline file for lines of the form:
|
|
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
if( sz!=UUID_SIZE || !validate16(zUuid, sz) ){
return 0;
}
strcpy(z, zUuid);
canonical16(z, sz);
rid = db_int(0, "SELECT rid FROM blob WHERE uuid=%Q", z);
if( rid==0 && phantomize ){
rid = content_put(0, zUuid, 0);
}
return rid;
}
/*
** Build a catalog of all files in a baseline.
** We scan the baseline file for lines of the form:
|