Fossil SCM

For opened working trees, store current branch at top of manifest.tags.

jan 2016-08-03 14:30 jan-manifest-tags
Commit 0fb54e5afe2a60e4605d61ea47050046fd355656
1 file changed +8
--- src/checkout.c
+++ src/checkout.c
@@ -189,10 +189,18 @@
189189
190190
void get_checkin_taglist(int rid, Blob *pOut){
191191
char *zTags;
192192
Stmt stmt;
193193
blob_reset(pOut);
194
+ if( g.localOpen ){
195
+ char *zCurrent;
196
+ int vid;
197
+ vid = db_lget_int("checkout", 0);
198
+ zCurrent = db_text(0, "SELECT value FROM tagxref"
199
+ " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH);
200
+ blob_appendf(pOut, "branch=%s\n", zCurrent);
201
+ }
194202
db_prepare(&stmt, "SELECT substr(tagname, 5)"
195203
" FROM tagxref, tag"
196204
" WHERE tagxref.rid=%d"
197205
" AND tagxref.tagtype>0"
198206
" AND tag.tagid=tagxref.tagid"
199207
--- src/checkout.c
+++ src/checkout.c
@@ -189,10 +189,18 @@
189
190 void get_checkin_taglist(int rid, Blob *pOut){
191 char *zTags;
192 Stmt stmt;
193 blob_reset(pOut);
 
 
 
 
 
 
 
 
194 db_prepare(&stmt, "SELECT substr(tagname, 5)"
195 " FROM tagxref, tag"
196 " WHERE tagxref.rid=%d"
197 " AND tagxref.tagtype>0"
198 " AND tag.tagid=tagxref.tagid"
199
--- src/checkout.c
+++ src/checkout.c
@@ -189,10 +189,18 @@
189
190 void get_checkin_taglist(int rid, Blob *pOut){
191 char *zTags;
192 Stmt stmt;
193 blob_reset(pOut);
194 if( g.localOpen ){
195 char *zCurrent;
196 int vid;
197 vid = db_lget_int("checkout", 0);
198 zCurrent = db_text(0, "SELECT value FROM tagxref"
199 " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH);
200 blob_appendf(pOut, "branch=%s\n", zCurrent);
201 }
202 db_prepare(&stmt, "SELECT substr(tagname, 5)"
203 " FROM tagxref, tag"
204 " WHERE tagxref.rid=%d"
205 " AND tagxref.tagtype>0"
206 " AND tag.tagid=tagxref.tagid"
207

Keyboard Shortcuts

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