Fossil SCM
Improvements to some comments in vfile.c.
Commit
2f15cd805e037885140957e922d6e8421af24d5d
Parent
137d653a065d0d6…
1 file changed
+4
-2
+4
-2
| --- src/vfile.c | ||
| +++ src/vfile.c | ||
| @@ -372,11 +372,11 @@ | ||
| 372 | 372 | Blob file; |
| 373 | 373 | Stmt q; |
| 374 | 374 | char zBuf[100]; |
| 375 | 375 | |
| 376 | 376 | db_must_be_within_tree(); |
| 377 | - | |
| 377 | + | |
| 378 | 378 | db_prepare(&q, "SELECT pathname, rid FROM vfile" |
| 379 | 379 | " WHERE NOT deleted AND rid>0 AND vid=%d" |
| 380 | 380 | " ORDER BY pathname", |
| 381 | 381 | vid); |
| 382 | 382 | blob_zero(&file); |
| @@ -396,12 +396,14 @@ | ||
| 396 | 396 | } |
| 397 | 397 | |
| 398 | 398 | /* |
| 399 | 399 | ** Compute an aggregate MD5 checksum over the repository image of every |
| 400 | 400 | ** file in manifest vid. The file names are part of the checksum. |
| 401 | -** | |
| 402 | 401 | ** Return the resulting checksum in blob pOut. |
| 402 | +** | |
| 403 | +** If pManOut is not NULL then fill it with the checksum found in the | |
| 404 | +** "R" card near the end of the manifest. | |
| 403 | 405 | */ |
| 404 | 406 | void vfile_aggregate_checksum_manifest(int vid, Blob *pOut, Blob *pManOut){ |
| 405 | 407 | int i, fid; |
| 406 | 408 | Blob file, mfile; |
| 407 | 409 | Manifest m; |
| 408 | 410 |
| --- src/vfile.c | |
| +++ src/vfile.c | |
| @@ -372,11 +372,11 @@ | |
| 372 | Blob file; |
| 373 | Stmt q; |
| 374 | char zBuf[100]; |
| 375 | |
| 376 | db_must_be_within_tree(); |
| 377 | |
| 378 | db_prepare(&q, "SELECT pathname, rid FROM vfile" |
| 379 | " WHERE NOT deleted AND rid>0 AND vid=%d" |
| 380 | " ORDER BY pathname", |
| 381 | vid); |
| 382 | blob_zero(&file); |
| @@ -396,12 +396,14 @@ | |
| 396 | } |
| 397 | |
| 398 | /* |
| 399 | ** Compute an aggregate MD5 checksum over the repository image of every |
| 400 | ** file in manifest vid. The file names are part of the checksum. |
| 401 | ** |
| 402 | ** Return the resulting checksum in blob pOut. |
| 403 | */ |
| 404 | void vfile_aggregate_checksum_manifest(int vid, Blob *pOut, Blob *pManOut){ |
| 405 | int i, fid; |
| 406 | Blob file, mfile; |
| 407 | Manifest m; |
| 408 |
| --- src/vfile.c | |
| +++ src/vfile.c | |
| @@ -372,11 +372,11 @@ | |
| 372 | Blob file; |
| 373 | Stmt q; |
| 374 | char zBuf[100]; |
| 375 | |
| 376 | db_must_be_within_tree(); |
| 377 | |
| 378 | db_prepare(&q, "SELECT pathname, rid FROM vfile" |
| 379 | " WHERE NOT deleted AND rid>0 AND vid=%d" |
| 380 | " ORDER BY pathname", |
| 381 | vid); |
| 382 | blob_zero(&file); |
| @@ -396,12 +396,14 @@ | |
| 396 | } |
| 397 | |
| 398 | /* |
| 399 | ** Compute an aggregate MD5 checksum over the repository image of every |
| 400 | ** file in manifest vid. The file names are part of the checksum. |
| 401 | ** Return the resulting checksum in blob pOut. |
| 402 | ** |
| 403 | ** If pManOut is not NULL then fill it with the checksum found in the |
| 404 | ** "R" card near the end of the manifest. |
| 405 | */ |
| 406 | void vfile_aggregate_checksum_manifest(int vid, Blob *pOut, Blob *pManOut){ |
| 407 | int i, fid; |
| 408 | Blob file, mfile; |
| 409 | Manifest m; |
| 410 |