Fossil SCM

Fix a panic message in the historical_version_of_file() routine.

drh 2011-02-18 22:25 trunk
Commit 3b82ee5483bf8aaea4d3b94208c1a2bd07e126db
1 file changed +3
--- src/update.c
+++ src/update.c
@@ -483,10 +483,13 @@
483483
manifest_destroy(pManifest);
484484
if( errCode<=0 ){
485485
fossil_fatal("file %s does not exist in checkin: %s", file, revision);
486486
}
487487
}else if( errCode<=0 ){
488
+ if( revision==0 ){
489
+ revision = db_text("current", "SELECT uuid FROM blob WHERE rid=%d", rid);
490
+ }
488491
fossil_panic("could not parse manifest for checkin: %s", revision);
489492
}
490493
return errCode;
491494
}
492495
493496
--- src/update.c
+++ src/update.c
@@ -483,10 +483,13 @@
483 manifest_destroy(pManifest);
484 if( errCode<=0 ){
485 fossil_fatal("file %s does not exist in checkin: %s", file, revision);
486 }
487 }else if( errCode<=0 ){
 
 
 
488 fossil_panic("could not parse manifest for checkin: %s", revision);
489 }
490 return errCode;
491 }
492
493
--- src/update.c
+++ src/update.c
@@ -483,10 +483,13 @@
483 manifest_destroy(pManifest);
484 if( errCode<=0 ){
485 fossil_fatal("file %s does not exist in checkin: %s", file, revision);
486 }
487 }else if( errCode<=0 ){
488 if( revision==0 ){
489 revision = db_text("current", "SELECT uuid FROM blob WHERE rid=%d", rid);
490 }
491 fossil_panic("could not parse manifest for checkin: %s", revision);
492 }
493 return errCode;
494 }
495
496

Keyboard Shortcuts

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