Fossil SCM

Prevent incorrect attachment links from appearing on the timeline. Reported via the mailing list.

mistachkin 2013-10-27 01:18 trunk
Commit 359399307eec47efd02a7086e66111ca8d6ddb63
1 file changed +2 -2
+2 -2
--- src/manifest.c
+++ src/manifest.c
@@ -1899,11 +1899,11 @@
18991899
|| !validate16(p->zAttachTarget, UUID_SIZE)
19001900
){
19011901
char *zComment;
19021902
if( p->zAttachSrc && p->zAttachSrc[0] ){
19031903
zComment = mprintf(
1904
- "Add attachment [%R/artifact/%S|%h] to wiki page [%h]",
1904
+ "Add attachment [/artifact/%S|%h] to wiki page [%h]",
19051905
p->zAttachSrc, p->zAttachName, p->zAttachTarget);
19061906
}else{
19071907
zComment = mprintf("Delete attachment \"%h\" from wiki page [%h]",
19081908
p->zAttachName, p->zAttachTarget);
19091909
}
@@ -1915,11 +1915,11 @@
19151915
free(zComment);
19161916
}else{
19171917
char *zComment;
19181918
if( p->zAttachSrc && p->zAttachSrc[0] ){
19191919
zComment = mprintf(
1920
- "Add attachment [%R/artifact/%S|%h] to ticket [%S]",
1920
+ "Add attachment [/artifact/%S|%h] to ticket [%S]",
19211921
p->zAttachSrc, p->zAttachName, p->zAttachTarget);
19221922
}else{
19231923
zComment = mprintf("Delete attachment \"%h\" from ticket [%.10s]",
19241924
p->zAttachName, p->zAttachTarget);
19251925
}
19261926
--- src/manifest.c
+++ src/manifest.c
@@ -1899,11 +1899,11 @@
1899 || !validate16(p->zAttachTarget, UUID_SIZE)
1900 ){
1901 char *zComment;
1902 if( p->zAttachSrc && p->zAttachSrc[0] ){
1903 zComment = mprintf(
1904 "Add attachment [%R/artifact/%S|%h] to wiki page [%h]",
1905 p->zAttachSrc, p->zAttachName, p->zAttachTarget);
1906 }else{
1907 zComment = mprintf("Delete attachment \"%h\" from wiki page [%h]",
1908 p->zAttachName, p->zAttachTarget);
1909 }
@@ -1915,11 +1915,11 @@
1915 free(zComment);
1916 }else{
1917 char *zComment;
1918 if( p->zAttachSrc && p->zAttachSrc[0] ){
1919 zComment = mprintf(
1920 "Add attachment [%R/artifact/%S|%h] to ticket [%S]",
1921 p->zAttachSrc, p->zAttachName, p->zAttachTarget);
1922 }else{
1923 zComment = mprintf("Delete attachment \"%h\" from ticket [%.10s]",
1924 p->zAttachName, p->zAttachTarget);
1925 }
1926
--- src/manifest.c
+++ src/manifest.c
@@ -1899,11 +1899,11 @@
1899 || !validate16(p->zAttachTarget, UUID_SIZE)
1900 ){
1901 char *zComment;
1902 if( p->zAttachSrc && p->zAttachSrc[0] ){
1903 zComment = mprintf(
1904 "Add attachment [/artifact/%S|%h] to wiki page [%h]",
1905 p->zAttachSrc, p->zAttachName, p->zAttachTarget);
1906 }else{
1907 zComment = mprintf("Delete attachment \"%h\" from wiki page [%h]",
1908 p->zAttachName, p->zAttachTarget);
1909 }
@@ -1915,11 +1915,11 @@
1915 free(zComment);
1916 }else{
1917 char *zComment;
1918 if( p->zAttachSrc && p->zAttachSrc[0] ){
1919 zComment = mprintf(
1920 "Add attachment [/artifact/%S|%h] to ticket [%S]",
1921 p->zAttachSrc, p->zAttachName, p->zAttachTarget);
1922 }else{
1923 zComment = mprintf("Delete attachment \"%h\" from ticket [%.10s]",
1924 p->zAttachName, p->zAttachTarget);
1925 }
1926

Keyboard Shortcuts

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