Fossil SCM

Fix a bug in the error message when the --checkin argument of fossil diff has no parent.

drh 2016-09-30 15:22 UTC diff-show-changes
Commit 38daa9aa75cf616688848035edb97c22110d964e
1 file changed +1 -1
+1 -1
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -900,11 +900,11 @@
900900
zFrom = db_text(0,
901901
"SELECT uuid FROM blob, plink"
902902
" WHERE plink.cid=%d AND plink.isprim AND plink.pid=blob.rid",
903903
ridTo);
904904
if( zFrom==0 ){
905
- fossil_fatal("check-in %z has no parent", zTo);
905
+ fossil_fatal("check-in %s has no parent", zTo);
906906
}
907907
}
908908
if( againstUndo ){
909909
if( db_lget_int("undo_available",0)==0 ){
910910
fossil_print("No undo or redo is available\n");
911911
--- 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

Keyboard Shortcuts

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