| | @@ -135,11 +135,11 @@ |
| 135 | 135 | |
| 136 | 136 | if(zParent){ |
| 137 | 137 | SET("parentUuid", json_new_string(zParent)); |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | | - tmpV = json_tags_for_rid(rid,0); |
| 140 | + tmpV = json_tags_for_checkin_rid(rid,0); |
| 141 | 141 | if(tmpV){ |
| 142 | 142 | SET("tags",tmpV); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | if( showFiles ){ |
| | @@ -284,14 +284,15 @@ |
| 284 | 284 | TAG_BRANCH, rid |
| 285 | 285 | ); |
| 286 | 286 | checkin_arr = cson_new_array(); |
| 287 | 287 | cson_object_set(pay, "checkins", cson_array_value(checkin_arr)); |
| 288 | 288 | #if 0 |
| 289 | | - /* Damn: json_tags_for_rid() only works for commits. |
| 289 | + /* Damn: json_tags_for_checkin_rid() only works for commits. |
| 290 | 290 | |
| 291 | | - FIXME: extend json_tags_for_rid() to accept file rids and then |
| 292 | | - implement this loop to add the tags to each object. |
| 291 | + FIXME: add json_tags_for_file_rid(), analog to |
| 292 | + json_tags_for_checkin_rid(), and then implement this loop to add the |
| 293 | + tags to each object. |
| 293 | 294 | */ |
| 294 | 295 | |
| 295 | 296 | while( SQLITE_ROW == db_step(&q) ){ |
| 296 | 297 | checkinV = cson_sqlite3_row_to_object( q.pStmt ); |
| 297 | 298 | if(!checkinV){ |
| | @@ -301,11 +302,11 @@ |
| 301 | 302 | tagKey = cson_new_string("tags",4); |
| 302 | 303 | json_gc_add("artifact/file/tags", cson_string_value(tagKey)) |
| 303 | 304 | /*avoids a potential lifetime issue*/; |
| 304 | 305 | } |
| 305 | 306 | checkin = cson_value_get_object(checkinV); |
| 306 | | - cson_object_set_s(checkin, tagKey, json_tags_for_rid(rid,0)); |
| 307 | + cson_object_set_s(checkin, tagKey, json_tags_for_checkin_rid(rid,0)); |
| 307 | 308 | cson_array_append( checkin_arr, checkinV ); |
| 308 | 309 | } |
| 309 | 310 | #else |
| 310 | 311 | json_stmt_to_array_of_obj( &q, checkin_arr ); |
| 311 | 312 | #endif |
| 312 | 313 | |