Fossil SCM

Correct spacing of CHERRYPICK, BACKOUT, and INTEGRATE records in the change/status report to match the other record types. The style is to have a token identifying the record type, spaces padding up to TEN columns if necessary, a single space, then the filename or artifact ID. Previously, these three records padded to ELEVEN, which is inappropriate outside of Spın̈al Tap.

andygoth 2015-07-01 01:23 UTC trunk
Commit 6cd7087a35cb8448031ad72f99439401ce872670
1 file changed +2 -2
+2 -2
--- src/checkin.c
+++ src/checkin.c
@@ -138,18 +138,18 @@
138138
blob_reset(&rewrittenPathname);
139139
db_finalize(&q);
140140
db_prepare(&q, "SELECT uuid, id FROM vmerge JOIN blob ON merge=rid"
141141
" WHERE id<=0");
142142
while( db_step(&q)==SQLITE_ROW ){
143
- const char *zLabel = "MERGED_WITH";
143
+ const char *zLabel = "MERGED_WITH ";
144144
switch( db_column_int(&q, 1) ){
145145
case -1: zLabel = "CHERRYPICK "; break;
146146
case -2: zLabel = "BACKOUT "; break;
147147
case -4: zLabel = "INTEGRATE "; break;
148148
}
149149
blob_append(report, zPrefix, nPrefix);
150
- blob_appendf(report, "%s %s\n", zLabel, db_column_text(&q, 0));
150
+ blob_appendf(report, "%s%s\n", zLabel, db_column_text(&q, 0));
151151
}
152152
db_finalize(&q);
153153
if( nErr ){
154154
fossil_fatal("aborting due to prior errors");
155155
}
156156
--- src/checkin.c
+++ src/checkin.c
@@ -138,18 +138,18 @@
138 blob_reset(&rewrittenPathname);
139 db_finalize(&q);
140 db_prepare(&q, "SELECT uuid, id FROM vmerge JOIN blob ON merge=rid"
141 " WHERE id<=0");
142 while( db_step(&q)==SQLITE_ROW ){
143 const char *zLabel = "MERGED_WITH";
144 switch( db_column_int(&q, 1) ){
145 case -1: zLabel = "CHERRYPICK "; break;
146 case -2: zLabel = "BACKOUT "; break;
147 case -4: zLabel = "INTEGRATE "; break;
148 }
149 blob_append(report, zPrefix, nPrefix);
150 blob_appendf(report, "%s %s\n", zLabel, db_column_text(&q, 0));
151 }
152 db_finalize(&q);
153 if( nErr ){
154 fossil_fatal("aborting due to prior errors");
155 }
156
--- src/checkin.c
+++ src/checkin.c
@@ -138,18 +138,18 @@
138 blob_reset(&rewrittenPathname);
139 db_finalize(&q);
140 db_prepare(&q, "SELECT uuid, id FROM vmerge JOIN blob ON merge=rid"
141 " WHERE id<=0");
142 while( db_step(&q)==SQLITE_ROW ){
143 const char *zLabel = "MERGED_WITH ";
144 switch( db_column_int(&q, 1) ){
145 case -1: zLabel = "CHERRYPICK "; break;
146 case -2: zLabel = "BACKOUT "; break;
147 case -4: zLabel = "INTEGRATE "; break;
148 }
149 blob_append(report, zPrefix, nPrefix);
150 blob_appendf(report, "%s%s\n", zLabel, db_column_text(&q, 0));
151 }
152 db_finalize(&q);
153 if( nErr ){
154 fossil_fatal("aborting due to prior errors");
155 }
156

Keyboard Shortcuts

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