Fossil SCM
Correct two timeline texts made by manifest_crosslink() for a deleted attachment. The one for a tech note put the file name where a hash belongs, inside link markup, and the one for a target that is not in the repository left its link without the closing bracket.
Commit
ad5033a1aa4c81813827331df44e4c5f27d6bdc94f1fb2a890f1ea7ceea4b1ca
Parent
43d645b446ef9a7…
1 file changed
+3
-4
+3
-4
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -2661,11 +2661,11 @@ | ||
| 2661 | 2661 | "Add attachment [/artifact/%!S|%h] to [/artifact/%!S|%h]", |
| 2662 | 2662 | p->zAttachSrc, p->zAttachName, |
| 2663 | 2663 | p->zAttachTarget, p->zAttachTarget); |
| 2664 | 2664 | }else{ |
| 2665 | 2665 | zComment = mprintf("Delete attachment \"%h\" from " |
| 2666 | - "[/artifact/%!S|%h", | |
| 2666 | + "[/artifact/%!S|%h]", | |
| 2667 | 2667 | p->zAttachName, p->zAttachTarget, |
| 2668 | 2668 | p->zAttachTarget); |
| 2669 | 2669 | } |
| 2670 | 2670 | break; |
| 2671 | 2671 | case CFTYPE_WIKI: |
| @@ -2687,14 +2687,13 @@ | ||
| 2687 | 2687 | "Add attachment [/artifact/%!S|%h] to tech note " |
| 2688 | 2688 | "[/technote/%!S|%S]", |
| 2689 | 2689 | p->zAttachSrc, p->zAttachName, p->zAttachTarget, p->zAttachTarget); |
| 2690 | 2690 | }else{ |
| 2691 | 2691 | zComment = mprintf( |
| 2692 | - "Delete attachment \"/artifact/%!S|%h\" from" | |
| 2692 | + "Delete attachment \"%h\" from" | |
| 2693 | 2693 | " tech note [/technote/%!S|%S]", |
| 2694 | - p->zAttachName, p->zAttachName, | |
| 2695 | - p->zAttachTarget,p->zAttachTarget); | |
| 2694 | + p->zAttachName, p->zAttachTarget, p->zAttachTarget); | |
| 2696 | 2695 | } |
| 2697 | 2696 | break; |
| 2698 | 2697 | case CFTYPE_TICKET: |
| 2699 | 2698 | attachToType = 't'; |
| 2700 | 2699 | if( isAdd ){ |
| 2701 | 2700 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -2661,11 +2661,11 @@ | |
| 2661 | "Add attachment [/artifact/%!S|%h] to [/artifact/%!S|%h]", |
| 2662 | p->zAttachSrc, p->zAttachName, |
| 2663 | p->zAttachTarget, p->zAttachTarget); |
| 2664 | }else{ |
| 2665 | zComment = mprintf("Delete attachment \"%h\" from " |
| 2666 | "[/artifact/%!S|%h", |
| 2667 | p->zAttachName, p->zAttachTarget, |
| 2668 | p->zAttachTarget); |
| 2669 | } |
| 2670 | break; |
| 2671 | case CFTYPE_WIKI: |
| @@ -2687,14 +2687,13 @@ | |
| 2687 | "Add attachment [/artifact/%!S|%h] to tech note " |
| 2688 | "[/technote/%!S|%S]", |
| 2689 | p->zAttachSrc, p->zAttachName, p->zAttachTarget, p->zAttachTarget); |
| 2690 | }else{ |
| 2691 | zComment = mprintf( |
| 2692 | "Delete attachment \"/artifact/%!S|%h\" from" |
| 2693 | " tech note [/technote/%!S|%S]", |
| 2694 | p->zAttachName, p->zAttachName, |
| 2695 | p->zAttachTarget,p->zAttachTarget); |
| 2696 | } |
| 2697 | break; |
| 2698 | case CFTYPE_TICKET: |
| 2699 | attachToType = 't'; |
| 2700 | if( isAdd ){ |
| 2701 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -2661,11 +2661,11 @@ | |
| 2661 | "Add attachment [/artifact/%!S|%h] to [/artifact/%!S|%h]", |
| 2662 | p->zAttachSrc, p->zAttachName, |
| 2663 | p->zAttachTarget, p->zAttachTarget); |
| 2664 | }else{ |
| 2665 | zComment = mprintf("Delete attachment \"%h\" from " |
| 2666 | "[/artifact/%!S|%h]", |
| 2667 | p->zAttachName, p->zAttachTarget, |
| 2668 | p->zAttachTarget); |
| 2669 | } |
| 2670 | break; |
| 2671 | case CFTYPE_WIKI: |
| @@ -2687,14 +2687,13 @@ | |
| 2687 | "Add attachment [/artifact/%!S|%h] to tech note " |
| 2688 | "[/technote/%!S|%S]", |
| 2689 | p->zAttachSrc, p->zAttachName, p->zAttachTarget, p->zAttachTarget); |
| 2690 | }else{ |
| 2691 | zComment = mprintf( |
| 2692 | "Delete attachment \"%h\" from" |
| 2693 | " tech note [/technote/%!S|%S]", |
| 2694 | p->zAttachName, p->zAttachTarget, p->zAttachTarget); |
| 2695 | } |
| 2696 | break; |
| 2697 | case CFTYPE_TICKET: |
| 2698 | attachToType = 't'; |
| 2699 | if( isAdd ){ |
| 2700 |