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.

jan.nijtmans 2015-04-10 17:33 UTC pending-review
Commit 72794ec975ce4c8e43d519c1267eff1baab290fe
1 file changed +7 -7
+7 -7
--- src/info.c
+++ src/info.c
@@ -115,19 +115,19 @@
115115
db_finalize(&q);
116116
}
117117
if( zUuid ){
118118
fossil_print("%-13s ", "leaf:");
119119
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) ){
121127
fossil_print("%s\n", "fork");
122128
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");
129129
}else{
130130
fossil_print("%s\n", "open");
131131
}
132132
}else{
133133
fossil_print("no\n");
134134
--- 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

Keyboard Shortcuts

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