Fossil SCM
Rename artifact_to_json()'s F-card "oldName" property to "rename", per /chat discussion (it's shorter, saving about 1kb of output with the current trunk).
Commit
d2db37a75296f5bdbbdb15468772c0c2d0ace4f4629afc8c32b9a6bba8f35fd6
Parent
87bdf7d1b82d0de…
1 file changed
+2
-2
+2
-2
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -2991,20 +2991,20 @@ | ||
| 2991 | 2991 | if( i>0 ) blob_append_char(b, ','); |
| 2992 | 2992 | blob_append_char(b, '{'); |
| 2993 | 2993 | KVP_STR(0, name, pF->zName); |
| 2994 | 2994 | KVP_STR(1, uuid, pF->zUuid); |
| 2995 | 2995 | KVP_STR(1, perm, pF->zPerm); |
| 2996 | - KVP_STR(1, oldName, pF->zPrior); | |
| 2996 | + KVP_STR(1, rename, pF->zPrior); | |
| 2997 | 2997 | blob_append_char(b, '}'); |
| 2998 | 2998 | } |
| 2999 | 2999 | /* Special case: model checkins with no F-card as having an empty |
| 3000 | 3000 | ** array, rather than no F-cards, to hypothetically simplify |
| 3001 | 3001 | ** handling in JSON queries. */ |
| 3002 | 3002 | blob_append_char(b, ']'); |
| 3003 | 3003 | } |
| 3004 | 3004 | CARD_STR2(G, p->zThreadRoot); |
| 3005 | - if( CFTYPE_FORUM==p->type ){ | |
| 3005 | + ISA( CFTYPE_FORUM ){ | |
| 3006 | 3006 | CARD_LETTER(H); |
| 3007 | 3007 | STR_OR_NULL( (p->zThreadTitle && *p->zThreadTitle) ? p->zThreadTitle : NULL); |
| 3008 | 3008 | CARD_STR2(I, p->zInReplyTo); |
| 3009 | 3009 | } |
| 3010 | 3010 | if( p->nField ){ |
| 3011 | 3011 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -2991,20 +2991,20 @@ | |
| 2991 | if( i>0 ) blob_append_char(b, ','); |
| 2992 | blob_append_char(b, '{'); |
| 2993 | KVP_STR(0, name, pF->zName); |
| 2994 | KVP_STR(1, uuid, pF->zUuid); |
| 2995 | KVP_STR(1, perm, pF->zPerm); |
| 2996 | KVP_STR(1, oldName, pF->zPrior); |
| 2997 | blob_append_char(b, '}'); |
| 2998 | } |
| 2999 | /* Special case: model checkins with no F-card as having an empty |
| 3000 | ** array, rather than no F-cards, to hypothetically simplify |
| 3001 | ** handling in JSON queries. */ |
| 3002 | blob_append_char(b, ']'); |
| 3003 | } |
| 3004 | CARD_STR2(G, p->zThreadRoot); |
| 3005 | if( CFTYPE_FORUM==p->type ){ |
| 3006 | CARD_LETTER(H); |
| 3007 | STR_OR_NULL( (p->zThreadTitle && *p->zThreadTitle) ? p->zThreadTitle : NULL); |
| 3008 | CARD_STR2(I, p->zInReplyTo); |
| 3009 | } |
| 3010 | if( p->nField ){ |
| 3011 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -2991,20 +2991,20 @@ | |
| 2991 | if( i>0 ) blob_append_char(b, ','); |
| 2992 | blob_append_char(b, '{'); |
| 2993 | KVP_STR(0, name, pF->zName); |
| 2994 | KVP_STR(1, uuid, pF->zUuid); |
| 2995 | KVP_STR(1, perm, pF->zPerm); |
| 2996 | KVP_STR(1, rename, pF->zPrior); |
| 2997 | blob_append_char(b, '}'); |
| 2998 | } |
| 2999 | /* Special case: model checkins with no F-card as having an empty |
| 3000 | ** array, rather than no F-cards, to hypothetically simplify |
| 3001 | ** handling in JSON queries. */ |
| 3002 | blob_append_char(b, ']'); |
| 3003 | } |
| 3004 | CARD_STR2(G, p->zThreadRoot); |
| 3005 | ISA( CFTYPE_FORUM ){ |
| 3006 | CARD_LETTER(H); |
| 3007 | STR_OR_NULL( (p->zThreadTitle && *p->zThreadTitle) ? p->zThreadTitle : NULL); |
| 3008 | CARD_STR2(I, p->zInReplyTo); |
| 3009 | } |
| 3010 | if( p->nField ){ |
| 3011 |