Fossil SCM

Replace the "<b>&larr; This is me</b>" notation at the end of the check-in comment with a "自" (self) right before the "check-in:" detail.

drh 2025-10-19 00:13 timeline-enhance-2025
Commit 80d2beabe571925687c405c75a45db40613c4a95d7c8fc8ba09652b26c52e7f5
1 file changed +7 -9
+7 -9
--- src/timeline.c
+++ src/timeline.c
@@ -237,11 +237,17 @@
237237
#endif /* EXTRA_FORMAT==0 */
238238
#if EXTRA_FORMAT==1
239239
if( (tmFlags & TIMELINE_CLASSIC)==0 ){
240240
if( zType[0]=='c' ){
241241
const char *zPrefix;
242
- if( tmFlags & TIMELINE_SIMPLE ){
242
+ if( strcmp(zUuid, MANIFEST_UUID)==0 ){
243
+ /* This will only ever happen when Fossil is drawing a timeline for
244
+ ** its own self-host repository. If the timeline shows the specific
245
+ ** check-in corresponding to the current executable, then tag that
246
+ ** check-in with "自" (Simplified Chinese for "self"). */
247
+ zPrefix = "自&nbsp;";
248
+ }else if( tmFlags & TIMELINE_SIMPLE ){
243249
zPrefix = "";
244250
}else{
245251
int isLeaf = db_column_int(pQuery, 5);
246252
if( isLeaf ){
247253
zPrefix = has_closed_tag(rid) ? "closed&nbsp;" : "leaf&nbsp;";
@@ -788,18 +794,10 @@
788794
}else{
789795
cgi_printf("%W",blob_str(&comment));
790796
}
791797
}
792798
793
- if( zType[0]=='c' && strcmp(zUuid, MANIFEST_UUID)==0 ){
794
- /* This will only ever happen when Fossil is drawing a timeline for
795
- ** its own self-host repository. If the timeline shows the specific
796
- ** check-in corresponding to the current executable, then tag that
797
- ** check-in with "This is me!". */
798
- @ <b>&larr; This is me!</b>
799
- }
800
-
801799
@ </span>
802800
blob_reset(&comment);
803801
804802
/* Generate extra information and hyperlinks that follow the comment.
805803
** Example: "(check-in: [abcdefg], user: drh, tags: trunk)"
806804
--- src/timeline.c
+++ src/timeline.c
@@ -237,11 +237,17 @@
237 #endif /* EXTRA_FORMAT==0 */
238 #if EXTRA_FORMAT==1
239 if( (tmFlags & TIMELINE_CLASSIC)==0 ){
240 if( zType[0]=='c' ){
241 const char *zPrefix;
242 if( tmFlags & TIMELINE_SIMPLE ){
 
 
 
 
 
 
243 zPrefix = "";
244 }else{
245 int isLeaf = db_column_int(pQuery, 5);
246 if( isLeaf ){
247 zPrefix = has_closed_tag(rid) ? "closed&nbsp;" : "leaf&nbsp;";
@@ -788,18 +794,10 @@
788 }else{
789 cgi_printf("%W",blob_str(&comment));
790 }
791 }
792
793 if( zType[0]=='c' && strcmp(zUuid, MANIFEST_UUID)==0 ){
794 /* This will only ever happen when Fossil is drawing a timeline for
795 ** its own self-host repository. If the timeline shows the specific
796 ** check-in corresponding to the current executable, then tag that
797 ** check-in with "This is me!". */
798 @ <b>&larr; This is me!</b>
799 }
800
801 @ </span>
802 blob_reset(&comment);
803
804 /* Generate extra information and hyperlinks that follow the comment.
805 ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)"
806
--- src/timeline.c
+++ src/timeline.c
@@ -237,11 +237,17 @@
237 #endif /* EXTRA_FORMAT==0 */
238 #if EXTRA_FORMAT==1
239 if( (tmFlags & TIMELINE_CLASSIC)==0 ){
240 if( zType[0]=='c' ){
241 const char *zPrefix;
242 if( strcmp(zUuid, MANIFEST_UUID)==0 ){
243 /* This will only ever happen when Fossil is drawing a timeline for
244 ** its own self-host repository. If the timeline shows the specific
245 ** check-in corresponding to the current executable, then tag that
246 ** check-in with "自" (Simplified Chinese for "self"). */
247 zPrefix = "自&nbsp;";
248 }else if( tmFlags & TIMELINE_SIMPLE ){
249 zPrefix = "";
250 }else{
251 int isLeaf = db_column_int(pQuery, 5);
252 if( isLeaf ){
253 zPrefix = has_closed_tag(rid) ? "closed&nbsp;" : "leaf&nbsp;";
@@ -788,18 +794,10 @@
794 }else{
795 cgi_printf("%W",blob_str(&comment));
796 }
797 }
798
 
 
 
 
 
 
 
 
799 @ </span>
800 blob_reset(&comment);
801
802 /* Generate extra information and hyperlinks that follow the comment.
803 ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)"
804

Keyboard Shortcuts

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