Fossil SCM
Fix a panic message in the historical_version_of_file() routine.
Commit
3b82ee5483bf8aaea4d3b94208c1a2bd07e126db
Parent
b9d46314214197b…
1 file changed
+3
+3
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -483,10 +483,13 @@ | ||
| 483 | 483 | manifest_destroy(pManifest); |
| 484 | 484 | if( errCode<=0 ){ |
| 485 | 485 | fossil_fatal("file %s does not exist in checkin: %s", file, revision); |
| 486 | 486 | } |
| 487 | 487 | }else if( errCode<=0 ){ |
| 488 | + if( revision==0 ){ | |
| 489 | + revision = db_text("current", "SELECT uuid FROM blob WHERE rid=%d", rid); | |
| 490 | + } | |
| 488 | 491 | fossil_panic("could not parse manifest for checkin: %s", revision); |
| 489 | 492 | } |
| 490 | 493 | return errCode; |
| 491 | 494 | } |
| 492 | 495 | |
| 493 | 496 |
| --- 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 |