Fossil SCM

merged from trunk

sdr 2016-06-14 05:00 UTC invalid_utf8_table merge
Commit d22c72bc9248b5e766b881e45e392b72af7cc2b9
3 files changed +1 -1 +5 -3 +1 -1
+1 -1
--- src/foci.c
+++ src/foci.c
@@ -190,11 +190,11 @@
190190
if( idxNum ){
191191
int rid;
192192
if( idxNum==1 ){
193193
rid = sqlite3_value_int(argv[0]);
194194
}else{
195
- rid = symbolic_name_to_rid(sqlite3_value_text(argv[0]), "ci");
195
+ rid = symbolic_name_to_rid((const char*)sqlite3_value_text(argv[0]),"ci");
196196
}
197197
pCur->pMan = manifest_get(rid, CFTYPE_MANIFEST, 0);
198198
if( pCur->pMan ){
199199
manifest_file_rewind(pCur->pMan);
200200
pCur->pFile = manifest_file_next(pCur->pMan, 0);
201201
--- src/foci.c
+++ src/foci.c
@@ -190,11 +190,11 @@
190 if( idxNum ){
191 int rid;
192 if( idxNum==1 ){
193 rid = sqlite3_value_int(argv[0]);
194 }else{
195 rid = symbolic_name_to_rid(sqlite3_value_text(argv[0]), "ci");
196 }
197 pCur->pMan = manifest_get(rid, CFTYPE_MANIFEST, 0);
198 if( pCur->pMan ){
199 manifest_file_rewind(pCur->pMan);
200 pCur->pFile = manifest_file_next(pCur->pMan, 0);
201
--- src/foci.c
+++ src/foci.c
@@ -190,11 +190,11 @@
190 if( idxNum ){
191 int rid;
192 if( idxNum==1 ){
193 rid = sqlite3_value_int(argv[0]);
194 }else{
195 rid = symbolic_name_to_rid((const char*)sqlite3_value_text(argv[0]),"ci");
196 }
197 pCur->pMan = manifest_get(rid, CFTYPE_MANIFEST, 0);
198 if( pCur->pMan ){
199 manifest_file_rewind(pCur->pMan);
200 pCur->pFile = manifest_file_next(pCur->pMan, 0);
201
+5 -3
--- src/main.c
+++ src/main.c
@@ -2141,16 +2141,18 @@
21412141
*/
21422142
pFileGlob = glob_create(blob_str(&value));
21432143
blob_reset(&value);
21442144
continue;
21452145
}
2146
- if( blob_eq(&key, "setenv:") && blob_token(&line, &value)
2147
- && blob_token(&line, &value2) ){
2146
+ if( blob_eq(&key, "setenv:") && blob_token(&line, &value) ){
21482147
/* setenv: NAME VALUE
2148
+ ** setenv: NAME
21492149
**
2150
- ** Sets environment variable NAME to VALUE
2150
+ ** Sets environment variable NAME to VALUE. If VALUE is omitted, then
2151
+ ** the environment variable is unset.
21512152
*/
2153
+ blob_token(&line,&value2);
21522154
fossil_setenv(blob_str(&value), blob_str(&value2));
21532155
blob_reset(&value);
21542156
blob_reset(&value2);
21552157
continue;
21562158
}
21572159
--- src/main.c
+++ src/main.c
@@ -2141,16 +2141,18 @@
2141 */
2142 pFileGlob = glob_create(blob_str(&value));
2143 blob_reset(&value);
2144 continue;
2145 }
2146 if( blob_eq(&key, "setenv:") && blob_token(&line, &value)
2147 && blob_token(&line, &value2) ){
2148 /* setenv: NAME VALUE
 
2149 **
2150 ** Sets environment variable NAME to VALUE
 
2151 */
 
2152 fossil_setenv(blob_str(&value), blob_str(&value2));
2153 blob_reset(&value);
2154 blob_reset(&value2);
2155 continue;
2156 }
2157
--- src/main.c
+++ src/main.c
@@ -2141,16 +2141,18 @@
2141 */
2142 pFileGlob = glob_create(blob_str(&value));
2143 blob_reset(&value);
2144 continue;
2145 }
2146 if( blob_eq(&key, "setenv:") && blob_token(&line, &value) ){
 
2147 /* setenv: NAME VALUE
2148 ** setenv: NAME
2149 **
2150 ** Sets environment variable NAME to VALUE. If VALUE is omitted, then
2151 ** the environment variable is unset.
2152 */
2153 blob_token(&line,&value2);
2154 fossil_setenv(blob_str(&value), blob_str(&value2));
2155 blob_reset(&value);
2156 blob_reset(&value2);
2157 continue;
2158 }
2159
+1 -1
--- src/manifest.c
+++ src/manifest.c
@@ -1611,11 +1611,11 @@
16111611
return parentid;
16121612
}
16131613
16141614
/*
16151615
** There exists a "parent" tag against checkin rid that has value zValue.
1616
-** If value is well-formed (meaning that is is a list of UUIDs), then use
1616
+** If value is well-formed (meaning that it is a list of UUIDs), then use
16171617
** zValue to reparent check-in rid.
16181618
*/
16191619
void manifest_reparent_checkin(int rid, const char *zValue){
16201620
int nParent;
16211621
char *zCopy = 0;
16221622
--- src/manifest.c
+++ src/manifest.c
@@ -1611,11 +1611,11 @@
1611 return parentid;
1612 }
1613
1614 /*
1615 ** There exists a "parent" tag against checkin rid that has value zValue.
1616 ** If value is well-formed (meaning that is is a list of UUIDs), then use
1617 ** zValue to reparent check-in rid.
1618 */
1619 void manifest_reparent_checkin(int rid, const char *zValue){
1620 int nParent;
1621 char *zCopy = 0;
1622
--- src/manifest.c
+++ src/manifest.c
@@ -1611,11 +1611,11 @@
1611 return parentid;
1612 }
1613
1614 /*
1615 ** There exists a "parent" tag against checkin rid that has value zValue.
1616 ** If value is well-formed (meaning that it is a list of UUIDs), then use
1617 ** zValue to reparent check-in rid.
1618 */
1619 void manifest_reparent_checkin(int rid, const char *zValue){
1620 int nParent;
1621 char *zCopy = 0;
1622

Keyboard Shortcuts

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