Fossil SCM
Fix a bug in the error message when the --checkin argument of fossil diff has no parent.
Commit
38daa9aa75cf616688848035edb97c22110d964e
Parent
65724af1ce9ebe5…
1 file changed
+1
-1
+1
-1
| --- src/diffcmd.c | ||
| +++ src/diffcmd.c | ||
| @@ -900,11 +900,11 @@ | ||
| 900 | 900 | zFrom = db_text(0, |
| 901 | 901 | "SELECT uuid FROM blob, plink" |
| 902 | 902 | " WHERE plink.cid=%d AND plink.isprim AND plink.pid=blob.rid", |
| 903 | 903 | ridTo); |
| 904 | 904 | if( zFrom==0 ){ |
| 905 | - fossil_fatal("check-in %z has no parent", zTo); | |
| 905 | + fossil_fatal("check-in %s has no parent", zTo); | |
| 906 | 906 | } |
| 907 | 907 | } |
| 908 | 908 | if( againstUndo ){ |
| 909 | 909 | if( db_lget_int("undo_available",0)==0 ){ |
| 910 | 910 | fossil_print("No undo or redo is available\n"); |
| 911 | 911 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -900,11 +900,11 @@ | |
| 900 | zFrom = db_text(0, |
| 901 | "SELECT uuid FROM blob, plink" |
| 902 | " WHERE plink.cid=%d AND plink.isprim AND plink.pid=blob.rid", |
| 903 | ridTo); |
| 904 | if( zFrom==0 ){ |
| 905 | fossil_fatal("check-in %z has no parent", zTo); |
| 906 | } |
| 907 | } |
| 908 | if( againstUndo ){ |
| 909 | if( db_lget_int("undo_available",0)==0 ){ |
| 910 | fossil_print("No undo or redo is available\n"); |
| 911 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -900,11 +900,11 @@ | |
| 900 | zFrom = db_text(0, |
| 901 | "SELECT uuid FROM blob, plink" |
| 902 | " WHERE plink.cid=%d AND plink.isprim AND plink.pid=blob.rid", |
| 903 | ridTo); |
| 904 | if( zFrom==0 ){ |
| 905 | fossil_fatal("check-in %s has no parent", zTo); |
| 906 | } |
| 907 | } |
| 908 | if( againstUndo ){ |
| 909 | if( db_lget_int("undo_available",0)==0 ){ |
| 910 | fossil_print("No undo or redo is available\n"); |
| 911 |