Fossil SCM
Added is-a-leaf and leaf status to info [/help/info] and friends, per ML request.
Commit
0b5670dce67fe812f4a42b7ae32e4dc0788f0216
Parent
d5d7e640d035f1b…
2 files changed
+16
+4
+16
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -108,10 +108,26 @@ | ||
| 108 | 108 | ); |
| 109 | 109 | fossil_print("%-13s %s %s\n", zType, zUuid, zDate); |
| 110 | 110 | free(zDate); |
| 111 | 111 | } |
| 112 | 112 | db_finalize(&q); |
| 113 | + } | |
| 114 | + if( zUuid ){ | |
| 115 | + fossil_print("%-13s ", "leaf:"); | |
| 116 | + if(is_a_leaf(rid)){ | |
| 117 | + if(db_int(0, "SELECT 1 FROM tagxref AS tx" | |
| 118 | + " WHERE tx.rid=%d" | |
| 119 | + " AND tx.tagid=%d" | |
| 120 | + " AND tx.tagtype>0", | |
| 121 | + rid, TAG_CLOSED)){ | |
| 122 | + fossil_print("%s\n", "closed"); | |
| 123 | + }else{ | |
| 124 | + fossil_print("%s\n", "open"); | |
| 125 | + } | |
| 126 | + }else{ | |
| 127 | + fossil_print("no\n"); | |
| 128 | + } | |
| 113 | 129 | } |
| 114 | 130 | zTags = info_tags_of_checkin(rid, 0); |
| 115 | 131 | if( zTags && zTags[0] ){ |
| 116 | 132 | fossil_print("tags: %s\n", zTags); |
| 117 | 133 | } |
| 118 | 134 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -108,10 +108,26 @@ | |
| 108 | ); |
| 109 | fossil_print("%-13s %s %s\n", zType, zUuid, zDate); |
| 110 | free(zDate); |
| 111 | } |
| 112 | db_finalize(&q); |
| 113 | } |
| 114 | zTags = info_tags_of_checkin(rid, 0); |
| 115 | if( zTags && zTags[0] ){ |
| 116 | fossil_print("tags: %s\n", zTags); |
| 117 | } |
| 118 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -108,10 +108,26 @@ | |
| 108 | ); |
| 109 | fossil_print("%-13s %s %s\n", zType, zUuid, zDate); |
| 110 | free(zDate); |
| 111 | } |
| 112 | db_finalize(&q); |
| 113 | } |
| 114 | if( zUuid ){ |
| 115 | fossil_print("%-13s ", "leaf:"); |
| 116 | if(is_a_leaf(rid)){ |
| 117 | if(db_int(0, "SELECT 1 FROM tagxref AS tx" |
| 118 | " WHERE tx.rid=%d" |
| 119 | " AND tx.tagid=%d" |
| 120 | " AND tx.tagtype>0", |
| 121 | rid, TAG_CLOSED)){ |
| 122 | fossil_print("%s\n", "closed"); |
| 123 | }else{ |
| 124 | fossil_print("%s\n", "open"); |
| 125 | } |
| 126 | }else{ |
| 127 | fossil_print("no\n"); |
| 128 | } |
| 129 | } |
| 130 | zTags = info_tags_of_checkin(rid, 0); |
| 131 | if( zTags && zTags[0] ){ |
| 132 | fossil_print("tags: %s\n", zTags); |
| 133 | } |
| 134 |
+4
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -2,10 +2,14 @@ | ||
| 2 | 2 | |
| 3 | 3 | <h2>Changes For Version 1.29 (as yet unreleased)</h2> |
| 4 | 4 | * Add the ability to display content and diffs for UTF16 text files |
| 5 | 5 | in the web interface. |
| 6 | 6 | * Honor timezones in imports from git. |
| 7 | + * The [/reports] page now requires Read ("u") permissions. The "byweek" | |
| 8 | + report now properly propagates the selected year through the event type | |
| 9 | + filter links. | |
| 10 | + * The [/help/info | info command] now shows leaf status of the checkout. | |
| 7 | 11 | |
| 8 | 12 | <h2>Changes For Version 1.28 (2014-01-27)</h2> |
| 9 | 13 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 10 | 14 | * When cloning a repository, the user name passed via the URL (if any) |
| 11 | 15 | is now used as the default local admin user's name. |
| 12 | 16 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -2,10 +2,14 @@ | |
| 2 | |
| 3 | <h2>Changes For Version 1.29 (as yet unreleased)</h2> |
| 4 | * Add the ability to display content and diffs for UTF16 text files |
| 5 | in the web interface. |
| 6 | * Honor timezones in imports from git. |
| 7 | |
| 8 | <h2>Changes For Version 1.28 (2014-01-27)</h2> |
| 9 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 10 | * When cloning a repository, the user name passed via the URL (if any) |
| 11 | is now used as the default local admin user's name. |
| 12 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -2,10 +2,14 @@ | |
| 2 | |
| 3 | <h2>Changes For Version 1.29 (as yet unreleased)</h2> |
| 4 | * Add the ability to display content and diffs for UTF16 text files |
| 5 | in the web interface. |
| 6 | * Honor timezones in imports from git. |
| 7 | * The [/reports] page now requires Read ("u") permissions. The "byweek" |
| 8 | report now properly propagates the selected year through the event type |
| 9 | filter links. |
| 10 | * The [/help/info | info command] now shows leaf status of the checkout. |
| 11 | |
| 12 | <h2>Changes For Version 1.28 (2014-01-27)</h2> |
| 13 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 14 | * When cloning a repository, the user name passed via the URL (if any) |
| 15 | is now used as the default local admin user's name. |
| 16 |