Fossil SCM

If caller doesn't provide a UUID, leave it out of the message.

andybradford 2015-08-06 05:14 UTC check-in-edit
Commit fbf3a5dd87d55c276214e9f1ab7303965b216c10
1 file changed +3 -1
+3 -1
--- src/info.c
+++ src/info.c
@@ -2740,11 +2740,13 @@
27402740
}
27412741
#else
27422742
blob_init(&prompt, zInit, -1);
27432743
#endif
27442744
blob_append(&prompt, "\n# Enter a new comment for check-in ", -1);
2745
- blob_append(&prompt, zUuid, -1);
2745
+ if( zUuid && zUuid[0] ){
2746
+ blob_append(&prompt, zUuid, -1);
2747
+ }
27462748
blob_append(&prompt, ".\n# Lines beginning with a # are ignored.\n", -1);
27472749
prompt_for_user_comment(pComment, &prompt);
27482750
blob_reset(&prompt);
27492751
}
27502752
27512753
--- src/info.c
+++ src/info.c
@@ -2740,11 +2740,13 @@
2740 }
2741 #else
2742 blob_init(&prompt, zInit, -1);
2743 #endif
2744 blob_append(&prompt, "\n# Enter a new comment for check-in ", -1);
2745 blob_append(&prompt, zUuid, -1);
 
 
2746 blob_append(&prompt, ".\n# Lines beginning with a # are ignored.\n", -1);
2747 prompt_for_user_comment(pComment, &prompt);
2748 blob_reset(&prompt);
2749 }
2750
2751
--- src/info.c
+++ src/info.c
@@ -2740,11 +2740,13 @@
2740 }
2741 #else
2742 blob_init(&prompt, zInit, -1);
2743 #endif
2744 blob_append(&prompt, "\n# Enter a new comment for check-in ", -1);
2745 if( zUuid && zUuid[0] ){
2746 blob_append(&prompt, zUuid, -1);
2747 }
2748 blob_append(&prompt, ".\n# Lines beginning with a # are ignored.\n", -1);
2749 prompt_for_user_comment(pComment, &prompt);
2750 blob_reset(&prompt);
2751 }
2752
2753

Keyboard Shortcuts

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