Fossil SCM

merged from trunk

Ratte 2010-10-04 11:48 wolfgangFormat2CSS_2 merge
Commit fafcb6c780557d8584499b9cb163a3d7a1357356
+1 -1
--- src/checkout.c
+++ src/checkout.c
@@ -238,11 +238,11 @@
238238
vfile_aggregate_checksum_manifest(vid, &cksum1, &cksum1b);
239239
vfile_aggregate_checksum_disk(vid, &cksum2);
240240
if( blob_compare(&cksum1, &cksum2) ){
241241
printf("WARNING: manifest checksum does not agree with disk\n");
242242
}
243
- if( blob_compare(&cksum1, &cksum1b) ){
243
+ if( blob_size(&cksum1b) && blob_compare(&cksum1, &cksum1b) ){
244244
printf("WARNING: manifest checksum does not agree with manifest\n");
245245
}
246246
}
247247
db_end_transaction(0);
248248
}
249249
--- src/checkout.c
+++ src/checkout.c
@@ -238,11 +238,11 @@
238 vfile_aggregate_checksum_manifest(vid, &cksum1, &cksum1b);
239 vfile_aggregate_checksum_disk(vid, &cksum2);
240 if( blob_compare(&cksum1, &cksum2) ){
241 printf("WARNING: manifest checksum does not agree with disk\n");
242 }
243 if( blob_compare(&cksum1, &cksum1b) ){
244 printf("WARNING: manifest checksum does not agree with manifest\n");
245 }
246 }
247 db_end_transaction(0);
248 }
249
--- src/checkout.c
+++ src/checkout.c
@@ -238,11 +238,11 @@
238 vfile_aggregate_checksum_manifest(vid, &cksum1, &cksum1b);
239 vfile_aggregate_checksum_disk(vid, &cksum2);
240 if( blob_compare(&cksum1, &cksum2) ){
241 printf("WARNING: manifest checksum does not agree with disk\n");
242 }
243 if( blob_size(&cksum1b) && blob_compare(&cksum1, &cksum1b) ){
244 printf("WARNING: manifest checksum does not agree with manifest\n");
245 }
246 }
247 db_end_transaction(0);
248 }
249
+2 -2
--- src/manifest.c
+++ src/manifest.c
@@ -405,12 +405,12 @@
405405
}
406406
407407
/*
408408
** R <md5sum>
409409
**
410
- ** Specify the MD5 checksum of the entire baseline in a
411
- ** manifest.
410
+ ** Specify the MD5 checksum over the name and content of all files
411
+ ** in the manifest.
412412
*/
413413
case 'R': {
414414
md5sum_step_text(blob_buffer(&line), blob_size(&line));
415415
if( p->zRepoCksum!=0 ) goto manifest_syntax_error;
416416
if( blob_token(&line, &a1)==0 ) goto manifest_syntax_error;
417417
--- src/manifest.c
+++ src/manifest.c
@@ -405,12 +405,12 @@
405 }
406
407 /*
408 ** R <md5sum>
409 **
410 ** Specify the MD5 checksum of the entire baseline in a
411 ** manifest.
412 */
413 case 'R': {
414 md5sum_step_text(blob_buffer(&line), blob_size(&line));
415 if( p->zRepoCksum!=0 ) goto manifest_syntax_error;
416 if( blob_token(&line, &a1)==0 ) goto manifest_syntax_error;
417
--- src/manifest.c
+++ src/manifest.c
@@ -405,12 +405,12 @@
405 }
406
407 /*
408 ** R <md5sum>
409 **
410 ** Specify the MD5 checksum over the name and content of all files
411 ** in the manifest.
412 */
413 case 'R': {
414 md5sum_step_text(blob_buffer(&line), blob_size(&line));
415 if( p->zRepoCksum!=0 ) goto manifest_syntax_error;
416 if( blob_token(&line, &a1)==0 ) goto manifest_syntax_error;
417
+5 -1
--- src/vfile.c
+++ src/vfile.c
@@ -462,11 +462,15 @@
462462
md5sum_step_text(zBuf, -1);
463463
md5sum_step_blob(&file);
464464
blob_reset(&file);
465465
}
466466
if( pManOut ){
467
- blob_append(pManOut, m.zRepoCksum, -1);
467
+ if( m.zRepoCksum ){
468
+ blob_append(pManOut, m.zRepoCksum, -1);
469
+ }else{
470
+ blob_zero(pManOut);
471
+ }
468472
}
469473
manifest_clear(&m);
470474
md5sum_finish(pOut);
471475
}
472476
473477
--- src/vfile.c
+++ src/vfile.c
@@ -462,11 +462,15 @@
462 md5sum_step_text(zBuf, -1);
463 md5sum_step_blob(&file);
464 blob_reset(&file);
465 }
466 if( pManOut ){
467 blob_append(pManOut, m.zRepoCksum, -1);
 
 
 
 
468 }
469 manifest_clear(&m);
470 md5sum_finish(pOut);
471 }
472
473
--- src/vfile.c
+++ src/vfile.c
@@ -462,11 +462,15 @@
462 md5sum_step_text(zBuf, -1);
463 md5sum_step_blob(&file);
464 blob_reset(&file);
465 }
466 if( pManOut ){
467 if( m.zRepoCksum ){
468 blob_append(pManOut, m.zRepoCksum, -1);
469 }else{
470 blob_zero(pManOut);
471 }
472 }
473 manifest_clear(&m);
474 md5sum_finish(pOut);
475 }
476
477

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button