Fossil SCM

Added is-a-leaf and leaf status to info [/help/info] and friends, per ML request.

stephan 2014-01-29 15:16 trunk
Commit 0b5670dce67fe812f4a42b7ae32e4dc0788f0216
+16
--- src/info.c
+++ src/info.c
@@ -108,10 +108,26 @@
108108
);
109109
fossil_print("%-13s %s %s\n", zType, zUuid, zDate);
110110
free(zDate);
111111
}
112112
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
+ }
113129
}
114130
zTags = info_tags_of_checkin(rid, 0);
115131
if( zTags && zTags[0] ){
116132
fossil_print("tags: %s\n", zTags);
117133
}
118134
--- 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
--- www/changes.wiki
+++ www/changes.wiki
@@ -2,10 +2,14 @@
22
33
<h2>Changes For Version 1.29 (as yet unreleased)</h2>
44
* Add the ability to display content and diffs for UTF16 text files
55
in the web interface.
66
* 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.
711
812
<h2>Changes For Version 1.28 (2014-01-27)</h2>
913
* Enhance [/help?cmd=/reports | /reports] to support event type filtering.
1014
* When cloning a repository, the user name passed via the URL (if any)
1115
is now used as the default local admin user's name.
1216
--- 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

Keyboard Shortcuts

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