Fossil SCM
Only check for forks on "open" leaves, we cannot do anything about it from here anyway. Thanks to Andy Bradford for noticing this.
Commit
72794ec975ce4c8e43d519c1267eff1baab290fe
Parent
11b7fa691499c04…
1 file changed
+7
-7
+7
-7
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -115,19 +115,19 @@ | ||
| 115 | 115 | db_finalize(&q); |
| 116 | 116 | } |
| 117 | 117 | if( zUuid ){ |
| 118 | 118 | fossil_print("%-13s ", "leaf:"); |
| 119 | 119 | if( is_a_leaf(rid) ){ |
| 120 | - if( fossil_find_nearest_fork(rid) ){ | |
| 120 | + if( db_int(0, "SELECT 1 FROM tagxref AS tx" | |
| 121 | + " WHERE tx.rid=%d" | |
| 122 | + " AND tx.tagid=%d" | |
| 123 | + " AND tx.tagtype>0", | |
| 124 | + rid, TAG_CLOSED)){ | |
| 125 | + fossil_print("%s\n", "closed"); | |
| 126 | + }else if( fossil_find_nearest_fork(rid) ){ | |
| 121 | 127 | fossil_print("%s\n", "fork"); |
| 122 | 128 | isFork = 1; |
| 123 | - }else if(db_int(0, "SELECT 1 FROM tagxref AS tx" | |
| 124 | - " WHERE tx.rid=%d" | |
| 125 | - " AND tx.tagid=%d" | |
| 126 | - " AND tx.tagtype>0", | |
| 127 | - rid, TAG_CLOSED)){ | |
| 128 | - fossil_print("%s\n", "closed"); | |
| 129 | 129 | }else{ |
| 130 | 130 | fossil_print("%s\n", "open"); |
| 131 | 131 | } |
| 132 | 132 | }else{ |
| 133 | 133 | fossil_print("no\n"); |
| 134 | 134 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -115,19 +115,19 @@ | |
| 115 | db_finalize(&q); |
| 116 | } |
| 117 | if( zUuid ){ |
| 118 | fossil_print("%-13s ", "leaf:"); |
| 119 | if( is_a_leaf(rid) ){ |
| 120 | if( fossil_find_nearest_fork(rid) ){ |
| 121 | fossil_print("%s\n", "fork"); |
| 122 | isFork = 1; |
| 123 | }else if(db_int(0, "SELECT 1 FROM tagxref AS tx" |
| 124 | " WHERE tx.rid=%d" |
| 125 | " AND tx.tagid=%d" |
| 126 | " AND tx.tagtype>0", |
| 127 | rid, TAG_CLOSED)){ |
| 128 | fossil_print("%s\n", "closed"); |
| 129 | }else{ |
| 130 | fossil_print("%s\n", "open"); |
| 131 | } |
| 132 | }else{ |
| 133 | fossil_print("no\n"); |
| 134 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -115,19 +115,19 @@ | |
| 115 | db_finalize(&q); |
| 116 | } |
| 117 | if( zUuid ){ |
| 118 | fossil_print("%-13s ", "leaf:"); |
| 119 | if( is_a_leaf(rid) ){ |
| 120 | if( db_int(0, "SELECT 1 FROM tagxref AS tx" |
| 121 | " WHERE tx.rid=%d" |
| 122 | " AND tx.tagid=%d" |
| 123 | " AND tx.tagtype>0", |
| 124 | rid, TAG_CLOSED)){ |
| 125 | fossil_print("%s\n", "closed"); |
| 126 | }else if( fossil_find_nearest_fork(rid) ){ |
| 127 | fossil_print("%s\n", "fork"); |
| 128 | isFork = 1; |
| 129 | }else{ |
| 130 | fossil_print("%s\n", "open"); |
| 131 | } |
| 132 | }else{ |
| 133 | fossil_print("no\n"); |
| 134 |