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.

dmestas 2026-11-16 07:46 UTC small-fixes-2
Commit ad5033a1aa4c81813827331df44e4c5f27d6bdc94f1fb2a890f1ea7ceea4b1ca
1 file changed +3 -4
+3 -4
--- src/manifest.c
+++ src/manifest.c
@@ -2661,11 +2661,11 @@
26612661
"Add attachment [/artifact/%!S|%h] to [/artifact/%!S|%h]",
26622662
p->zAttachSrc, p->zAttachName,
26632663
p->zAttachTarget, p->zAttachTarget);
26642664
}else{
26652665
zComment = mprintf("Delete attachment \"%h\" from "
2666
- "[/artifact/%!S|%h",
2666
+ "[/artifact/%!S|%h]",
26672667
p->zAttachName, p->zAttachTarget,
26682668
p->zAttachTarget);
26692669
}
26702670
break;
26712671
case CFTYPE_WIKI:
@@ -2687,14 +2687,13 @@
26872687
"Add attachment [/artifact/%!S|%h] to tech note "
26882688
"[/technote/%!S|%S]",
26892689
p->zAttachSrc, p->zAttachName, p->zAttachTarget, p->zAttachTarget);
26902690
}else{
26912691
zComment = mprintf(
2692
- "Delete attachment \"/artifact/%!S|%h\" from"
2692
+ "Delete attachment \"%h\" from"
26932693
" tech note [/technote/%!S|%S]",
2694
- p->zAttachName, p->zAttachName,
2695
- p->zAttachTarget,p->zAttachTarget);
2694
+ p->zAttachName, p->zAttachTarget, p->zAttachTarget);
26962695
}
26972696
break;
26982697
case CFTYPE_TICKET:
26992698
attachToType = 't';
27002699
if( isAdd ){
27012700
--- 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

Keyboard Shortcuts

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