Fossil SCM
Replace the "<b>← This is me</b>" notation at the end of the check-in comment with a "自" (self) right before the "check-in:" detail.
Commit
80d2beabe571925687c405c75a45db40613c4a95d7c8fc8ba09652b26c52e7f5
Parent
8a7a38baf50ada7…
1 file changed
+7
-9
+7
-9
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -237,11 +237,17 @@ | ||
| 237 | 237 | #endif /* EXTRA_FORMAT==0 */ |
| 238 | 238 | #if EXTRA_FORMAT==1 |
| 239 | 239 | if( (tmFlags & TIMELINE_CLASSIC)==0 ){ |
| 240 | 240 | if( zType[0]=='c' ){ |
| 241 | 241 | 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 = "自 "; | |
| 248 | + }else if( tmFlags & TIMELINE_SIMPLE ){ | |
| 243 | 249 | zPrefix = ""; |
| 244 | 250 | }else{ |
| 245 | 251 | int isLeaf = db_column_int(pQuery, 5); |
| 246 | 252 | if( isLeaf ){ |
| 247 | 253 | zPrefix = has_closed_tag(rid) ? "closed " : "leaf "; |
| @@ -788,18 +794,10 @@ | ||
| 788 | 794 | }else{ |
| 789 | 795 | cgi_printf("%W",blob_str(&comment)); |
| 790 | 796 | } |
| 791 | 797 | } |
| 792 | 798 | |
| 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>← This is me!</b> | |
| 799 | - } | |
| 800 | - | |
| 801 | 799 | @ </span> |
| 802 | 800 | blob_reset(&comment); |
| 803 | 801 | |
| 804 | 802 | /* Generate extra information and hyperlinks that follow the comment. |
| 805 | 803 | ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)" |
| 806 | 804 |
| --- 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 " : "leaf "; |
| @@ -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>← 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 = "自 "; |
| 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 " : "leaf "; |
| @@ -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 |