Overview
SHA1 Hash: | 2521a0a9a704b41543f204e92e6837314cf622aa |
---|---|
Date: | 2009-01-21 02:54:02 |
User: | drh |
Comment: | The "fossil info" command now shows tags associated with the current check-out. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/info.c from [34fba006b8] to [0a7e3b6c33].
@@ -39,10 +39,11 @@ ** * who signed it */ void show_common_info(int rid, const char *zUuidName, int showComment){ Stmt q; char *zComment = 0; + char *zTags; db_prepare(&q, "SELECT uuid" " FROM blob WHERE rid=%d", rid ); if( db_step(&q)==SQLITE_ROW ){ @@ -62,10 +63,20 @@ while( db_step(&q)==SQLITE_ROW ){ const char *zUuid = db_column_text(&q, 0); printf("child: %s\n", zUuid); } db_finalize(&q); + zTags = db_text(0, "SELECT group_concat(substr(tagname, 5), ', ')" + " FROM tagxref, tag" + " WHERE tagxref.rid=%d AND tagxref.tagtype>0" + " AND tag.tagid=tagxref.tagid" + " AND tag.tagname GLOB 'sym-*'", + rid); + if( zTags && zTags[0] ){ + printf("tags: %s\n", zTags); + } + free(zTags); if( zComment ){ printf("comment:\n%s\n", zComment); free(zComment); } }