Fossil SCM

Ignore columns of the TICKET and TICKETCHNG tables that contain spaces in their names. Such ticket fields could not be properly tracked by the earlier versions of Fossil because a ticket field name isn't fossilized when an artifact is constructed.

george 2022-05-28 14:38 trunk
Commit dbcb446970c3028c22384135b9984ff45ca028e8b495268ef35b89d495c7a99f
1 file changed +2
+2
--- src/tkt.c
+++ src/tkt.c
@@ -85,10 +85,11 @@
8585
haveTicket = 1;
8686
if( memcmp(zFieldName,"tkt_",4)==0 ){
8787
if( strcmp(zFieldName, "tkt_ctime")==0 ) haveTicketCTime = 1;
8888
continue;
8989
}
90
+ if( strchr(zFieldName,' ')!=0 ) continue;
9091
if( nField%10==0 ){
9192
aField = fossil_realloc(aField, sizeof(aField[0])*(nField+10) );
9293
}
9394
aField[nField].zName = mprintf("%s", zFieldName);
9495
aField[nField].mUsed = USEDBY_TICKET;
@@ -105,10 +106,11 @@
105106
}else if( strcmp(zFieldName+4,"user")==0 ){
106107
haveTicketChngUser = 1; /* tkt_user */
107108
}
108109
continue;
109110
}
111
+ if( strchr(zFieldName,' ')!=0 ) continue;
110112
if( (i = fieldId(zFieldName))>=0 ){
111113
aField[i].mUsed |= USEDBY_TICKETCHNG;
112114
continue;
113115
}
114116
if( nField%10==0 ){
115117
--- src/tkt.c
+++ src/tkt.c
@@ -85,10 +85,11 @@
85 haveTicket = 1;
86 if( memcmp(zFieldName,"tkt_",4)==0 ){
87 if( strcmp(zFieldName, "tkt_ctime")==0 ) haveTicketCTime = 1;
88 continue;
89 }
 
90 if( nField%10==0 ){
91 aField = fossil_realloc(aField, sizeof(aField[0])*(nField+10) );
92 }
93 aField[nField].zName = mprintf("%s", zFieldName);
94 aField[nField].mUsed = USEDBY_TICKET;
@@ -105,10 +106,11 @@
105 }else if( strcmp(zFieldName+4,"user")==0 ){
106 haveTicketChngUser = 1; /* tkt_user */
107 }
108 continue;
109 }
 
110 if( (i = fieldId(zFieldName))>=0 ){
111 aField[i].mUsed |= USEDBY_TICKETCHNG;
112 continue;
113 }
114 if( nField%10==0 ){
115
--- src/tkt.c
+++ src/tkt.c
@@ -85,10 +85,11 @@
85 haveTicket = 1;
86 if( memcmp(zFieldName,"tkt_",4)==0 ){
87 if( strcmp(zFieldName, "tkt_ctime")==0 ) haveTicketCTime = 1;
88 continue;
89 }
90 if( strchr(zFieldName,' ')!=0 ) continue;
91 if( nField%10==0 ){
92 aField = fossil_realloc(aField, sizeof(aField[0])*(nField+10) );
93 }
94 aField[nField].zName = mprintf("%s", zFieldName);
95 aField[nField].mUsed = USEDBY_TICKET;
@@ -105,10 +106,11 @@
106 }else if( strcmp(zFieldName+4,"user")==0 ){
107 haveTicketChngUser = 1; /* tkt_user */
108 }
109 continue;
110 }
111 if( strchr(zFieldName,' ')!=0 ) continue;
112 if( (i = fieldId(zFieldName))>=0 ){
113 aField[i].mUsed |= USEDBY_TICKETCHNG;
114 continue;
115 }
116 if( nField%10==0 ){
117

Keyboard Shortcuts

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