Fossil SCM

Merge latest trunk.

dmitry 2011-02-07 17:51 UTC symlinks merge
Commit d7d335a6920257d00ed6605309ac9838dd044519
+12 -24
--- src/branch.c
+++ src/branch.c
@@ -205,16 +205,17 @@
205205
if( g.localOpen ){
206206
vid = db_lget_int("checkout", 0);
207207
zCurrent = db_text(0, "SELECT value FROM tagxref"
208208
" WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH);
209209
}
210
- compute_leaves(0, 1);
211210
db_prepare(&q,
212211
"SELECT DISTINCT value FROM tagxref"
213
- " WHERE tagid=%d AND value NOT NULL AND rid IN leaves"
212
+ " WHERE tagid=%d AND value NOT NULL"
213
+ " AND rid IN leaf"
214
+ " AND NOT %z"
214215
" ORDER BY value /*sort*/",
215
- TAG_BRANCH
216
+ TAG_BRANCH, leaf_is_closed_sql("tagxref.rid")
216217
);
217218
while( db_step(&q)==SQLITE_ROW ){
218219
const char *zBr = db_column_text(&q, 0);
219220
int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0;
220221
printf("%s%s\n", (isCur ? "* " : " "), zBr);
@@ -245,11 +246,10 @@
245246
style_submenu_element("Open","Open","brlist");
246247
}else{
247248
style_submenu_element("Closed","Closed","brlist?closed");
248249
}
249250
login_anonymous_available();
250
- compute_leaves(0, 1);
251251
style_sidebox_begin("Nomenclature:", "33%");
252252
@ <ol>
253253
@ <li> An <div class="sideboxDescribed"><a href="brlist">
254254
@ open branch</a></div> is a branch that has one or
255255
@ more <a href="leaves">open leaves.</a>
@@ -263,30 +263,18 @@
263263
@ reopened)</li>
264264
@ </ol>
265265
style_sidebox_end();
266266
267267
cnt = 0;
268
- if( !showClosed ){
269
- db_prepare(&q,
270
- "SELECT DISTINCT value FROM tagxref"
271
- " WHERE tagid=%d AND value NOT NULL"
272
- " AND rid IN leaves"
273
- " ORDER BY value /*sort*/",
274
- TAG_BRANCH
275
- );
276
- }else{
277
- db_prepare(&q,
278
- "SELECT value FROM tagxref"
279
- " WHERE tagid=%d AND value NOT NULL"
280
- " EXCEPT "
281
- "SELECT value FROM tagxref"
282
- " WHERE tagid=%d AND value NOT NULL"
283
- " AND rid IN leaves"
284
- " ORDER BY value /*sort*/",
285
- TAG_BRANCH, TAG_BRANCH
286
- );
287
- }
268
+ db_prepare(&q,
269
+ "SELECT DISTINCT value FROM tagxref"
270
+ " WHERE tagid=%d AND value NOT NULL"
271
+ " AND rid IN leaf"
272
+ " AND %s %z"
273
+ " ORDER BY value /*sort*/",
274
+ TAG_BRANCH, showClosed ? "" : "NOT", leaf_is_closed_sql("tagxref.rid")
275
+ );
288276
while( db_step(&q)==SQLITE_ROW ){
289277
const char *zBr = db_column_text(&q, 0);
290278
if( cnt==0 ){
291279
if( showClosed ){
292280
@ <h2>Closed Branches:</h2>
293281
--- src/branch.c
+++ src/branch.c
@@ -205,16 +205,17 @@
205 if( g.localOpen ){
206 vid = db_lget_int("checkout", 0);
207 zCurrent = db_text(0, "SELECT value FROM tagxref"
208 " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH);
209 }
210 compute_leaves(0, 1);
211 db_prepare(&q,
212 "SELECT DISTINCT value FROM tagxref"
213 " WHERE tagid=%d AND value NOT NULL AND rid IN leaves"
 
 
214 " ORDER BY value /*sort*/",
215 TAG_BRANCH
216 );
217 while( db_step(&q)==SQLITE_ROW ){
218 const char *zBr = db_column_text(&q, 0);
219 int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0;
220 printf("%s%s\n", (isCur ? "* " : " "), zBr);
@@ -245,11 +246,10 @@
245 style_submenu_element("Open","Open","brlist");
246 }else{
247 style_submenu_element("Closed","Closed","brlist?closed");
248 }
249 login_anonymous_available();
250 compute_leaves(0, 1);
251 style_sidebox_begin("Nomenclature:", "33%");
252 @ <ol>
253 @ <li> An <div class="sideboxDescribed"><a href="brlist">
254 @ open branch</a></div> is a branch that has one or
255 @ more <a href="leaves">open leaves.</a>
@@ -263,30 +263,18 @@
263 @ reopened)</li>
264 @ </ol>
265 style_sidebox_end();
266
267 cnt = 0;
268 if( !showClosed ){
269 db_prepare(&q,
270 "SELECT DISTINCT value FROM tagxref"
271 " WHERE tagid=%d AND value NOT NULL"
272 " AND rid IN leaves"
273 " ORDER BY value /*sort*/",
274 TAG_BRANCH
275 );
276 }else{
277 db_prepare(&q,
278 "SELECT value FROM tagxref"
279 " WHERE tagid=%d AND value NOT NULL"
280 " EXCEPT "
281 "SELECT value FROM tagxref"
282 " WHERE tagid=%d AND value NOT NULL"
283 " AND rid IN leaves"
284 " ORDER BY value /*sort*/",
285 TAG_BRANCH, TAG_BRANCH
286 );
287 }
288 while( db_step(&q)==SQLITE_ROW ){
289 const char *zBr = db_column_text(&q, 0);
290 if( cnt==0 ){
291 if( showClosed ){
292 @ <h2>Closed Branches:</h2>
293
--- src/branch.c
+++ src/branch.c
@@ -205,16 +205,17 @@
205 if( g.localOpen ){
206 vid = db_lget_int("checkout", 0);
207 zCurrent = db_text(0, "SELECT value FROM tagxref"
208 " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH);
209 }
 
210 db_prepare(&q,
211 "SELECT DISTINCT value FROM tagxref"
212 " WHERE tagid=%d AND value NOT NULL"
213 " AND rid IN leaf"
214 " AND NOT %z"
215 " ORDER BY value /*sort*/",
216 TAG_BRANCH, leaf_is_closed_sql("tagxref.rid")
217 );
218 while( db_step(&q)==SQLITE_ROW ){
219 const char *zBr = db_column_text(&q, 0);
220 int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0;
221 printf("%s%s\n", (isCur ? "* " : " "), zBr);
@@ -245,11 +246,10 @@
246 style_submenu_element("Open","Open","brlist");
247 }else{
248 style_submenu_element("Closed","Closed","brlist?closed");
249 }
250 login_anonymous_available();
 
251 style_sidebox_begin("Nomenclature:", "33%");
252 @ <ol>
253 @ <li> An <div class="sideboxDescribed"><a href="brlist">
254 @ open branch</a></div> is a branch that has one or
255 @ more <a href="leaves">open leaves.</a>
@@ -263,30 +263,18 @@
263 @ reopened)</li>
264 @ </ol>
265 style_sidebox_end();
266
267 cnt = 0;
268 db_prepare(&q,
269 "SELECT DISTINCT value FROM tagxref"
270 " WHERE tagid=%d AND value NOT NULL"
271 " AND rid IN leaf"
272 " AND %s %z"
273 " ORDER BY value /*sort*/",
274 TAG_BRANCH, showClosed ? "" : "NOT", leaf_is_closed_sql("tagxref.rid")
275 );
 
 
 
 
 
 
 
 
 
 
 
 
276 while( db_step(&q)==SQLITE_ROW ){
277 const char *zBr = db_column_text(&q, 0);
278 if( cnt==0 ){
279 if( showClosed ){
280 @ <h2>Closed Branches:</h2>
281
+1
--- src/db.c
+++ src/db.c
@@ -123,10 +123,11 @@
123123
if( nBegin<=0 ) return;
124124
if( rollbackFlag ) doRollback = 1;
125125
nBegin--;
126126
if( nBegin==0 ){
127127
int i;
128
+ if( doRollback==0 ) leaf_do_pending_checks();
128129
for(i=0; doRollback==0 && i<nCommitHook; i++){
129130
doRollback |= aHook[i].xHook();
130131
}
131132
while( pAllStmt ){
132133
db_finalize(pAllStmt);
133134
--- src/db.c
+++ src/db.c
@@ -123,10 +123,11 @@
123 if( nBegin<=0 ) return;
124 if( rollbackFlag ) doRollback = 1;
125 nBegin--;
126 if( nBegin==0 ){
127 int i;
 
128 for(i=0; doRollback==0 && i<nCommitHook; i++){
129 doRollback |= aHook[i].xHook();
130 }
131 while( pAllStmt ){
132 db_finalize(pAllStmt);
133
--- src/db.c
+++ src/db.c
@@ -123,10 +123,11 @@
123 if( nBegin<=0 ) return;
124 if( rollbackFlag ) doRollback = 1;
125 nBegin--;
126 if( nBegin==0 ){
127 int i;
128 if( doRollback==0 ) leaf_do_pending_checks();
129 for(i=0; doRollback==0 && i<nCommitHook; i++){
130 doRollback |= aHook[i].xHook();
131 }
132 while( pAllStmt ){
133 db_finalize(pAllStmt);
134
+1
--- src/db.c
+++ src/db.c
@@ -123,10 +123,11 @@
123123
if( nBegin<=0 ) return;
124124
if( rollbackFlag ) doRollback = 1;
125125
nBegin--;
126126
if( nBegin==0 ){
127127
int i;
128
+ if( doRollback==0 ) leaf_do_pending_checks();
128129
for(i=0; doRollback==0 && i<nCommitHook; i++){
129130
doRollback |= aHook[i].xHook();
130131
}
131132
while( pAllStmt ){
132133
db_finalize(pAllStmt);
133134
--- src/db.c
+++ src/db.c
@@ -123,10 +123,11 @@
123 if( nBegin<=0 ) return;
124 if( rollbackFlag ) doRollback = 1;
125 nBegin--;
126 if( nBegin==0 ){
127 int i;
 
128 for(i=0; doRollback==0 && i<nCommitHook; i++){
129 doRollback |= aHook[i].xHook();
130 }
131 while( pAllStmt ){
132 db_finalize(pAllStmt);
133
--- src/db.c
+++ src/db.c
@@ -123,10 +123,11 @@
123 if( nBegin<=0 ) return;
124 if( rollbackFlag ) doRollback = 1;
125 nBegin--;
126 if( nBegin==0 ){
127 int i;
128 if( doRollback==0 ) leaf_do_pending_checks();
129 for(i=0; doRollback==0 && i<nCommitHook; i++){
130 doRollback |= aHook[i].xHook();
131 }
132 while( pAllStmt ){
133 db_finalize(pAllStmt);
134
+33 -44
--- src/descendants.c
+++ src/descendants.c
@@ -25,14 +25,16 @@
2525
2626
/*
2727
** Create a temporary table named "leaves" if it does not
2828
** already exist. Load this table with the RID of all
2929
** check-ins that are leaves which are decended from
30
-** check-in iBase. If iBase==0, find all leaves within the
31
-** entire check-in hierarchy.
30
+** check-in iBase.
3231
**
3332
** A "leaf" is a check-in that has no children in the same branch.
33
+** There is a separate permanent table LEAF that contains all leaves
34
+** in the tree. This routine is used to compute a subset of that
35
+** table consisting of leaves that are descended from a single checkin.
3436
**
3537
** The closeMode flag determines behavior associated with the "closed"
3638
** tag:
3739
**
3840
** closeMode==0 Show all leaves regardless of the "closed" tag.
@@ -55,26 +57,11 @@
5557
" rid INTEGER PRIMARY KEY"
5658
");"
5759
"DELETE FROM leaves;"
5860
);
5961
60
- /* We are checking all descendants of iBase. If iBase==0, then
61
- ** use a short-cut to find all leaves anywhere in the hierarchy.
62
- */
63
- if( iBase<=0 ){
64
- db_multi_exec(
65
- "INSERT OR IGNORE INTO leaves"
66
- " SELECT cid FROM plink"
67
- " EXCEPT"
68
- " SELECT pid FROM plink"
69
- " WHERE coalesce((SELECT value FROM tagxref"
70
- " WHERE tagid=%d AND rid=plink.pid),'trunk')"
71
- " == coalesce((SELECT value FROM tagxref"
72
- " WHERE tagid=%d AND rid=plink.cid),'trunk');",
73
- TAG_BRANCH, TAG_BRANCH
74
- );
75
- }else{
62
+ if( iBase>0 ){
7663
Bag seen; /* Descendants seen */
7764
Bag pending; /* Unpropagated descendants */
7865
Stmt q1; /* Query to find children of a check-in */
7966
Stmt isBr; /* Query to check to see if a check-in starts a new branch */
8067
Stmt ins; /* INSERT statement for a new record */
@@ -262,45 +249,44 @@
262249
** Usage: %fossil leaves ?--all? ?--closed?
263250
**
264251
** Find leaves of all branches. By default show only open leaves.
265252
** The --all flag causes all leaves (closed and open) to be shown.
266253
** The --closed flag shows only closed leaves.
254
+**
255
+** The --recompute flag causes the content of the "leaf" table in the
256
+** repository database to be recomputed.
267257
*/
268258
void leaves_cmd(void){
269259
Stmt q;
260
+ Blob sql;
270261
int showAll = find_option("all", 0, 0)!=0;
271262
int showClosed = find_option("closed", 0, 0)!=0;
263
+ int recomputeFlag = find_option("recompute",0,0)!=0;
272264
273265
db_must_be_within_tree();
274
- compute_leaves(0, showAll ? 0 : showClosed ? 2 : 1);
275
- db_prepare(&q,
276
- "%s"
277
- " AND blob.rid IN leaves"
278
- " ORDER BY event.mtime DESC",
279
- timeline_query_for_tty()
280
- );
266
+ if( recomputeFlag ) leaf_rebuild();
267
+ blob_zero(&sql);
268
+ blob_append(&sql, timeline_query_for_tty(), -1);
269
+ blob_appendf(&sql, " AND blob.rid IN leaf");
270
+ if( showClosed ){
271
+ blob_appendf(&sql," AND %z", leaf_is_closed_sql("blob.rid"));
272
+ }else if( !showAll ){
273
+ blob_appendf(&sql," AND NOT %z", leaf_is_closed_sql("blob.rid"));
274
+ }
275
+ db_prepare(&q, "%s ORDER BY event.mtime DESC", blob_str(&sql));
276
+ blob_reset(&sql);
281277
print_timeline(&q, 2000);
282278
db_finalize(&q);
283279
}
284280
285
-/*
286
-** This routine is called while for each check-in that is rendered by
287
-** the "leaves" page. Add some additional hyperlink to show the
288
-** ancestors of the leaf.
289
-*/
290
-static void leaves_extra(int rid){
291
- if( g.okHistory ){
292
- @ <a href="%s(g.zTop)/timeline?p=%d(rid)">[timeline]</a>
293
- }
294
-}
295
-
296281
/*
297282
** WEBPAGE: leaves
298283
**
299284
** Find leaves of all branches.
300285
*/
301286
void leaves_page(void){
287
+ Blob sql;
302288
Stmt q;
303289
int showAll = P("all")!=0;
304290
int showClosed = P("closed")!=0;
305291
306292
login_check_credentials();
@@ -315,11 +301,10 @@
315301
if( showClosed || showAll ){
316302
style_submenu_element("Open", "Open", "leaves");
317303
}
318304
style_header("Leaves");
319305
login_anonymous_available();
320
- compute_leaves(0, showAll ? 0 : showClosed ? 2 : 1);
321306
style_sidebox_begin("Nomenclature:", "33%");
322307
@ <ol>
323308
@ <li> A <div class="sideboxDescribed">leaf</div>
324309
@ is a check-in with no descendants in the same branch.</li>
325310
@ <li> An <div class="sideboxDescribed">open leaf</div>
@@ -336,17 +321,21 @@
336321
}else if( showClosed ){
337322
@ <h1>Closed leaves:</h1>
338323
}else{
339324
@ <h1>Open leaves:</h1>
340325
}
341
- db_prepare(&q,
342
- "%s"
343
- " AND blob.rid IN leaves"
344
- " ORDER BY event.mtime DESC",
345
- timeline_query_for_www()
346
- );
347
- www_print_timeline(&q, TIMELINE_LEAFONLY, 0, 0, leaves_extra);
326
+ blob_zero(&sql);
327
+ blob_append(&sql, timeline_query_for_www(), -1);
328
+ blob_appendf(&sql, " AND blob.rid IN leaf");
329
+ if( showClosed ){
330
+ blob_appendf(&sql," AND %z", leaf_is_closed_sql("blob.rid"));
331
+ }else if( !showAll ){
332
+ blob_appendf(&sql," AND NOT %z", leaf_is_closed_sql("blob.rid"));
333
+ }
334
+ db_prepare(&q, "%s ORDER BY event.mtime DESC", blob_str(&sql));
335
+ blob_reset(&sql);
336
+ www_print_timeline(&q, TIMELINE_LEAFONLY, 0, 0, 0);
348337
db_finalize(&q);
349338
@ <br />
350339
@ <script type="text/JavaScript">
351340
@ function xin(id){
352341
@ }
353342
--- src/descendants.c
+++ src/descendants.c
@@ -25,14 +25,16 @@
25
26 /*
27 ** Create a temporary table named "leaves" if it does not
28 ** already exist. Load this table with the RID of all
29 ** check-ins that are leaves which are decended from
30 ** check-in iBase. If iBase==0, find all leaves within the
31 ** entire check-in hierarchy.
32 **
33 ** A "leaf" is a check-in that has no children in the same branch.
 
 
 
34 **
35 ** The closeMode flag determines behavior associated with the "closed"
36 ** tag:
37 **
38 ** closeMode==0 Show all leaves regardless of the "closed" tag.
@@ -55,26 +57,11 @@
55 " rid INTEGER PRIMARY KEY"
56 ");"
57 "DELETE FROM leaves;"
58 );
59
60 /* We are checking all descendants of iBase. If iBase==0, then
61 ** use a short-cut to find all leaves anywhere in the hierarchy.
62 */
63 if( iBase<=0 ){
64 db_multi_exec(
65 "INSERT OR IGNORE INTO leaves"
66 " SELECT cid FROM plink"
67 " EXCEPT"
68 " SELECT pid FROM plink"
69 " WHERE coalesce((SELECT value FROM tagxref"
70 " WHERE tagid=%d AND rid=plink.pid),'trunk')"
71 " == coalesce((SELECT value FROM tagxref"
72 " WHERE tagid=%d AND rid=plink.cid),'trunk');",
73 TAG_BRANCH, TAG_BRANCH
74 );
75 }else{
76 Bag seen; /* Descendants seen */
77 Bag pending; /* Unpropagated descendants */
78 Stmt q1; /* Query to find children of a check-in */
79 Stmt isBr; /* Query to check to see if a check-in starts a new branch */
80 Stmt ins; /* INSERT statement for a new record */
@@ -262,45 +249,44 @@
262 ** Usage: %fossil leaves ?--all? ?--closed?
263 **
264 ** Find leaves of all branches. By default show only open leaves.
265 ** The --all flag causes all leaves (closed and open) to be shown.
266 ** The --closed flag shows only closed leaves.
 
 
 
267 */
268 void leaves_cmd(void){
269 Stmt q;
 
270 int showAll = find_option("all", 0, 0)!=0;
271 int showClosed = find_option("closed", 0, 0)!=0;
 
272
273 db_must_be_within_tree();
274 compute_leaves(0, showAll ? 0 : showClosed ? 2 : 1);
275 db_prepare(&q,
276 "%s"
277 " AND blob.rid IN leaves"
278 " ORDER BY event.mtime DESC",
279 timeline_query_for_tty()
280 );
 
 
 
 
281 print_timeline(&q, 2000);
282 db_finalize(&q);
283 }
284
285 /*
286 ** This routine is called while for each check-in that is rendered by
287 ** the "leaves" page. Add some additional hyperlink to show the
288 ** ancestors of the leaf.
289 */
290 static void leaves_extra(int rid){
291 if( g.okHistory ){
292 @ <a href="%s(g.zTop)/timeline?p=%d(rid)">[timeline]</a>
293 }
294 }
295
296 /*
297 ** WEBPAGE: leaves
298 **
299 ** Find leaves of all branches.
300 */
301 void leaves_page(void){
 
302 Stmt q;
303 int showAll = P("all")!=0;
304 int showClosed = P("closed")!=0;
305
306 login_check_credentials();
@@ -315,11 +301,10 @@
315 if( showClosed || showAll ){
316 style_submenu_element("Open", "Open", "leaves");
317 }
318 style_header("Leaves");
319 login_anonymous_available();
320 compute_leaves(0, showAll ? 0 : showClosed ? 2 : 1);
321 style_sidebox_begin("Nomenclature:", "33%");
322 @ <ol>
323 @ <li> A <div class="sideboxDescribed">leaf</div>
324 @ is a check-in with no descendants in the same branch.</li>
325 @ <li> An <div class="sideboxDescribed">open leaf</div>
@@ -336,17 +321,21 @@
336 }else if( showClosed ){
337 @ <h1>Closed leaves:</h1>
338 }else{
339 @ <h1>Open leaves:</h1>
340 }
341 db_prepare(&q,
342 "%s"
343 " AND blob.rid IN leaves"
344 " ORDER BY event.mtime DESC",
345 timeline_query_for_www()
346 );
347 www_print_timeline(&q, TIMELINE_LEAFONLY, 0, 0, leaves_extra);
 
 
 
 
348 db_finalize(&q);
349 @ <br />
350 @ <script type="text/JavaScript">
351 @ function xin(id){
352 @ }
353
--- src/descendants.c
+++ src/descendants.c
@@ -25,14 +25,16 @@
25
26 /*
27 ** Create a temporary table named "leaves" if it does not
28 ** already exist. Load this table with the RID of all
29 ** check-ins that are leaves which are decended from
30 ** check-in iBase.
 
31 **
32 ** A "leaf" is a check-in that has no children in the same branch.
33 ** There is a separate permanent table LEAF that contains all leaves
34 ** in the tree. This routine is used to compute a subset of that
35 ** table consisting of leaves that are descended from a single checkin.
36 **
37 ** The closeMode flag determines behavior associated with the "closed"
38 ** tag:
39 **
40 ** closeMode==0 Show all leaves regardless of the "closed" tag.
@@ -55,26 +57,11 @@
57 " rid INTEGER PRIMARY KEY"
58 ");"
59 "DELETE FROM leaves;"
60 );
61
62 if( iBase>0 ){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63 Bag seen; /* Descendants seen */
64 Bag pending; /* Unpropagated descendants */
65 Stmt q1; /* Query to find children of a check-in */
66 Stmt isBr; /* Query to check to see if a check-in starts a new branch */
67 Stmt ins; /* INSERT statement for a new record */
@@ -262,45 +249,44 @@
249 ** Usage: %fossil leaves ?--all? ?--closed?
250 **
251 ** Find leaves of all branches. By default show only open leaves.
252 ** The --all flag causes all leaves (closed and open) to be shown.
253 ** The --closed flag shows only closed leaves.
254 **
255 ** The --recompute flag causes the content of the "leaf" table in the
256 ** repository database to be recomputed.
257 */
258 void leaves_cmd(void){
259 Stmt q;
260 Blob sql;
261 int showAll = find_option("all", 0, 0)!=0;
262 int showClosed = find_option("closed", 0, 0)!=0;
263 int recomputeFlag = find_option("recompute",0,0)!=0;
264
265 db_must_be_within_tree();
266 if( recomputeFlag ) leaf_rebuild();
267 blob_zero(&sql);
268 blob_append(&sql, timeline_query_for_tty(), -1);
269 blob_appendf(&sql, " AND blob.rid IN leaf");
270 if( showClosed ){
271 blob_appendf(&sql," AND %z", leaf_is_closed_sql("blob.rid"));
272 }else if( !showAll ){
273 blob_appendf(&sql," AND NOT %z", leaf_is_closed_sql("blob.rid"));
274 }
275 db_prepare(&q, "%s ORDER BY event.mtime DESC", blob_str(&sql));
276 blob_reset(&sql);
277 print_timeline(&q, 2000);
278 db_finalize(&q);
279 }
280
 
 
 
 
 
 
 
 
 
 
 
281 /*
282 ** WEBPAGE: leaves
283 **
284 ** Find leaves of all branches.
285 */
286 void leaves_page(void){
287 Blob sql;
288 Stmt q;
289 int showAll = P("all")!=0;
290 int showClosed = P("closed")!=0;
291
292 login_check_credentials();
@@ -315,11 +301,10 @@
301 if( showClosed || showAll ){
302 style_submenu_element("Open", "Open", "leaves");
303 }
304 style_header("Leaves");
305 login_anonymous_available();
 
306 style_sidebox_begin("Nomenclature:", "33%");
307 @ <ol>
308 @ <li> A <div class="sideboxDescribed">leaf</div>
309 @ is a check-in with no descendants in the same branch.</li>
310 @ <li> An <div class="sideboxDescribed">open leaf</div>
@@ -336,17 +321,21 @@
321 }else if( showClosed ){
322 @ <h1>Closed leaves:</h1>
323 }else{
324 @ <h1>Open leaves:</h1>
325 }
326 blob_zero(&sql);
327 blob_append(&sql, timeline_query_for_www(), -1);
328 blob_appendf(&sql, " AND blob.rid IN leaf");
329 if( showClosed ){
330 blob_appendf(&sql," AND %z", leaf_is_closed_sql("blob.rid"));
331 }else if( !showAll ){
332 blob_appendf(&sql," AND NOT %z", leaf_is_closed_sql("blob.rid"));
333 }
334 db_prepare(&q, "%s ORDER BY event.mtime DESC", blob_str(&sql));
335 blob_reset(&sql);
336 www_print_timeline(&q, TIMELINE_LEAFONLY, 0, 0, 0);
337 db_finalize(&q);
338 @ <br />
339 @ <script type="text/JavaScript">
340 @ function xin(id){
341 @ }
342
+4 -2
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -70,12 +70,14 @@
7070
}
7171
7272
/* Compute and output the differences */
7373
blob_zero(&out);
7474
text_diff(pFile1, &file2, &out, 5, ignoreEolWs);
75
- printf("--- %s\n+++ %s\n", zName, zName2);
76
- printf("%s\n", blob_str(&out));
75
+ if( blob_size(&out) ){
76
+ printf("--- %s\n+++ %s\n", zName, zName2);
77
+ printf("%s\n", blob_str(&out));
78
+ }
7779
7880
/* Release memory resources */
7981
blob_reset(&file2);
8082
blob_reset(&out);
8183
}else{
8284
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -70,12 +70,14 @@
70 }
71
72 /* Compute and output the differences */
73 blob_zero(&out);
74 text_diff(pFile1, &file2, &out, 5, ignoreEolWs);
75 printf("--- %s\n+++ %s\n", zName, zName2);
76 printf("%s\n", blob_str(&out));
 
 
77
78 /* Release memory resources */
79 blob_reset(&file2);
80 blob_reset(&out);
81 }else{
82
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -70,12 +70,14 @@
70 }
71
72 /* Compute and output the differences */
73 blob_zero(&out);
74 text_diff(pFile1, &file2, &out, 5, ignoreEolWs);
75 if( blob_size(&out) ){
76 printf("--- %s\n+++ %s\n", zName, zName2);
77 printf("%s\n", blob_str(&out));
78 }
79
80 /* Release memory resources */
81 blob_reset(&file2);
82 blob_reset(&out);
83 }else{
84
+4 -2
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -70,12 +70,14 @@
7070
}
7171
7272
/* Compute and output the differences */
7373
blob_zero(&out);
7474
text_diff(pFile1, &file2, &out, 5, ignoreEolWs);
75
- printf("--- %s\n+++ %s\n", zName, zName2);
76
- printf("%s\n", blob_str(&out));
75
+ if( blob_size(&out) ){
76
+ printf("--- %s\n+++ %s\n", zName, zName2);
77
+ printf("%s\n", blob_str(&out));
78
+ }
7779
7880
/* Release memory resources */
7981
blob_reset(&file2);
8082
blob_reset(&out);
8183
}else{
8284
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -70,12 +70,14 @@
70 }
71
72 /* Compute and output the differences */
73 blob_zero(&out);
74 text_diff(pFile1, &file2, &out, 5, ignoreEolWs);
75 printf("--- %s\n+++ %s\n", zName, zName2);
76 printf("%s\n", blob_str(&out));
 
 
77
78 /* Release memory resources */
79 blob_reset(&file2);
80 blob_reset(&out);
81 }else{
82
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -70,12 +70,14 @@
70 }
71
72 /* Compute and output the differences */
73 blob_zero(&out);
74 text_diff(pFile1, &file2, &out, 5, ignoreEolWs);
75 if( blob_size(&out) ){
76 printf("--- %s\n+++ %s\n", zName, zName2);
77 printf("%s\n", blob_str(&out));
78 }
79
80 /* Release memory resources */
81 blob_reset(&file2);
82 blob_reset(&out);
83 }else{
84
+6 -4
--- src/graph.c
+++ src/graph.c
@@ -21,11 +21,10 @@
2121
#include "graph.h"
2222
#include <assert.h>
2323
2424
#if INTERFACE
2525
26
-#define GR_MAX_PARENT 10 /* Max number of parents for any one node */
2726
#define GR_MAX_RAIL 32 /* Max number of "rails" to display */
2827
2928
/* The graph appears vertically beside a timeline. Each row in the
3029
** timeline corresponds to a row in the graph. GraphRow.idx is 0 for
3130
** the top-most row and increases moving down. Hence (in the absence of
@@ -32,11 +31,11 @@
3231
** time skew) parents have a larger index than their children.
3332
*/
3433
struct GraphRow {
3534
int rid; /* The rid for the check-in */
3635
i8 nParent; /* Number of parents */
37
- int aParent[GR_MAX_PARENT]; /* Array of parents. 0 element is primary .*/
36
+ int *aParent; /* Array of parents. 0 element is primary .*/
3837
char *zBranch; /* Branch name */
3938
char *zBgClr; /* Background Color */
4039
4140
GraphRow *pNext; /* Next row down in the list of all rows */
4241
GraphRow *pPrev; /* Previous row */
@@ -167,14 +166,17 @@
167166
int *aParent, /* Array of parents */
168167
const char *zBranch, /* Branch for this check-in */
169168
const char *zBgClr /* Background color. NULL or "" for white. */
170169
){
171170
GraphRow *pRow;
171
+ int nByte;
172172
173173
if( p->nErr ) return 0;
174
- if( nParent>GR_MAX_PARENT ){ p->nErr++; return 0; }
175
- pRow = (GraphRow*)safeMalloc( sizeof(GraphRow) );
174
+ nByte = sizeof(GraphRow);
175
+ nByte += sizeof(pRow->aParent[0])*nParent;
176
+ pRow = (GraphRow*)safeMalloc( nByte );
177
+ pRow->aParent = (int*)&pRow[1];
176178
pRow->rid = rid;
177179
pRow->nParent = nParent;
178180
pRow->zBranch = persistBranchName(p, zBranch);
179181
if( zBgClr==0 || zBgClr[0]==0 ) zBgClr = "white";
180182
pRow->zBgClr = persistBranchName(p, zBgClr);
181183
182184
ADDED src/leaf.c
--- src/graph.c
+++ src/graph.c
@@ -21,11 +21,10 @@
21 #include "graph.h"
22 #include <assert.h>
23
24 #if INTERFACE
25
26 #define GR_MAX_PARENT 10 /* Max number of parents for any one node */
27 #define GR_MAX_RAIL 32 /* Max number of "rails" to display */
28
29 /* The graph appears vertically beside a timeline. Each row in the
30 ** timeline corresponds to a row in the graph. GraphRow.idx is 0 for
31 ** the top-most row and increases moving down. Hence (in the absence of
@@ -32,11 +31,11 @@
32 ** time skew) parents have a larger index than their children.
33 */
34 struct GraphRow {
35 int rid; /* The rid for the check-in */
36 i8 nParent; /* Number of parents */
37 int aParent[GR_MAX_PARENT]; /* Array of parents. 0 element is primary .*/
38 char *zBranch; /* Branch name */
39 char *zBgClr; /* Background Color */
40
41 GraphRow *pNext; /* Next row down in the list of all rows */
42 GraphRow *pPrev; /* Previous row */
@@ -167,14 +166,17 @@
167 int *aParent, /* Array of parents */
168 const char *zBranch, /* Branch for this check-in */
169 const char *zBgClr /* Background color. NULL or "" for white. */
170 ){
171 GraphRow *pRow;
 
172
173 if( p->nErr ) return 0;
174 if( nParent>GR_MAX_PARENT ){ p->nErr++; return 0; }
175 pRow = (GraphRow*)safeMalloc( sizeof(GraphRow) );
 
 
176 pRow->rid = rid;
177 pRow->nParent = nParent;
178 pRow->zBranch = persistBranchName(p, zBranch);
179 if( zBgClr==0 || zBgClr[0]==0 ) zBgClr = "white";
180 pRow->zBgClr = persistBranchName(p, zBgClr);
181
182 DDED src/leaf.c
--- src/graph.c
+++ src/graph.c
@@ -21,11 +21,10 @@
21 #include "graph.h"
22 #include <assert.h>
23
24 #if INTERFACE
25
 
26 #define GR_MAX_RAIL 32 /* Max number of "rails" to display */
27
28 /* The graph appears vertically beside a timeline. Each row in the
29 ** timeline corresponds to a row in the graph. GraphRow.idx is 0 for
30 ** the top-most row and increases moving down. Hence (in the absence of
@@ -32,11 +31,11 @@
31 ** time skew) parents have a larger index than their children.
32 */
33 struct GraphRow {
34 int rid; /* The rid for the check-in */
35 i8 nParent; /* Number of parents */
36 int *aParent; /* Array of parents. 0 element is primary .*/
37 char *zBranch; /* Branch name */
38 char *zBgClr; /* Background Color */
39
40 GraphRow *pNext; /* Next row down in the list of all rows */
41 GraphRow *pPrev; /* Previous row */
@@ -167,14 +166,17 @@
166 int *aParent, /* Array of parents */
167 const char *zBranch, /* Branch for this check-in */
168 const char *zBgClr /* Background color. NULL or "" for white. */
169 ){
170 GraphRow *pRow;
171 int nByte;
172
173 if( p->nErr ) return 0;
174 nByte = sizeof(GraphRow);
175 nByte += sizeof(pRow->aParent[0])*nParent;
176 pRow = (GraphRow*)safeMalloc( nByte );
177 pRow->aParent = (int*)&pRow[1];
178 pRow->rid = rid;
179 pRow->nParent = nParent;
180 pRow->zBranch = persistBranchName(p, zBranch);
181 if( zBgClr==0 || zBgClr[0]==0 ) zBgClr = "white";
182 pRow->zBgClr = persistBranchName(p, zBgClr);
183
184 DDED src/leaf.c
+1
--- a/src/leaf.c
+++ b/src/leaf.c
@@ -0,0 +1 @@
1
+"rimary child is one w WHERE cid=:rid"
--- a/src/leaf.c
+++ b/src/leaf.c
@@ -0,0 +1 @@
 
--- a/src/leaf.c
+++ b/src/leaf.c
@@ -0,0 +1 @@
1 "rimary child is one w WHERE cid=:rid"
+11 -1
--- src/main.mk
+++ src/main.mk
@@ -45,10 +45,11 @@
4545
$(SRCDIR)/http_socket.c \
4646
$(SRCDIR)/http_ssl.c \
4747
$(SRCDIR)/http_transport.c \
4848
$(SRCDIR)/import.c \
4949
$(SRCDIR)/info.c \
50
+ $(SRCDIR)/leaf.c \
5051
$(SRCDIR)/login.c \
5152
$(SRCDIR)/main.c \
5253
$(SRCDIR)/manifest.c \
5354
$(SRCDIR)/md5.c \
5455
$(SRCDIR)/merge.c \
@@ -124,10 +125,11 @@
124125
$(OBJDIR)/http_socket_.c \
125126
$(OBJDIR)/http_ssl_.c \
126127
$(OBJDIR)/http_transport_.c \
127128
$(OBJDIR)/import_.c \
128129
$(OBJDIR)/info_.c \
130
+ $(OBJDIR)/leaf_.c \
129131
$(OBJDIR)/login_.c \
130132
$(OBJDIR)/main_.c \
131133
$(OBJDIR)/manifest_.c \
132134
$(OBJDIR)/md5_.c \
133135
$(OBJDIR)/merge_.c \
@@ -203,10 +205,11 @@
203205
$(OBJDIR)/http_socket.o \
204206
$(OBJDIR)/http_ssl.o \
205207
$(OBJDIR)/http_transport.o \
206208
$(OBJDIR)/import.o \
207209
$(OBJDIR)/info.o \
210
+ $(OBJDIR)/leaf.o \
208211
$(OBJDIR)/login.o \
209212
$(OBJDIR)/main.o \
210213
$(OBJDIR)/manifest.o \
211214
$(OBJDIR)/md5.o \
212215
$(OBJDIR)/merge.o \
@@ -295,11 +298,11 @@
295298
296299
297300
$(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
298301
$(OBJDIR)/mkindex $(TRANS_SRC) >$@
299302
$(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
300
- $(OBJDIR)/makeheaders $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
303
+ $(OBJDIR)/makeheaders $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
301304
touch $(OBJDIR)/headers
302305
$(OBJDIR)/headers: Makefile
303306
Makefile:
304307
$(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
305308
$(OBJDIR)/translate $(SRCDIR)/add.c >$(OBJDIR)/add_.c
@@ -551,10 +554,17 @@
551554
552555
$(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
553556
$(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
554557
555558
$(OBJDIR)/info.h: $(OBJDIR)/headers
559
+$(OBJDIR)/leaf_.c: $(SRCDIR)/leaf.c $(OBJDIR)/translate
560
+ $(OBJDIR)/translate $(SRCDIR)/leaf.c >$(OBJDIR)/leaf_.c
561
+
562
+$(OBJDIR)/leaf.o: $(OBJDIR)/leaf_.c $(OBJDIR)/leaf.h $(SRCDIR)/config.h
563
+ $(XTCC) -o $(OBJDIR)/leaf.o -c $(OBJDIR)/leaf_.c
564
+
565
+$(OBJDIR)/leaf.h: $(OBJDIR)/headers
556566
$(OBJDIR)/login_.c: $(SRCDIR)/login.c $(OBJDIR)/translate
557567
$(OBJDIR)/translate $(SRCDIR)/login.c >$(OBJDIR)/login_.c
558568
559569
$(OBJDIR)/login.o: $(OBJDIR)/login_.c $(OBJDIR)/login.h $(SRCDIR)/config.h
560570
$(XTCC) -o $(OBJDIR)/login.o -c $(OBJDIR)/login_.c
561571
--- src/main.mk
+++ src/main.mk
@@ -45,10 +45,11 @@
45 $(SRCDIR)/http_socket.c \
46 $(SRCDIR)/http_ssl.c \
47 $(SRCDIR)/http_transport.c \
48 $(SRCDIR)/import.c \
49 $(SRCDIR)/info.c \
 
50 $(SRCDIR)/login.c \
51 $(SRCDIR)/main.c \
52 $(SRCDIR)/manifest.c \
53 $(SRCDIR)/md5.c \
54 $(SRCDIR)/merge.c \
@@ -124,10 +125,11 @@
124 $(OBJDIR)/http_socket_.c \
125 $(OBJDIR)/http_ssl_.c \
126 $(OBJDIR)/http_transport_.c \
127 $(OBJDIR)/import_.c \
128 $(OBJDIR)/info_.c \
 
129 $(OBJDIR)/login_.c \
130 $(OBJDIR)/main_.c \
131 $(OBJDIR)/manifest_.c \
132 $(OBJDIR)/md5_.c \
133 $(OBJDIR)/merge_.c \
@@ -203,10 +205,11 @@
203 $(OBJDIR)/http_socket.o \
204 $(OBJDIR)/http_ssl.o \
205 $(OBJDIR)/http_transport.o \
206 $(OBJDIR)/import.o \
207 $(OBJDIR)/info.o \
 
208 $(OBJDIR)/login.o \
209 $(OBJDIR)/main.o \
210 $(OBJDIR)/manifest.o \
211 $(OBJDIR)/md5.o \
212 $(OBJDIR)/merge.o \
@@ -295,11 +298,11 @@
295
296
297 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
298 $(OBJDIR)/mkindex $(TRANS_SRC) >$@
299 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
300 $(OBJDIR)/makeheaders $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
301 touch $(OBJDIR)/headers
302 $(OBJDIR)/headers: Makefile
303 Makefile:
304 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
305 $(OBJDIR)/translate $(SRCDIR)/add.c >$(OBJDIR)/add_.c
@@ -551,10 +554,17 @@
551
552 $(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
553 $(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
554
555 $(OBJDIR)/info.h: $(OBJDIR)/headers
 
 
 
 
 
 
 
556 $(OBJDIR)/login_.c: $(SRCDIR)/login.c $(OBJDIR)/translate
557 $(OBJDIR)/translate $(SRCDIR)/login.c >$(OBJDIR)/login_.c
558
559 $(OBJDIR)/login.o: $(OBJDIR)/login_.c $(OBJDIR)/login.h $(SRCDIR)/config.h
560 $(XTCC) -o $(OBJDIR)/login.o -c $(OBJDIR)/login_.c
561
--- src/main.mk
+++ src/main.mk
@@ -45,10 +45,11 @@
45 $(SRCDIR)/http_socket.c \
46 $(SRCDIR)/http_ssl.c \
47 $(SRCDIR)/http_transport.c \
48 $(SRCDIR)/import.c \
49 $(SRCDIR)/info.c \
50 $(SRCDIR)/leaf.c \
51 $(SRCDIR)/login.c \
52 $(SRCDIR)/main.c \
53 $(SRCDIR)/manifest.c \
54 $(SRCDIR)/md5.c \
55 $(SRCDIR)/merge.c \
@@ -124,10 +125,11 @@
125 $(OBJDIR)/http_socket_.c \
126 $(OBJDIR)/http_ssl_.c \
127 $(OBJDIR)/http_transport_.c \
128 $(OBJDIR)/import_.c \
129 $(OBJDIR)/info_.c \
130 $(OBJDIR)/leaf_.c \
131 $(OBJDIR)/login_.c \
132 $(OBJDIR)/main_.c \
133 $(OBJDIR)/manifest_.c \
134 $(OBJDIR)/md5_.c \
135 $(OBJDIR)/merge_.c \
@@ -203,10 +205,11 @@
205 $(OBJDIR)/http_socket.o \
206 $(OBJDIR)/http_ssl.o \
207 $(OBJDIR)/http_transport.o \
208 $(OBJDIR)/import.o \
209 $(OBJDIR)/info.o \
210 $(OBJDIR)/leaf.o \
211 $(OBJDIR)/login.o \
212 $(OBJDIR)/main.o \
213 $(OBJDIR)/manifest.o \
214 $(OBJDIR)/md5.o \
215 $(OBJDIR)/merge.o \
@@ -295,11 +298,11 @@
298
299
300 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
301 $(OBJDIR)/mkindex $(TRANS_SRC) >$@
302 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
303 $(OBJDIR)/makeheaders $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
304 touch $(OBJDIR)/headers
305 $(OBJDIR)/headers: Makefile
306 Makefile:
307 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
308 $(OBJDIR)/translate $(SRCDIR)/add.c >$(OBJDIR)/add_.c
@@ -551,10 +554,17 @@
554
555 $(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
556 $(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
557
558 $(OBJDIR)/info.h: $(OBJDIR)/headers
559 $(OBJDIR)/leaf_.c: $(SRCDIR)/leaf.c $(OBJDIR)/translate
560 $(OBJDIR)/translate $(SRCDIR)/leaf.c >$(OBJDIR)/leaf_.c
561
562 $(OBJDIR)/leaf.o: $(OBJDIR)/leaf_.c $(OBJDIR)/leaf.h $(SRCDIR)/config.h
563 $(XTCC) -o $(OBJDIR)/leaf.o -c $(OBJDIR)/leaf_.c
564
565 $(OBJDIR)/leaf.h: $(OBJDIR)/headers
566 $(OBJDIR)/login_.c: $(SRCDIR)/login.c $(OBJDIR)/translate
567 $(OBJDIR)/translate $(SRCDIR)/login.c >$(OBJDIR)/login_.c
568
569 $(OBJDIR)/login.o: $(OBJDIR)/login_.c $(OBJDIR)/login.h $(SRCDIR)/config.h
570 $(XTCC) -o $(OBJDIR)/login.o -c $(OBJDIR)/login_.c
571
--- src/makeheaders.html
+++ src/makeheaders.html
@@ -43,11 +43,11 @@
4343
<li><a href=makeheaders.html#H0015>4.0 Using Makeheaders To Generate Documentation</a>
4444
4545
<li><a href=makeheaders.html#H0016>5.0 Compiling The Makeheaders Program</a>
4646
4747
<li><a href=makeheaders.html#H0017>6.0 Summary And Conclusion</a>
48
-</ul><a name=H0002>
48
+</ul><a name="H0002"></a>
4949
<h2>1.0 Background</h2>
5050
5151
<p>
5252
A piece of C source code can be one of two things:
5353
a <em>declaration</em> or a <em>definition</em>.
@@ -98,11 +98,11 @@
9898
source code when the .c file is compiled.
9999
In this way, the .h files define the interface to a subsystem and
100100
the .c files define how the subsystem is implemented.
101101
</p>
102102
103
-<a name=H0003>
103
+<a name="H0003"></a>
104104
<h3>1.1 Problems With The Traditional Approach</h3>
105105
106106
<p>
107107
As the art of computer programming continues to advance, and the size
108108
and complexity of programs continues to swell, the traditional C
@@ -152,11 +152,11 @@
152152
especially when the declarations involved are spread out over several
153153
files.
154154
</ol>
155155
</p>
156156
157
-<a name=H0004>
157
+<a name="H0004"></a>
158158
<h3>1.2 The Makeheaders Solution</h3>
159159
160160
<p>
161161
The makeheaders program is designed to ameliorate the problems associated
162162
with the traditional C programming model by automatically generating
@@ -215,11 +215,11 @@
215215
And the burden of running makeheaders is light.
216216
It will easily process tens of thousands of lines of source
217217
code per second.
218218
</p>
219219
220
-<a name=H0005>
220
+<a name="H0005"></a>
221221
<h2>2.0 Running The Makeheaders Program</h2>
222222
223223
<p>
224224
The makeheaders program is very easy to run.
225225
If you have a collection of C source code and include files in the working
@@ -363,11 +363,11 @@
363363
Or, you can insert the special option ``--'' on the command
364364
line to cause all subsequent command line arguments to be treated as
365365
filenames even if their names beginn with ``-''.
366366
</p>
367367
368
-<a name=H0006>
368
+<a name="H0006"></a>
369369
<h2>3.0 Preparing Source Files For Use With Makeheaders</h2>
370370
371371
<p>
372372
Very little has to be done to prepare source files for use with
373373
makeheaders since makeheaders will read and understand ordinary
@@ -375,11 +375,11 @@
375375
But it is important that you structure your files in a way that
376376
makes sense in the makeheaders context.
377377
This section will describe several typical uses of makeheaders.
378378
</p>
379379
380
-<a name=H0007>
380
+<a name="H0007"></a>
381381
<h3>3.1 The Basic Setup</h3>
382382
383383
<p>
384384
The simpliest way to use makeheaders is to put all definitions in
385385
one or more .c files and all structure and type declarations in
@@ -474,11 +474,11 @@
474474
But that is not a problem.
475475
The makeheaders program will recognize and ignore any files it
476476
has previously generated that show up on its input list.
477477
</p>
478478
479
-<a name=H0008>
479
+<a name="H0008"></a>
480480
<h3>3.2 What Declarations Get Copied</h3>
481481
482482
<p>
483483
The following list details all of the code constructs that makeheaders
484484
will extract and place in
@@ -577,11 +577,11 @@
577577
If the declaration of some structure ``X'' requires a prior
578578
declaration of another structure ``Y'', then Y will appear
579579
first in the generated headers.
580580
</p>
581581
582
-<a name=H0009>
582
+<a name="H0009"></a>
583583
<h3>3.3 How To Avoid Having To Write Any Header Files</h3>
584584
585585
<p>
586586
In my experience, large projects work better if all of the manually
587587
written code is placed in .c files and all .h files are generated
@@ -644,11 +644,11 @@
644644
come from.
645645
You should also note that a single .c file can contain as many
646646
``#if INTERFACE'' regions as desired.
647647
</p>
648648
649
-<a name=H0010>
649
+<a name="H0010"></a>
650650
<h3>3.4 Designating Declarations For Export</h3>
651651
652652
<p>
653653
In a large project, one will often construct a hierarchy of
654654
interfaces.
@@ -733,11 +733,11 @@
733733
(The ``#if INTERFACE'' can also be used in both .h and .c files,
734734
but since it's use in a .h file would be redundant, we haven't mentioned
735735
it before.)
736736
</p>
737737
738
-<a name=H0011>
738
+<a name="H0011"></a>
739739
<h3>3.5 Local declarations processed by makeheaders</h3>
740740
741741
<p>
742742
Structure declarations and typedefs that appear in .c files are normally
743743
ignored by makeheaders.
@@ -771,11 +771,11 @@
771771
blocks described above, except that makeheaders insures that the
772772
objects declared in a LOCAL_INTERFACE are only visible to the
773773
file containing the LOCAL_INTERFACE.
774774
</p>
775775
776
-<a name=H0012>
776
+<a name="H0012"></a>
777777
<h3>3.6 Using Makeheaders With C++ Code</h3>
778778
779779
<p>
780780
You can use makeheaders to generate header files for C++ code, in
781781
addition to C.
@@ -870,11 +870,11 @@
870870
Makeheaders does not understand more recent
871871
C++ syntax such as templates and namespaces.
872872
Perhaps these issued will be addressed in future revisions.
873873
</p>
874874
875
-<a name=H0013>
875
+<a name="H0013"></a>
876876
<h3>3.7 Conditional Compilation</h3>
877877
878878
<p>
879879
The makeheaders program understands and tracks the conditional
880880
compilation constructs in the source code files it scans.
@@ -903,11 +903,11 @@
903903
#endif
904904
</pre>
905905
and treats the enclosed text as a comment.
906906
</p>
907907
908
-<a name=H0014>
908
+<a name="H0014"></a>
909909
<h3>3.8 Caveats</h3>
910910
911911
<p>
912912
The makeheaders system is designed to be robust
913913
but it is possible for a devious programmer to fool the system,
@@ -973,11 +973,11 @@
973973
As long as you avoid excessive cleverness, makeheaders will
974974
probably be able to figure out what you want and will do the right
975975
thing.
976976
</p>
977977
978
-<a name=H0015>
978
+<a name="H0015"></a>
979979
<h2>4.0 Using Makeheaders To Generate Documentation</h2>
980980
981981
<p>
982982
Many people have observed the advantages of generating program
983983
documentation directly from the source code:
@@ -1037,11 +1037,11 @@
10371037
The exact output format will not be described here.
10381038
It is simple to understand and parse and should be obvious to
10391039
anyone who inspects some sample output.
10401040
</p>
10411041
1042
-<a name=H0016>
1042
+<a name="H0016"></a>
10431043
<h2>5.0 Compiling The Makeheaders Program</h2>
10441044
10451045
<p>
10461046
The source code for makeheaders is a single file of ANSI-C code,
10471047
less than 3000 lines in length.
@@ -1050,11 +1050,11 @@
10501050
and on most operating systems.
10511051
It is known to compile using several variations of GCC for Unix
10521052
as well as Cygwin32 and MSVC 5.0 for Win32.
10531053
</p>
10541054
1055
-<a name=H0017>
1055
+<a name="H0017"></a>
10561056
<h2>6.0 Summary And Conclusion</h2>
10571057
10581058
<p>
10591059
The makeheaders program will automatically generate a minimal header file
10601060
for each of a set of C source and header files, and will
10611061
--- src/makeheaders.html
+++ src/makeheaders.html
@@ -43,11 +43,11 @@
43 <li><a href=makeheaders.html#H0015>4.0 Using Makeheaders To Generate Documentation</a>
44
45 <li><a href=makeheaders.html#H0016>5.0 Compiling The Makeheaders Program</a>
46
47 <li><a href=makeheaders.html#H0017>6.0 Summary And Conclusion</a>
48 </ul><a name=H0002>
49 <h2>1.0 Background</h2>
50
51 <p>
52 A piece of C source code can be one of two things:
53 a <em>declaration</em> or a <em>definition</em>.
@@ -98,11 +98,11 @@
98 source code when the .c file is compiled.
99 In this way, the .h files define the interface to a subsystem and
100 the .c files define how the subsystem is implemented.
101 </p>
102
103 <a name=H0003>
104 <h3>1.1 Problems With The Traditional Approach</h3>
105
106 <p>
107 As the art of computer programming continues to advance, and the size
108 and complexity of programs continues to swell, the traditional C
@@ -152,11 +152,11 @@
152 especially when the declarations involved are spread out over several
153 files.
154 </ol>
155 </p>
156
157 <a name=H0004>
158 <h3>1.2 The Makeheaders Solution</h3>
159
160 <p>
161 The makeheaders program is designed to ameliorate the problems associated
162 with the traditional C programming model by automatically generating
@@ -215,11 +215,11 @@
215 And the burden of running makeheaders is light.
216 It will easily process tens of thousands of lines of source
217 code per second.
218 </p>
219
220 <a name=H0005>
221 <h2>2.0 Running The Makeheaders Program</h2>
222
223 <p>
224 The makeheaders program is very easy to run.
225 If you have a collection of C source code and include files in the working
@@ -363,11 +363,11 @@
363 Or, you can insert the special option ``--'' on the command
364 line to cause all subsequent command line arguments to be treated as
365 filenames even if their names beginn with ``-''.
366 </p>
367
368 <a name=H0006>
369 <h2>3.0 Preparing Source Files For Use With Makeheaders</h2>
370
371 <p>
372 Very little has to be done to prepare source files for use with
373 makeheaders since makeheaders will read and understand ordinary
@@ -375,11 +375,11 @@
375 But it is important that you structure your files in a way that
376 makes sense in the makeheaders context.
377 This section will describe several typical uses of makeheaders.
378 </p>
379
380 <a name=H0007>
381 <h3>3.1 The Basic Setup</h3>
382
383 <p>
384 The simpliest way to use makeheaders is to put all definitions in
385 one or more .c files and all structure and type declarations in
@@ -474,11 +474,11 @@
474 But that is not a problem.
475 The makeheaders program will recognize and ignore any files it
476 has previously generated that show up on its input list.
477 </p>
478
479 <a name=H0008>
480 <h3>3.2 What Declarations Get Copied</h3>
481
482 <p>
483 The following list details all of the code constructs that makeheaders
484 will extract and place in
@@ -577,11 +577,11 @@
577 If the declaration of some structure ``X'' requires a prior
578 declaration of another structure ``Y'', then Y will appear
579 first in the generated headers.
580 </p>
581
582 <a name=H0009>
583 <h3>3.3 How To Avoid Having To Write Any Header Files</h3>
584
585 <p>
586 In my experience, large projects work better if all of the manually
587 written code is placed in .c files and all .h files are generated
@@ -644,11 +644,11 @@
644 come from.
645 You should also note that a single .c file can contain as many
646 ``#if INTERFACE'' regions as desired.
647 </p>
648
649 <a name=H0010>
650 <h3>3.4 Designating Declarations For Export</h3>
651
652 <p>
653 In a large project, one will often construct a hierarchy of
654 interfaces.
@@ -733,11 +733,11 @@
733 (The ``#if INTERFACE'' can also be used in both .h and .c files,
734 but since it's use in a .h file would be redundant, we haven't mentioned
735 it before.)
736 </p>
737
738 <a name=H0011>
739 <h3>3.5 Local declarations processed by makeheaders</h3>
740
741 <p>
742 Structure declarations and typedefs that appear in .c files are normally
743 ignored by makeheaders.
@@ -771,11 +771,11 @@
771 blocks described above, except that makeheaders insures that the
772 objects declared in a LOCAL_INTERFACE are only visible to the
773 file containing the LOCAL_INTERFACE.
774 </p>
775
776 <a name=H0012>
777 <h3>3.6 Using Makeheaders With C++ Code</h3>
778
779 <p>
780 You can use makeheaders to generate header files for C++ code, in
781 addition to C.
@@ -870,11 +870,11 @@
870 Makeheaders does not understand more recent
871 C++ syntax such as templates and namespaces.
872 Perhaps these issued will be addressed in future revisions.
873 </p>
874
875 <a name=H0013>
876 <h3>3.7 Conditional Compilation</h3>
877
878 <p>
879 The makeheaders program understands and tracks the conditional
880 compilation constructs in the source code files it scans.
@@ -903,11 +903,11 @@
903 #endif
904 </pre>
905 and treats the enclosed text as a comment.
906 </p>
907
908 <a name=H0014>
909 <h3>3.8 Caveats</h3>
910
911 <p>
912 The makeheaders system is designed to be robust
913 but it is possible for a devious programmer to fool the system,
@@ -973,11 +973,11 @@
973 As long as you avoid excessive cleverness, makeheaders will
974 probably be able to figure out what you want and will do the right
975 thing.
976 </p>
977
978 <a name=H0015>
979 <h2>4.0 Using Makeheaders To Generate Documentation</h2>
980
981 <p>
982 Many people have observed the advantages of generating program
983 documentation directly from the source code:
@@ -1037,11 +1037,11 @@
1037 The exact output format will not be described here.
1038 It is simple to understand and parse and should be obvious to
1039 anyone who inspects some sample output.
1040 </p>
1041
1042 <a name=H0016>
1043 <h2>5.0 Compiling The Makeheaders Program</h2>
1044
1045 <p>
1046 The source code for makeheaders is a single file of ANSI-C code,
1047 less than 3000 lines in length.
@@ -1050,11 +1050,11 @@
1050 and on most operating systems.
1051 It is known to compile using several variations of GCC for Unix
1052 as well as Cygwin32 and MSVC 5.0 for Win32.
1053 </p>
1054
1055 <a name=H0017>
1056 <h2>6.0 Summary And Conclusion</h2>
1057
1058 <p>
1059 The makeheaders program will automatically generate a minimal header file
1060 for each of a set of C source and header files, and will
1061
--- src/makeheaders.html
+++ src/makeheaders.html
@@ -43,11 +43,11 @@
43 <li><a href=makeheaders.html#H0015>4.0 Using Makeheaders To Generate Documentation</a>
44
45 <li><a href=makeheaders.html#H0016>5.0 Compiling The Makeheaders Program</a>
46
47 <li><a href=makeheaders.html#H0017>6.0 Summary And Conclusion</a>
48 </ul><a name="H0002"></a>
49 <h2>1.0 Background</h2>
50
51 <p>
52 A piece of C source code can be one of two things:
53 a <em>declaration</em> or a <em>definition</em>.
@@ -98,11 +98,11 @@
98 source code when the .c file is compiled.
99 In this way, the .h files define the interface to a subsystem and
100 the .c files define how the subsystem is implemented.
101 </p>
102
103 <a name="H0003"></a>
104 <h3>1.1 Problems With The Traditional Approach</h3>
105
106 <p>
107 As the art of computer programming continues to advance, and the size
108 and complexity of programs continues to swell, the traditional C
@@ -152,11 +152,11 @@
152 especially when the declarations involved are spread out over several
153 files.
154 </ol>
155 </p>
156
157 <a name="H0004"></a>
158 <h3>1.2 The Makeheaders Solution</h3>
159
160 <p>
161 The makeheaders program is designed to ameliorate the problems associated
162 with the traditional C programming model by automatically generating
@@ -215,11 +215,11 @@
215 And the burden of running makeheaders is light.
216 It will easily process tens of thousands of lines of source
217 code per second.
218 </p>
219
220 <a name="H0005"></a>
221 <h2>2.0 Running The Makeheaders Program</h2>
222
223 <p>
224 The makeheaders program is very easy to run.
225 If you have a collection of C source code and include files in the working
@@ -363,11 +363,11 @@
363 Or, you can insert the special option ``--'' on the command
364 line to cause all subsequent command line arguments to be treated as
365 filenames even if their names beginn with ``-''.
366 </p>
367
368 <a name="H0006"></a>
369 <h2>3.0 Preparing Source Files For Use With Makeheaders</h2>
370
371 <p>
372 Very little has to be done to prepare source files for use with
373 makeheaders since makeheaders will read and understand ordinary
@@ -375,11 +375,11 @@
375 But it is important that you structure your files in a way that
376 makes sense in the makeheaders context.
377 This section will describe several typical uses of makeheaders.
378 </p>
379
380 <a name="H0007"></a>
381 <h3>3.1 The Basic Setup</h3>
382
383 <p>
384 The simpliest way to use makeheaders is to put all definitions in
385 one or more .c files and all structure and type declarations in
@@ -474,11 +474,11 @@
474 But that is not a problem.
475 The makeheaders program will recognize and ignore any files it
476 has previously generated that show up on its input list.
477 </p>
478
479 <a name="H0008"></a>
480 <h3>3.2 What Declarations Get Copied</h3>
481
482 <p>
483 The following list details all of the code constructs that makeheaders
484 will extract and place in
@@ -577,11 +577,11 @@
577 If the declaration of some structure ``X'' requires a prior
578 declaration of another structure ``Y'', then Y will appear
579 first in the generated headers.
580 </p>
581
582 <a name="H0009"></a>
583 <h3>3.3 How To Avoid Having To Write Any Header Files</h3>
584
585 <p>
586 In my experience, large projects work better if all of the manually
587 written code is placed in .c files and all .h files are generated
@@ -644,11 +644,11 @@
644 come from.
645 You should also note that a single .c file can contain as many
646 ``#if INTERFACE'' regions as desired.
647 </p>
648
649 <a name="H0010"></a>
650 <h3>3.4 Designating Declarations For Export</h3>
651
652 <p>
653 In a large project, one will often construct a hierarchy of
654 interfaces.
@@ -733,11 +733,11 @@
733 (The ``#if INTERFACE'' can also be used in both .h and .c files,
734 but since it's use in a .h file would be redundant, we haven't mentioned
735 it before.)
736 </p>
737
738 <a name="H0011"></a>
739 <h3>3.5 Local declarations processed by makeheaders</h3>
740
741 <p>
742 Structure declarations and typedefs that appear in .c files are normally
743 ignored by makeheaders.
@@ -771,11 +771,11 @@
771 blocks described above, except that makeheaders insures that the
772 objects declared in a LOCAL_INTERFACE are only visible to the
773 file containing the LOCAL_INTERFACE.
774 </p>
775
776 <a name="H0012"></a>
777 <h3>3.6 Using Makeheaders With C++ Code</h3>
778
779 <p>
780 You can use makeheaders to generate header files for C++ code, in
781 addition to C.
@@ -870,11 +870,11 @@
870 Makeheaders does not understand more recent
871 C++ syntax such as templates and namespaces.
872 Perhaps these issued will be addressed in future revisions.
873 </p>
874
875 <a name="H0013"></a>
876 <h3>3.7 Conditional Compilation</h3>
877
878 <p>
879 The makeheaders program understands and tracks the conditional
880 compilation constructs in the source code files it scans.
@@ -903,11 +903,11 @@
903 #endif
904 </pre>
905 and treats the enclosed text as a comment.
906 </p>
907
908 <a name="H0014"></a>
909 <h3>3.8 Caveats</h3>
910
911 <p>
912 The makeheaders system is designed to be robust
913 but it is possible for a devious programmer to fool the system,
@@ -973,11 +973,11 @@
973 As long as you avoid excessive cleverness, makeheaders will
974 probably be able to figure out what you want and will do the right
975 thing.
976 </p>
977
978 <a name="H0015"></a>
979 <h2>4.0 Using Makeheaders To Generate Documentation</h2>
980
981 <p>
982 Many people have observed the advantages of generating program
983 documentation directly from the source code:
@@ -1037,11 +1037,11 @@
1037 The exact output format will not be described here.
1038 It is simple to understand and parse and should be obvious to
1039 anyone who inspects some sample output.
1040 </p>
1041
1042 <a name="H0016"></a>
1043 <h2>5.0 Compiling The Makeheaders Program</h2>
1044
1045 <p>
1046 The source code for makeheaders is a single file of ANSI-C code,
1047 less than 3000 lines in length.
@@ -1050,11 +1050,11 @@
1050 and on most operating systems.
1051 It is known to compile using several variations of GCC for Unix
1052 as well as Cygwin32 and MSVC 5.0 for Win32.
1053 </p>
1054
1055 <a name="H0017"></a>
1056 <h2>6.0 Summary And Conclusion</h2>
1057
1058 <p>
1059 The makeheaders program will automatically generate a minimal header file
1060 for each of a set of C source and header files, and will
1061
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -51,10 +51,11 @@
5151
http
5252
http_socket
5353
http_transport
5454
import
5555
info
56
+ leaf
5657
login
5758
main
5859
manifest
5960
md5
6061
merge
6162
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -51,10 +51,11 @@
51 http
52 http_socket
53 http_transport
54 import
55 info
 
56 login
57 main
58 manifest
59 md5
60 merge
61
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -51,10 +51,11 @@
51 http
52 http_socket
53 http_transport
54 import
55 info
56 leaf
57 login
58 main
59 manifest
60 md5
61 merge
62
+14 -5
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
4040
** a date) which can change frequently. When the content schema changes,
4141
** we have to execute special procedures to update the schema. When
4242
** the aux schema changes, all we need to do is rebuild the database.
4343
*/
4444
#define CONTENT_SCHEMA "1"
45
-#define AUX_SCHEMA "2010-11-24"
45
+#define AUX_SCHEMA "2011-01-28"
4646
4747
#endif /* INTERFACE */
4848
4949
5050
/*
@@ -189,15 +189,15 @@
189189
@ CREATE TABLE filename(
190190
@ fnid INTEGER PRIMARY KEY, -- Filename ID
191191
@ name TEXT UNIQUE -- Name of file page
192192
@ );
193193
@
194
-@ -- Linkages between manifests, files created by that manifest, and
194
+@ -- Linkages between checkins, files created by each checkin, and
195195
@ -- the names of those files.
196196
@ --
197
-@ -- pid==0 if the file is added by check-in mid.
198
-@ -- fid==0 if the file is removed by check-in mid.
197
+@ -- pid==0 if the file is added by checkin mid.
198
+@ -- fid==0 if the file is removed by checkin mid.
199199
@ --
200200
@ CREATE TABLE mlink(
201201
@ mid INTEGER REFERENCES blob, -- Manifest ID where change occurs
202202
@ pid INTEGER REFERENCES blob, -- File ID in parent manifest
203203
@ fid INTEGER REFERENCES blob, -- Changed file ID in this manifest
@@ -207,20 +207,29 @@
207207
@ CREATE INDEX mlink_i1 ON mlink(mid);
208208
@ CREATE INDEX mlink_i2 ON mlink(fnid);
209209
@ CREATE INDEX mlink_i3 ON mlink(fid);
210210
@ CREATE INDEX mlink_i4 ON mlink(pid);
211211
@
212
-@ -- Parent/child linkages
212
+@ -- Parent/child linkages between checkins
213213
@ --
214214
@ CREATE TABLE plink(
215215
@ pid INTEGER REFERENCES blob, -- Parent manifest
216216
@ cid INTEGER REFERENCES blob, -- Child manifest
217217
@ isprim BOOLEAN, -- pid is the primary parent of cid
218218
@ mtime DATETIME, -- the date/time stamp on cid
219219
@ UNIQUE(pid, cid)
220220
@ );
221221
@ CREATE INDEX plink_i2 ON plink(cid,pid);
222
+@
223
+@ -- A "leaf" checkin is a checkin that has no children in the same
224
+@ -- branch. The set of all leaves is easily computed with a join,
225
+@ -- between the plink and tagxref tables, but it is a slower join for
226
+@ -- very large repositories (repositories with 100,000 or more checkins)
227
+@ -- and so it makes sense to precompute the set of leaves. There is
228
+@ -- one entry in the following table for each leaf.
229
+@ --
230
+@ CREATE TABLE leaf(rid INTEGER PRIMARY KEY);
222231
@
223232
@ -- Events used to generate a timeline
224233
@ --
225234
@ CREATE TABLE event(
226235
@ type TEXT, -- Type of event: 'ci', 'w', 'e', 't'
227236
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
40 ** a date) which can change frequently. When the content schema changes,
41 ** we have to execute special procedures to update the schema. When
42 ** the aux schema changes, all we need to do is rebuild the database.
43 */
44 #define CONTENT_SCHEMA "1"
45 #define AUX_SCHEMA "2010-11-24"
46
47 #endif /* INTERFACE */
48
49
50 /*
@@ -189,15 +189,15 @@
189 @ CREATE TABLE filename(
190 @ fnid INTEGER PRIMARY KEY, -- Filename ID
191 @ name TEXT UNIQUE -- Name of file page
192 @ );
193 @
194 @ -- Linkages between manifests, files created by that manifest, and
195 @ -- the names of those files.
196 @ --
197 @ -- pid==0 if the file is added by check-in mid.
198 @ -- fid==0 if the file is removed by check-in mid.
199 @ --
200 @ CREATE TABLE mlink(
201 @ mid INTEGER REFERENCES blob, -- Manifest ID where change occurs
202 @ pid INTEGER REFERENCES blob, -- File ID in parent manifest
203 @ fid INTEGER REFERENCES blob, -- Changed file ID in this manifest
@@ -207,20 +207,29 @@
207 @ CREATE INDEX mlink_i1 ON mlink(mid);
208 @ CREATE INDEX mlink_i2 ON mlink(fnid);
209 @ CREATE INDEX mlink_i3 ON mlink(fid);
210 @ CREATE INDEX mlink_i4 ON mlink(pid);
211 @
212 @ -- Parent/child linkages
213 @ --
214 @ CREATE TABLE plink(
215 @ pid INTEGER REFERENCES blob, -- Parent manifest
216 @ cid INTEGER REFERENCES blob, -- Child manifest
217 @ isprim BOOLEAN, -- pid is the primary parent of cid
218 @ mtime DATETIME, -- the date/time stamp on cid
219 @ UNIQUE(pid, cid)
220 @ );
221 @ CREATE INDEX plink_i2 ON plink(cid,pid);
 
 
 
 
 
 
 
 
 
222 @
223 @ -- Events used to generate a timeline
224 @ --
225 @ CREATE TABLE event(
226 @ type TEXT, -- Type of event: 'ci', 'w', 'e', 't'
227
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
40 ** a date) which can change frequently. When the content schema changes,
41 ** we have to execute special procedures to update the schema. When
42 ** the aux schema changes, all we need to do is rebuild the database.
43 */
44 #define CONTENT_SCHEMA "1"
45 #define AUX_SCHEMA "2011-01-28"
46
47 #endif /* INTERFACE */
48
49
50 /*
@@ -189,15 +189,15 @@
189 @ CREATE TABLE filename(
190 @ fnid INTEGER PRIMARY KEY, -- Filename ID
191 @ name TEXT UNIQUE -- Name of file page
192 @ );
193 @
194 @ -- Linkages between checkins, files created by each checkin, and
195 @ -- the names of those files.
196 @ --
197 @ -- pid==0 if the file is added by checkin mid.
198 @ -- fid==0 if the file is removed by checkin mid.
199 @ --
200 @ CREATE TABLE mlink(
201 @ mid INTEGER REFERENCES blob, -- Manifest ID where change occurs
202 @ pid INTEGER REFERENCES blob, -- File ID in parent manifest
203 @ fid INTEGER REFERENCES blob, -- Changed file ID in this manifest
@@ -207,20 +207,29 @@
207 @ CREATE INDEX mlink_i1 ON mlink(mid);
208 @ CREATE INDEX mlink_i2 ON mlink(fnid);
209 @ CREATE INDEX mlink_i3 ON mlink(fid);
210 @ CREATE INDEX mlink_i4 ON mlink(pid);
211 @
212 @ -- Parent/child linkages between checkins
213 @ --
214 @ CREATE TABLE plink(
215 @ pid INTEGER REFERENCES blob, -- Parent manifest
216 @ cid INTEGER REFERENCES blob, -- Child manifest
217 @ isprim BOOLEAN, -- pid is the primary parent of cid
218 @ mtime DATETIME, -- the date/time stamp on cid
219 @ UNIQUE(pid, cid)
220 @ );
221 @ CREATE INDEX plink_i2 ON plink(cid,pid);
222 @
223 @ -- A "leaf" checkin is a checkin that has no children in the same
224 @ -- branch. The set of all leaves is easily computed with a join,
225 @ -- between the plink and tagxref tables, but it is a slower join for
226 @ -- very large repositories (repositories with 100,000 or more checkins)
227 @ -- and so it makes sense to precompute the set of leaves. There is
228 @ -- one entry in the following table for each leaf.
229 @ --
230 @ CREATE TABLE leaf(rid INTEGER PRIMARY KEY);
231 @
232 @ -- Events used to generate a timeline
233 @ --
234 @ CREATE TABLE event(
235 @ type TEXT, -- Type of event: 'ci', 'w', 'e', 't'
236
+14 -5
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
4040
** a date) which can change frequently. When the content schema changes,
4141
** we have to execute special procedures to update the schema. When
4242
** the aux schema changes, all we need to do is rebuild the database.
4343
*/
4444
#define CONTENT_SCHEMA "1"
45
-#define AUX_SCHEMA "2010-11-24"
45
+#define AUX_SCHEMA "2011-01-28"
4646
4747
#endif /* INTERFACE */
4848
4949
5050
/*
@@ -189,15 +189,15 @@
189189
@ CREATE TABLE filename(
190190
@ fnid INTEGER PRIMARY KEY, -- Filename ID
191191
@ name TEXT UNIQUE -- Name of file page
192192
@ );
193193
@
194
-@ -- Linkages between manifests, files created by that manifest, and
194
+@ -- Linkages between checkins, files created by each checkin, and
195195
@ -- the names of those files.
196196
@ --
197
-@ -- pid==0 if the file is added by check-in mid.
198
-@ -- fid==0 if the file is removed by check-in mid.
197
+@ -- pid==0 if the file is added by checkin mid.
198
+@ -- fid==0 if the file is removed by checkin mid.
199199
@ --
200200
@ CREATE TABLE mlink(
201201
@ mid INTEGER REFERENCES blob, -- Manifest ID where change occurs
202202
@ pid INTEGER REFERENCES blob, -- File ID in parent manifest
203203
@ fid INTEGER REFERENCES blob, -- Changed file ID in this manifest
@@ -207,20 +207,29 @@
207207
@ CREATE INDEX mlink_i1 ON mlink(mid);
208208
@ CREATE INDEX mlink_i2 ON mlink(fnid);
209209
@ CREATE INDEX mlink_i3 ON mlink(fid);
210210
@ CREATE INDEX mlink_i4 ON mlink(pid);
211211
@
212
-@ -- Parent/child linkages
212
+@ -- Parent/child linkages between checkins
213213
@ --
214214
@ CREATE TABLE plink(
215215
@ pid INTEGER REFERENCES blob, -- Parent manifest
216216
@ cid INTEGER REFERENCES blob, -- Child manifest
217217
@ isprim BOOLEAN, -- pid is the primary parent of cid
218218
@ mtime DATETIME, -- the date/time stamp on cid
219219
@ UNIQUE(pid, cid)
220220
@ );
221221
@ CREATE INDEX plink_i2 ON plink(cid,pid);
222
+@
223
+@ -- A "leaf" checkin is a checkin that has no children in the same
224
+@ -- branch. The set of all leaves is easily computed with a join,
225
+@ -- between the plink and tagxref tables, but it is a slower join for
226
+@ -- very large repositories (repositories with 100,000 or more checkins)
227
+@ -- and so it makes sense to precompute the set of leaves. There is
228
+@ -- one entry in the following table for each leaf.
229
+@ --
230
+@ CREATE TABLE leaf(rid INTEGER PRIMARY KEY);
222231
@
223232
@ -- Events used to generate a timeline
224233
@ --
225234
@ CREATE TABLE event(
226235
@ type TEXT, -- Type of event: 'ci', 'w', 'e', 't'
227236
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
40 ** a date) which can change frequently. When the content schema changes,
41 ** we have to execute special procedures to update the schema. When
42 ** the aux schema changes, all we need to do is rebuild the database.
43 */
44 #define CONTENT_SCHEMA "1"
45 #define AUX_SCHEMA "2010-11-24"
46
47 #endif /* INTERFACE */
48
49
50 /*
@@ -189,15 +189,15 @@
189 @ CREATE TABLE filename(
190 @ fnid INTEGER PRIMARY KEY, -- Filename ID
191 @ name TEXT UNIQUE -- Name of file page
192 @ );
193 @
194 @ -- Linkages between manifests, files created by that manifest, and
195 @ -- the names of those files.
196 @ --
197 @ -- pid==0 if the file is added by check-in mid.
198 @ -- fid==0 if the file is removed by check-in mid.
199 @ --
200 @ CREATE TABLE mlink(
201 @ mid INTEGER REFERENCES blob, -- Manifest ID where change occurs
202 @ pid INTEGER REFERENCES blob, -- File ID in parent manifest
203 @ fid INTEGER REFERENCES blob, -- Changed file ID in this manifest
@@ -207,20 +207,29 @@
207 @ CREATE INDEX mlink_i1 ON mlink(mid);
208 @ CREATE INDEX mlink_i2 ON mlink(fnid);
209 @ CREATE INDEX mlink_i3 ON mlink(fid);
210 @ CREATE INDEX mlink_i4 ON mlink(pid);
211 @
212 @ -- Parent/child linkages
213 @ --
214 @ CREATE TABLE plink(
215 @ pid INTEGER REFERENCES blob, -- Parent manifest
216 @ cid INTEGER REFERENCES blob, -- Child manifest
217 @ isprim BOOLEAN, -- pid is the primary parent of cid
218 @ mtime DATETIME, -- the date/time stamp on cid
219 @ UNIQUE(pid, cid)
220 @ );
221 @ CREATE INDEX plink_i2 ON plink(cid,pid);
 
 
 
 
 
 
 
 
 
222 @
223 @ -- Events used to generate a timeline
224 @ --
225 @ CREATE TABLE event(
226 @ type TEXT, -- Type of event: 'ci', 'w', 'e', 't'
227
--- src/schema.c
+++ src/schema.c
@@ -40,11 +40,11 @@
40 ** a date) which can change frequently. When the content schema changes,
41 ** we have to execute special procedures to update the schema. When
42 ** the aux schema changes, all we need to do is rebuild the database.
43 */
44 #define CONTENT_SCHEMA "1"
45 #define AUX_SCHEMA "2011-01-28"
46
47 #endif /* INTERFACE */
48
49
50 /*
@@ -189,15 +189,15 @@
189 @ CREATE TABLE filename(
190 @ fnid INTEGER PRIMARY KEY, -- Filename ID
191 @ name TEXT UNIQUE -- Name of file page
192 @ );
193 @
194 @ -- Linkages between checkins, files created by each checkin, and
195 @ -- the names of those files.
196 @ --
197 @ -- pid==0 if the file is added by checkin mid.
198 @ -- fid==0 if the file is removed by checkin mid.
199 @ --
200 @ CREATE TABLE mlink(
201 @ mid INTEGER REFERENCES blob, -- Manifest ID where change occurs
202 @ pid INTEGER REFERENCES blob, -- File ID in parent manifest
203 @ fid INTEGER REFERENCES blob, -- Changed file ID in this manifest
@@ -207,20 +207,29 @@
207 @ CREATE INDEX mlink_i1 ON mlink(mid);
208 @ CREATE INDEX mlink_i2 ON mlink(fnid);
209 @ CREATE INDEX mlink_i3 ON mlink(fid);
210 @ CREATE INDEX mlink_i4 ON mlink(pid);
211 @
212 @ -- Parent/child linkages between checkins
213 @ --
214 @ CREATE TABLE plink(
215 @ pid INTEGER REFERENCES blob, -- Parent manifest
216 @ cid INTEGER REFERENCES blob, -- Child manifest
217 @ isprim BOOLEAN, -- pid is the primary parent of cid
218 @ mtime DATETIME, -- the date/time stamp on cid
219 @ UNIQUE(pid, cid)
220 @ );
221 @ CREATE INDEX plink_i2 ON plink(cid,pid);
222 @
223 @ -- A "leaf" checkin is a checkin that has no children in the same
224 @ -- branch. The set of all leaves is easily computed with a join,
225 @ -- between the plink and tagxref tables, but it is a slower join for
226 @ -- very large repositories (repositories with 100,000 or more checkins)
227 @ -- and so it makes sense to precompute the set of leaves. There is
228 @ -- one entry in the following table for each leaf.
229 @ --
230 @ CREATE TABLE leaf(rid INTEGER PRIMARY KEY);
231 @
232 @ -- Events used to generate a timeline
233 @ --
234 @ CREATE TABLE event(
235 @ type TEXT, -- Type of event: 'ci', 'w', 'e', 't'
236
+5 -28
--- src/tag.c
+++ src/tag.c
@@ -85,10 +85,13 @@
8585
if( tagid==TAG_BGCOLOR ){
8686
db_bind_int(&eventupdate, ":rid", cid);
8787
db_step(&eventupdate);
8888
db_reset(&eventupdate);
8989
}
90
+ if( tagid==TAG_BRANCH ){
91
+ leaf_eventually_check(cid);
92
+ }
9093
}
9194
}
9295
db_reset(&s);
9396
}
9497
pqueue_clear(&queue);
@@ -174,10 +177,11 @@
174177
tagid, tagtype, srcId, rid, zValue, rid
175178
);
176179
db_bind_double(&s, ":mtime", mtime);
177180
db_step(&s);
178181
db_finalize(&s);
182
+ if( tagid==TAG_BRANCH ) leaf_eventually_check(rid);
179183
if( tagtype==0 ){
180184
zValue = 0;
181185
}
182186
zCol = 0;
183187
switch( tagid ){
@@ -535,37 +539,10 @@
535539
@ </ul>
536540
db_finalize(&q);
537541
style_footer();
538542
}
539543
540
-/*
541
-** Draw the names of all tags added to check-in rid. Only tags
542
-** that are directly applied to rid are named. Propagated tags
543
-** are omitted.
544
-*/
545
-static void tagtimeline_extra(int rid){
546
- Stmt q;
547
- db_prepare(&q,
548
- "SELECT substr(tagname,5) FROM tagxref, tag"
549
- " WHERE tagxref.rid=%d"
550
- " AND tagxref.tagid=tag.tagid"
551
- " AND tagxref.tagtype>0 AND tagxref.srcid>0"
552
- " AND tag.tagname GLOB 'sym-*'",
553
- rid
554
- );
555
- while( db_step(&q)==SQLITE_ROW ){
556
- const char *zTagName = db_column_text(&q, 0);
557
- if( g.okHistory ){
558
- @ <a class="tagLink" href="%s(g.zTop)/timeline?t=%T(zTagName)">
559
- @ [%h(zTagName)]</a>
560
- }else{
561
- @ <span class="tagDsp">[%h(zTagName)]</span>
562
- }
563
- }
564
- db_finalize(&q);
565
-}
566
-
567544
/*
568545
** WEBPAGE: /tagtimeline
569546
*/
570547
void tagtimeline_page(void){
571548
Stmt q;
@@ -583,11 +560,11 @@
583560
" AND tagid IN (SELECT tagid FROM tag "
584561
" WHERE tagname GLOB 'sym-*'))"
585562
" ORDER BY event.mtime DESC",
586563
timeline_query_for_www()
587564
);
588
- www_print_timeline(&q, 0, 0, 0, tagtimeline_extra);
565
+ www_print_timeline(&q, 0, 0, 0, 0);
589566
db_finalize(&q);
590567
@ <br />
591568
@ <script type="text/JavaScript">
592569
@ function xin(id){
593570
@ }
594571
--- src/tag.c
+++ src/tag.c
@@ -85,10 +85,13 @@
85 if( tagid==TAG_BGCOLOR ){
86 db_bind_int(&eventupdate, ":rid", cid);
87 db_step(&eventupdate);
88 db_reset(&eventupdate);
89 }
 
 
 
90 }
91 }
92 db_reset(&s);
93 }
94 pqueue_clear(&queue);
@@ -174,10 +177,11 @@
174 tagid, tagtype, srcId, rid, zValue, rid
175 );
176 db_bind_double(&s, ":mtime", mtime);
177 db_step(&s);
178 db_finalize(&s);
 
179 if( tagtype==0 ){
180 zValue = 0;
181 }
182 zCol = 0;
183 switch( tagid ){
@@ -535,37 +539,10 @@
535 @ </ul>
536 db_finalize(&q);
537 style_footer();
538 }
539
540 /*
541 ** Draw the names of all tags added to check-in rid. Only tags
542 ** that are directly applied to rid are named. Propagated tags
543 ** are omitted.
544 */
545 static void tagtimeline_extra(int rid){
546 Stmt q;
547 db_prepare(&q,
548 "SELECT substr(tagname,5) FROM tagxref, tag"
549 " WHERE tagxref.rid=%d"
550 " AND tagxref.tagid=tag.tagid"
551 " AND tagxref.tagtype>0 AND tagxref.srcid>0"
552 " AND tag.tagname GLOB 'sym-*'",
553 rid
554 );
555 while( db_step(&q)==SQLITE_ROW ){
556 const char *zTagName = db_column_text(&q, 0);
557 if( g.okHistory ){
558 @ <a class="tagLink" href="%s(g.zTop)/timeline?t=%T(zTagName)">
559 @ [%h(zTagName)]</a>
560 }else{
561 @ <span class="tagDsp">[%h(zTagName)]</span>
562 }
563 }
564 db_finalize(&q);
565 }
566
567 /*
568 ** WEBPAGE: /tagtimeline
569 */
570 void tagtimeline_page(void){
571 Stmt q;
@@ -583,11 +560,11 @@
583 " AND tagid IN (SELECT tagid FROM tag "
584 " WHERE tagname GLOB 'sym-*'))"
585 " ORDER BY event.mtime DESC",
586 timeline_query_for_www()
587 );
588 www_print_timeline(&q, 0, 0, 0, tagtimeline_extra);
589 db_finalize(&q);
590 @ <br />
591 @ <script type="text/JavaScript">
592 @ function xin(id){
593 @ }
594
--- src/tag.c
+++ src/tag.c
@@ -85,10 +85,13 @@
85 if( tagid==TAG_BGCOLOR ){
86 db_bind_int(&eventupdate, ":rid", cid);
87 db_step(&eventupdate);
88 db_reset(&eventupdate);
89 }
90 if( tagid==TAG_BRANCH ){
91 leaf_eventually_check(cid);
92 }
93 }
94 }
95 db_reset(&s);
96 }
97 pqueue_clear(&queue);
@@ -174,10 +177,11 @@
177 tagid, tagtype, srcId, rid, zValue, rid
178 );
179 db_bind_double(&s, ":mtime", mtime);
180 db_step(&s);
181 db_finalize(&s);
182 if( tagid==TAG_BRANCH ) leaf_eventually_check(rid);
183 if( tagtype==0 ){
184 zValue = 0;
185 }
186 zCol = 0;
187 switch( tagid ){
@@ -535,37 +539,10 @@
539 @ </ul>
540 db_finalize(&q);
541 style_footer();
542 }
543
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
544 /*
545 ** WEBPAGE: /tagtimeline
546 */
547 void tagtimeline_page(void){
548 Stmt q;
@@ -583,11 +560,11 @@
560 " AND tagid IN (SELECT tagid FROM tag "
561 " WHERE tagname GLOB 'sym-*'))"
562 " ORDER BY event.mtime DESC",
563 timeline_query_for_www()
564 );
565 www_print_timeline(&q, 0, 0, 0, 0);
566 db_finalize(&q);
567 @ <br />
568 @ <script type="text/JavaScript">
569 @ function xin(id){
570 @ }
571
+1 -6
--- src/timeline.c
+++ src/timeline.c
@@ -638,16 +638,11 @@
638638
@ blob.rid,
639639
@ uuid,
640640
@ datetime(event.mtime,'localtime') AS timestamp,
641641
@ coalesce(ecomment, comment),
642642
@ coalesce(euser, user),
643
- @ NOT EXISTS(SELECT 1 FROM plink
644
- @ WHERE pid=blob.rid
645
- @ AND coalesce((SELECT value FROM tagxref
646
- @ WHERE tagid=%d AND rid=plink.pid), 'trunk')
647
- @ = coalesce((SELECT value FROM tagxref
648
- @ WHERE tagid=%d AND rid=plink.cid), 'trunk')),
643
+ @ blob.rid IN leaf,
649644
@ bgcolor,
650645
@ event.type,
651646
@ (SELECT group_concat(substr(tagname,5), ', ') FROM tag, tagxref
652647
@ WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid
653648
@ AND tagxref.rid=blob.rid AND tagxref.tagtype>0),
654649
--- src/timeline.c
+++ src/timeline.c
@@ -638,16 +638,11 @@
638 @ blob.rid,
639 @ uuid,
640 @ datetime(event.mtime,'localtime') AS timestamp,
641 @ coalesce(ecomment, comment),
642 @ coalesce(euser, user),
643 @ NOT EXISTS(SELECT 1 FROM plink
644 @ WHERE pid=blob.rid
645 @ AND coalesce((SELECT value FROM tagxref
646 @ WHERE tagid=%d AND rid=plink.pid), 'trunk')
647 @ = coalesce((SELECT value FROM tagxref
648 @ WHERE tagid=%d AND rid=plink.cid), 'trunk')),
649 @ bgcolor,
650 @ event.type,
651 @ (SELECT group_concat(substr(tagname,5), ', ') FROM tag, tagxref
652 @ WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid
653 @ AND tagxref.rid=blob.rid AND tagxref.tagtype>0),
654
--- src/timeline.c
+++ src/timeline.c
@@ -638,16 +638,11 @@
638 @ blob.rid,
639 @ uuid,
640 @ datetime(event.mtime,'localtime') AS timestamp,
641 @ coalesce(ecomment, comment),
642 @ coalesce(euser, user),
643 @ blob.rid IN leaf,
 
 
 
 
 
644 @ bgcolor,
645 @ event.type,
646 @ (SELECT group_concat(substr(tagname,5), ', ') FROM tag, tagxref
647 @ WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid
648 @ AND tagxref.rid=blob.rid AND tagxref.tagtype>0),
649
+10 -4
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -22,13 +22,13 @@
2222
CFLAGS = -o
2323
BCC = $(DMDIR)\bin\dmc $(CFLAGS)
2424
TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL)
2525
LIBS = $(DMDIR)\extra\lib\ zlib wsock32
2626
27
-SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
27
+SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
2828
29
-OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
29
+OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\leaf$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
3030
3131
3232
RC=$(DMDIR)\bin\rcc
3333
RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__
3434
@@ -42,11 +42,11 @@
4242
4343
$(OBJDIR)\fossil.res: $B\win\fossil.rc
4444
$(RC) $(RCFLAGS) -o$@ $**
4545
4646
$(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res
47
- +echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo graph http http_socket http_ssl http_transport import info login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip shell sqlcmd sqlite3 th th_lang > $@
47
+ +echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo graph http http_socket http_ssl http_transport import info leaf login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip shell sqlcmd sqlite3 th th_lang > $@
4848
+echo fossil >> $@
4949
+echo fossil >> $@
5050
+echo $(LIBS) >> $@
5151
+echo. >> $@
5252
+echo fossil >> $@
@@ -305,10 +305,16 @@
305305
$(OBJDIR)\info$O : info_.c info.h
306306
$(TCC) -o$@ -c info_.c
307307
308308
info_.c : $(SRCDIR)\info.c
309309
+translate$E $** > $@
310
+
311
+$(OBJDIR)\leaf$O : leaf_.c leaf.h
312
+ $(TCC) -o$@ -c leaf_.c
313
+
314
+leaf_.c : $(SRCDIR)\leaf.c
315
+ +translate$E $** > $@
310316
311317
$(OBJDIR)\login$O : login_.c login.h
312318
$(TCC) -o$@ -c login_.c
313319
314320
login_.c : $(SRCDIR)\login.c
@@ -553,7 +559,7 @@
553559
554560
zip_.c : $(SRCDIR)\zip.c
555561
+translate$E $** > $@
556562
557563
headers: makeheaders$E page_index.h VERSION.h
558
- +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
564
+ +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
559565
@copy /Y nul: headers
560566
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -22,13 +22,13 @@
22 CFLAGS = -o
23 BCC = $(DMDIR)\bin\dmc $(CFLAGS)
24 TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL)
25 LIBS = $(DMDIR)\extra\lib\ zlib wsock32
26
27 SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
28
29 OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
30
31
32 RC=$(DMDIR)\bin\rcc
33 RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__
34
@@ -42,11 +42,11 @@
42
43 $(OBJDIR)\fossil.res: $B\win\fossil.rc
44 $(RC) $(RCFLAGS) -o$@ $**
45
46 $(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res
47 +echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo graph http http_socket http_ssl http_transport import info login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip shell sqlcmd sqlite3 th th_lang > $@
48 +echo fossil >> $@
49 +echo fossil >> $@
50 +echo $(LIBS) >> $@
51 +echo. >> $@
52 +echo fossil >> $@
@@ -305,10 +305,16 @@
305 $(OBJDIR)\info$O : info_.c info.h
306 $(TCC) -o$@ -c info_.c
307
308 info_.c : $(SRCDIR)\info.c
309 +translate$E $** > $@
 
 
 
 
 
 
310
311 $(OBJDIR)\login$O : login_.c login.h
312 $(TCC) -o$@ -c login_.c
313
314 login_.c : $(SRCDIR)\login.c
@@ -553,7 +559,7 @@
553
554 zip_.c : $(SRCDIR)\zip.c
555 +translate$E $** > $@
556
557 headers: makeheaders$E page_index.h VERSION.h
558 +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
559 @copy /Y nul: headers
560
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -22,13 +22,13 @@
22 CFLAGS = -o
23 BCC = $(DMDIR)\bin\dmc $(CFLAGS)
24 TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL)
25 LIBS = $(DMDIR)\extra\lib\ zlib wsock32
26
27 SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
28
29 OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\leaf$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
30
31
32 RC=$(DMDIR)\bin\rcc
33 RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__
34
@@ -42,11 +42,11 @@
42
43 $(OBJDIR)\fossil.res: $B\win\fossil.rc
44 $(RC) $(RCFLAGS) -o$@ $**
45
46 $(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res
47 +echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo graph http http_socket http_ssl http_transport import info leaf login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip shell sqlcmd sqlite3 th th_lang > $@
48 +echo fossil >> $@
49 +echo fossil >> $@
50 +echo $(LIBS) >> $@
51 +echo. >> $@
52 +echo fossil >> $@
@@ -305,10 +305,16 @@
305 $(OBJDIR)\info$O : info_.c info.h
306 $(TCC) -o$@ -c info_.c
307
308 info_.c : $(SRCDIR)\info.c
309 +translate$E $** > $@
310
311 $(OBJDIR)\leaf$O : leaf_.c leaf.h
312 $(TCC) -o$@ -c leaf_.c
313
314 leaf_.c : $(SRCDIR)\leaf.c
315 +translate$E $** > $@
316
317 $(OBJDIR)\login$O : login_.c login.h
318 $(TCC) -o$@ -c login_.c
319
320 login_.c : $(SRCDIR)\login.c
@@ -553,7 +559,7 @@
559
560 zip_.c : $(SRCDIR)\zip.c
561 +translate$E $** > $@
562
563 headers: makeheaders$E page_index.h VERSION.h
564 +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
565 @copy /Y nul: headers
566
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -104,10 +104,11 @@
104104
$(SRCDIR)/http_socket.c \
105105
$(SRCDIR)/http_ssl.c \
106106
$(SRCDIR)/http_transport.c \
107107
$(SRCDIR)/import.c \
108108
$(SRCDIR)/info.c \
109
+ $(SRCDIR)/leaf.c \
109110
$(SRCDIR)/login.c \
110111
$(SRCDIR)/main.c \
111112
$(SRCDIR)/manifest.c \
112113
$(SRCDIR)/md5.c \
113114
$(SRCDIR)/merge.c \
@@ -183,10 +184,11 @@
183184
$(OBJDIR)/http_socket_.c \
184185
$(OBJDIR)/http_ssl_.c \
185186
$(OBJDIR)/http_transport_.c \
186187
$(OBJDIR)/import_.c \
187188
$(OBJDIR)/info_.c \
189
+ $(OBJDIR)/leaf_.c \
188190
$(OBJDIR)/login_.c \
189191
$(OBJDIR)/main_.c \
190192
$(OBJDIR)/manifest_.c \
191193
$(OBJDIR)/md5_.c \
192194
$(OBJDIR)/merge_.c \
@@ -262,10 +264,11 @@
262264
$(OBJDIR)/http_socket.o \
263265
$(OBJDIR)/http_ssl.o \
264266
$(OBJDIR)/http_transport.o \
265267
$(OBJDIR)/import.o \
266268
$(OBJDIR)/info.o \
269
+ $(OBJDIR)/leaf.o \
267270
$(OBJDIR)/login.o \
268271
$(OBJDIR)/main.o \
269272
$(OBJDIR)/manifest.o \
270273
$(OBJDIR)/md5.o \
271274
$(OBJDIR)/merge.o \
@@ -363,11 +366,11 @@
363366
364367
365368
$(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
366369
$(MKINDEX) $(TRANS_SRC) >$@
367370
$(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
368
- $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
371
+ $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
369372
echo Done >$(OBJDIR)/headers
370373
371374
$(OBJDIR)/headers: Makefile
372375
Makefile:
373376
$(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -620,10 +623,17 @@
620623
621624
$(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
622625
$(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
623626
624627
info.h: $(OBJDIR)/headers
628
+$(OBJDIR)/leaf_.c: $(SRCDIR)/leaf.c $(OBJDIR)/translate
629
+ $(TRANSLATE) $(SRCDIR)/leaf.c >$(OBJDIR)/leaf_.c
630
+
631
+$(OBJDIR)/leaf.o: $(OBJDIR)/leaf_.c $(OBJDIR)/leaf.h $(SRCDIR)/config.h
632
+ $(XTCC) -o $(OBJDIR)/leaf.o -c $(OBJDIR)/leaf_.c
633
+
634
+leaf.h: $(OBJDIR)/headers
625635
$(OBJDIR)/login_.c: $(SRCDIR)/login.c $(OBJDIR)/translate
626636
$(TRANSLATE) $(SRCDIR)/login.c >$(OBJDIR)/login_.c
627637
628638
$(OBJDIR)/login.o: $(OBJDIR)/login_.c $(OBJDIR)/login.h $(SRCDIR)/config.h
629639
$(XTCC) -o $(OBJDIR)/login.o -c $(OBJDIR)/login_.c
630640
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -104,10 +104,11 @@
104 $(SRCDIR)/http_socket.c \
105 $(SRCDIR)/http_ssl.c \
106 $(SRCDIR)/http_transport.c \
107 $(SRCDIR)/import.c \
108 $(SRCDIR)/info.c \
 
109 $(SRCDIR)/login.c \
110 $(SRCDIR)/main.c \
111 $(SRCDIR)/manifest.c \
112 $(SRCDIR)/md5.c \
113 $(SRCDIR)/merge.c \
@@ -183,10 +184,11 @@
183 $(OBJDIR)/http_socket_.c \
184 $(OBJDIR)/http_ssl_.c \
185 $(OBJDIR)/http_transport_.c \
186 $(OBJDIR)/import_.c \
187 $(OBJDIR)/info_.c \
 
188 $(OBJDIR)/login_.c \
189 $(OBJDIR)/main_.c \
190 $(OBJDIR)/manifest_.c \
191 $(OBJDIR)/md5_.c \
192 $(OBJDIR)/merge_.c \
@@ -262,10 +264,11 @@
262 $(OBJDIR)/http_socket.o \
263 $(OBJDIR)/http_ssl.o \
264 $(OBJDIR)/http_transport.o \
265 $(OBJDIR)/import.o \
266 $(OBJDIR)/info.o \
 
267 $(OBJDIR)/login.o \
268 $(OBJDIR)/main.o \
269 $(OBJDIR)/manifest.o \
270 $(OBJDIR)/md5.o \
271 $(OBJDIR)/merge.o \
@@ -363,11 +366,11 @@
363
364
365 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
366 $(MKINDEX) $(TRANS_SRC) >$@
367 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
368 $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
369 echo Done >$(OBJDIR)/headers
370
371 $(OBJDIR)/headers: Makefile
372 Makefile:
373 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -620,10 +623,17 @@
620
621 $(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
622 $(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
623
624 info.h: $(OBJDIR)/headers
 
 
 
 
 
 
 
625 $(OBJDIR)/login_.c: $(SRCDIR)/login.c $(OBJDIR)/translate
626 $(TRANSLATE) $(SRCDIR)/login.c >$(OBJDIR)/login_.c
627
628 $(OBJDIR)/login.o: $(OBJDIR)/login_.c $(OBJDIR)/login.h $(SRCDIR)/config.h
629 $(XTCC) -o $(OBJDIR)/login.o -c $(OBJDIR)/login_.c
630
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -104,10 +104,11 @@
104 $(SRCDIR)/http_socket.c \
105 $(SRCDIR)/http_ssl.c \
106 $(SRCDIR)/http_transport.c \
107 $(SRCDIR)/import.c \
108 $(SRCDIR)/info.c \
109 $(SRCDIR)/leaf.c \
110 $(SRCDIR)/login.c \
111 $(SRCDIR)/main.c \
112 $(SRCDIR)/manifest.c \
113 $(SRCDIR)/md5.c \
114 $(SRCDIR)/merge.c \
@@ -183,10 +184,11 @@
184 $(OBJDIR)/http_socket_.c \
185 $(OBJDIR)/http_ssl_.c \
186 $(OBJDIR)/http_transport_.c \
187 $(OBJDIR)/import_.c \
188 $(OBJDIR)/info_.c \
189 $(OBJDIR)/leaf_.c \
190 $(OBJDIR)/login_.c \
191 $(OBJDIR)/main_.c \
192 $(OBJDIR)/manifest_.c \
193 $(OBJDIR)/md5_.c \
194 $(OBJDIR)/merge_.c \
@@ -262,10 +264,11 @@
264 $(OBJDIR)/http_socket.o \
265 $(OBJDIR)/http_ssl.o \
266 $(OBJDIR)/http_transport.o \
267 $(OBJDIR)/import.o \
268 $(OBJDIR)/info.o \
269 $(OBJDIR)/leaf.o \
270 $(OBJDIR)/login.o \
271 $(OBJDIR)/main.o \
272 $(OBJDIR)/manifest.o \
273 $(OBJDIR)/md5.o \
274 $(OBJDIR)/merge.o \
@@ -363,11 +366,11 @@
366
367
368 $(OBJDIR)/page_index.h: $(TRANS_SRC) $(OBJDIR)/mkindex
369 $(MKINDEX) $(TRANS_SRC) >$@
370 $(OBJDIR)/headers: $(OBJDIR)/page_index.h $(OBJDIR)/makeheaders $(OBJDIR)/VERSION.h
371 $(MAKEHEADERS) $(OBJDIR)/add_.c:$(OBJDIR)/add.h $(OBJDIR)/allrepo_.c:$(OBJDIR)/allrepo.h $(OBJDIR)/attach_.c:$(OBJDIR)/attach.h $(OBJDIR)/bag_.c:$(OBJDIR)/bag.h $(OBJDIR)/bisect_.c:$(OBJDIR)/bisect.h $(OBJDIR)/blob_.c:$(OBJDIR)/blob.h $(OBJDIR)/branch_.c:$(OBJDIR)/branch.h $(OBJDIR)/browse_.c:$(OBJDIR)/browse.h $(OBJDIR)/captcha_.c:$(OBJDIR)/captcha.h $(OBJDIR)/cgi_.c:$(OBJDIR)/cgi.h $(OBJDIR)/checkin_.c:$(OBJDIR)/checkin.h $(OBJDIR)/checkout_.c:$(OBJDIR)/checkout.h $(OBJDIR)/clearsign_.c:$(OBJDIR)/clearsign.h $(OBJDIR)/clone_.c:$(OBJDIR)/clone.h $(OBJDIR)/comformat_.c:$(OBJDIR)/comformat.h $(OBJDIR)/configure_.c:$(OBJDIR)/configure.h $(OBJDIR)/content_.c:$(OBJDIR)/content.h $(OBJDIR)/db_.c:$(OBJDIR)/db.h $(OBJDIR)/delta_.c:$(OBJDIR)/delta.h $(OBJDIR)/deltacmd_.c:$(OBJDIR)/deltacmd.h $(OBJDIR)/descendants_.c:$(OBJDIR)/descendants.h $(OBJDIR)/diff_.c:$(OBJDIR)/diff.h $(OBJDIR)/diffcmd_.c:$(OBJDIR)/diffcmd.h $(OBJDIR)/doc_.c:$(OBJDIR)/doc.h $(OBJDIR)/encode_.c:$(OBJDIR)/encode.h $(OBJDIR)/event_.c:$(OBJDIR)/event.h $(OBJDIR)/export_.c:$(OBJDIR)/export.h $(OBJDIR)/file_.c:$(OBJDIR)/file.h $(OBJDIR)/finfo_.c:$(OBJDIR)/finfo.h $(OBJDIR)/graph_.c:$(OBJDIR)/graph.h $(OBJDIR)/http_.c:$(OBJDIR)/http.h $(OBJDIR)/http_socket_.c:$(OBJDIR)/http_socket.h $(OBJDIR)/http_ssl_.c:$(OBJDIR)/http_ssl.h $(OBJDIR)/http_transport_.c:$(OBJDIR)/http_transport.h $(OBJDIR)/import_.c:$(OBJDIR)/import.h $(OBJDIR)/info_.c:$(OBJDIR)/info.h $(OBJDIR)/leaf_.c:$(OBJDIR)/leaf.h $(OBJDIR)/login_.c:$(OBJDIR)/login.h $(OBJDIR)/main_.c:$(OBJDIR)/main.h $(OBJDIR)/manifest_.c:$(OBJDIR)/manifest.h $(OBJDIR)/md5_.c:$(OBJDIR)/md5.h $(OBJDIR)/merge_.c:$(OBJDIR)/merge.h $(OBJDIR)/merge3_.c:$(OBJDIR)/merge3.h $(OBJDIR)/name_.c:$(OBJDIR)/name.h $(OBJDIR)/pivot_.c:$(OBJDIR)/pivot.h $(OBJDIR)/popen_.c:$(OBJDIR)/popen.h $(OBJDIR)/pqueue_.c:$(OBJDIR)/pqueue.h $(OBJDIR)/printf_.c:$(OBJDIR)/printf.h $(OBJDIR)/rebuild_.c:$(OBJDIR)/rebuild.h $(OBJDIR)/report_.c:$(OBJDIR)/report.h $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h $(OBJDIR)/search_.c:$(OBJDIR)/search.h $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h $(OBJDIR)/stash_.c:$(OBJDIR)/stash.h $(OBJDIR)/stat_.c:$(OBJDIR)/stat.h $(OBJDIR)/style_.c:$(OBJDIR)/style.h $(OBJDIR)/sync_.c:$(OBJDIR)/sync.h $(OBJDIR)/tag_.c:$(OBJDIR)/tag.h $(OBJDIR)/th_main_.c:$(OBJDIR)/th_main.h $(OBJDIR)/timeline_.c:$(OBJDIR)/timeline.h $(OBJDIR)/tkt_.c:$(OBJDIR)/tkt.h $(OBJDIR)/tktsetup_.c:$(OBJDIR)/tktsetup.h $(OBJDIR)/undo_.c:$(OBJDIR)/undo.h $(OBJDIR)/update_.c:$(OBJDIR)/update.h $(OBJDIR)/url_.c:$(OBJDIR)/url.h $(OBJDIR)/user_.c:$(OBJDIR)/user.h $(OBJDIR)/verify_.c:$(OBJDIR)/verify.h $(OBJDIR)/vfile_.c:$(OBJDIR)/vfile.h $(OBJDIR)/wiki_.c:$(OBJDIR)/wiki.h $(OBJDIR)/wikiformat_.c:$(OBJDIR)/wikiformat.h $(OBJDIR)/winhttp_.c:$(OBJDIR)/winhttp.h $(OBJDIR)/xfer_.c:$(OBJDIR)/xfer.h $(OBJDIR)/zip_.c:$(OBJDIR)/zip.h $(SRCDIR)/sqlite3.h $(SRCDIR)/th.h $(OBJDIR)/VERSION.h
372 echo Done >$(OBJDIR)/headers
373
374 $(OBJDIR)/headers: Makefile
375 Makefile:
376 $(OBJDIR)/add_.c: $(SRCDIR)/add.c $(OBJDIR)/translate
@@ -620,10 +623,17 @@
623
624 $(OBJDIR)/info.o: $(OBJDIR)/info_.c $(OBJDIR)/info.h $(SRCDIR)/config.h
625 $(XTCC) -o $(OBJDIR)/info.o -c $(OBJDIR)/info_.c
626
627 info.h: $(OBJDIR)/headers
628 $(OBJDIR)/leaf_.c: $(SRCDIR)/leaf.c $(OBJDIR)/translate
629 $(TRANSLATE) $(SRCDIR)/leaf.c >$(OBJDIR)/leaf_.c
630
631 $(OBJDIR)/leaf.o: $(OBJDIR)/leaf_.c $(OBJDIR)/leaf.h $(SRCDIR)/config.h
632 $(XTCC) -o $(OBJDIR)/leaf.o -c $(OBJDIR)/leaf_.c
633
634 leaf.h: $(OBJDIR)/headers
635 $(OBJDIR)/login_.c: $(SRCDIR)/login.c $(OBJDIR)/translate
636 $(TRANSLATE) $(SRCDIR)/login.c >$(OBJDIR)/login_.c
637
638 $(OBJDIR)/login.o: $(OBJDIR)/login_.c $(OBJDIR)/login.h $(SRCDIR)/config.h
639 $(XTCC) -o $(OBJDIR)/login.o -c $(OBJDIR)/login_.c
640
+10 -4
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -35,13 +35,13 @@
3535
BCC = $(CC) $(CFLAGS)
3636
TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(I18N) $(SSL) $(INCL)
3737
LIBS = $(ZLIB) ws2_32.lib $(SSLLIB)
3838
LIBDIR = -LIBPATH:$(MSCDIR)\extra\lib -LIBPATH:$(ZLIBDIR)
3939
40
-SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
40
+SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
4141
42
-OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
42
+OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\leaf$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
4343
4444
4545
APPNAME = $(OBJDIR)\fossil$(E)
4646
4747
all: $(OBJDIR) $(APPNAME)
@@ -49,11 +49,11 @@
4949
$(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\linkopts
5050
cd $(OBJDIR)
5151
link -LINK -OUT:$@ $(LIBDIR) @linkopts
5252
5353
$(OBJDIR)\linkopts: $B\win\Makefile.msc
54
- echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo graph http http_socket http_ssl http_transport import info login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip sqlite3 th th_lang > $@
54
+ echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo graph http http_socket http_ssl http_transport import info leaf login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip sqlite3 th th_lang > $@
5555
echo $(LIBS) >> $@
5656
5757
5858
5959
@@ -309,10 +309,16 @@
309309
$(OBJDIR)\info$O : info_.c info.h
310310
$(TCC) /Fo$@ -c info_.c
311311
312312
info_.c : $(SRCDIR)\info.c
313313
translate$E $** > $@
314
+
315
+$(OBJDIR)\leaf$O : leaf_.c leaf.h
316
+ $(TCC) /Fo$@ -c leaf_.c
317
+
318
+leaf_.c : $(SRCDIR)\leaf.c
319
+ translate$E $** > $@
314320
315321
$(OBJDIR)\login$O : login_.c login.h
316322
$(TCC) /Fo$@ -c login_.c
317323
318324
login_.c : $(SRCDIR)\login.c
@@ -557,7 +563,7 @@
557563
558564
zip_.c : $(SRCDIR)\zip.c
559565
translate$E $** > $@
560566
561567
headers: makeheaders$E page_index.h VERSION.h
562
- makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
568
+ makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
563569
@copy /Y nul: headers
564570
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -35,13 +35,13 @@
35 BCC = $(CC) $(CFLAGS)
36 TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(I18N) $(SSL) $(INCL)
37 LIBS = $(ZLIB) ws2_32.lib $(SSLLIB)
38 LIBDIR = -LIBPATH:$(MSCDIR)\extra\lib -LIBPATH:$(ZLIBDIR)
39
40 SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
41
42 OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
43
44
45 APPNAME = $(OBJDIR)\fossil$(E)
46
47 all: $(OBJDIR) $(APPNAME)
@@ -49,11 +49,11 @@
49 $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\linkopts
50 cd $(OBJDIR)
51 link -LINK -OUT:$@ $(LIBDIR) @linkopts
52
53 $(OBJDIR)\linkopts: $B\win\Makefile.msc
54 echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo graph http http_socket http_ssl http_transport import info login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip sqlite3 th th_lang > $@
55 echo $(LIBS) >> $@
56
57
58
59
@@ -309,10 +309,16 @@
309 $(OBJDIR)\info$O : info_.c info.h
310 $(TCC) /Fo$@ -c info_.c
311
312 info_.c : $(SRCDIR)\info.c
313 translate$E $** > $@
 
 
 
 
 
 
314
315 $(OBJDIR)\login$O : login_.c login.h
316 $(TCC) /Fo$@ -c login_.c
317
318 login_.c : $(SRCDIR)\login.c
@@ -557,7 +563,7 @@
557
558 zip_.c : $(SRCDIR)\zip.c
559 translate$E $** > $@
560
561 headers: makeheaders$E page_index.h VERSION.h
562 makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
563 @copy /Y nul: headers
564
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -35,13 +35,13 @@
35 BCC = $(CC) $(CFLAGS)
36 TCC = $(CC) -c $(CFLAGS) $(MSCDEF) $(I18N) $(SSL) $(INCL)
37 LIBS = $(ZLIB) ws2_32.lib $(SSLLIB)
38 LIBDIR = -LIBPATH:$(MSCDIR)\extra\lib -LIBPATH:$(ZLIBDIR)
39
40 SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c leaf_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c
41
42 OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\graph$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\leaf$O $(OBJDIR)\login$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\name$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\rebuild$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\shun$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winhttp$O $(OBJDIR)\xfer$O $(OBJDIR)\zip$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O
43
44
45 APPNAME = $(OBJDIR)\fossil$(E)
46
47 all: $(OBJDIR) $(APPNAME)
@@ -49,11 +49,11 @@
49 $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\linkopts
50 cd $(OBJDIR)
51 link -LINK -OUT:$@ $(LIBDIR) @linkopts
52
53 $(OBJDIR)\linkopts: $B\win\Makefile.msc
54 echo add allrepo attach bag bisect blob branch browse captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd doc encode event export file finfo graph http http_socket http_ssl http_transport import info leaf login main manifest md5 merge merge3 name pivot popen pqueue printf rebuild report rss schema search setup sha1 shun skins sqlcmd stash stat style sync tag th_main timeline tkt tktsetup undo update url user verify vfile wiki wikiformat winhttp xfer zip sqlite3 th th_lang > $@
55 echo $(LIBS) >> $@
56
57
58
59
@@ -309,10 +309,16 @@
309 $(OBJDIR)\info$O : info_.c info.h
310 $(TCC) /Fo$@ -c info_.c
311
312 info_.c : $(SRCDIR)\info.c
313 translate$E $** > $@
314
315 $(OBJDIR)\leaf$O : leaf_.c leaf.h
316 $(TCC) /Fo$@ -c leaf_.c
317
318 leaf_.c : $(SRCDIR)\leaf.c
319 translate$E $** > $@
320
321 $(OBJDIR)\login$O : login_.c login.h
322 $(TCC) /Fo$@ -c login_.c
323
324 login_.c : $(SRCDIR)\login.c
@@ -557,7 +563,7 @@
563
564 zip_.c : $(SRCDIR)\zip.c
565 translate$E $** > $@
566
567 headers: makeheaders$E page_index.h VERSION.h
568 makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h graph_.c:graph.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h leaf_.c:leaf.h login_.c:login.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h name_.c:name.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h rebuild_.c:rebuild.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h update_.c:update.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h
569 @copy /Y nul: headers
570
--- www/checkin_names.wiki
+++ www/checkin_names.wiki
@@ -1,9 +1,9 @@
11
<title>Check-in Names</title>
22
3
-Many Fossil commands and [./webui.wiki | web-interface] URLs accept
4
-check-in names as an argument. For example, the "info" command
3
+Many Fossil [/help|commands] and [./webui.wiki | web-interface] URLs accept
4
+check-in names as an argument. For example, the "[/help/info|info]" command
55
accepts an optional check-in name to identify the specific checkout
66
about which information is desired:
77
88
<blockquote>
99
<tt>fossil info</tt> <i>checkin-name</i>
@@ -110,11 +110,11 @@
110110
optionally be followed by "<b>utc</b>".
111111
112112
In its default configuration, Fossil interprets and displays all dates
113113
in Universal Coordinated Time (UTC). This tends to work the best for
114114
distributed projects where participants are scattered around the globe.
115
-But there is an open on the Admin/Timeline page of the web-interface to
115
+But there is an option on the Admin/Timeline page of the web-interface to
116116
switch to local time. The "<b>utc</b>" suffix on an timestamp check-in
117117
name is meaningless if Fossil is in the default mode of using UTC for
118118
everything, but if Fossil has been switched to localtime mode, then the
119119
"<b>utc</b>" suffix means to interpret that particular timestamp using
120120
UTC instead localtime.
121121
--- www/checkin_names.wiki
+++ www/checkin_names.wiki
@@ -1,9 +1,9 @@
1 <title>Check-in Names</title>
2
3 Many Fossil commands and [./webui.wiki | web-interface] URLs accept
4 check-in names as an argument. For example, the "info" command
5 accepts an optional check-in name to identify the specific checkout
6 about which information is desired:
7
8 <blockquote>
9 <tt>fossil info</tt> <i>checkin-name</i>
@@ -110,11 +110,11 @@
110 optionally be followed by "<b>utc</b>".
111
112 In its default configuration, Fossil interprets and displays all dates
113 in Universal Coordinated Time (UTC). This tends to work the best for
114 distributed projects where participants are scattered around the globe.
115 But there is an open on the Admin/Timeline page of the web-interface to
116 switch to local time. The "<b>utc</b>" suffix on an timestamp check-in
117 name is meaningless if Fossil is in the default mode of using UTC for
118 everything, but if Fossil has been switched to localtime mode, then the
119 "<b>utc</b>" suffix means to interpret that particular timestamp using
120 UTC instead localtime.
121
--- www/checkin_names.wiki
+++ www/checkin_names.wiki
@@ -1,9 +1,9 @@
1 <title>Check-in Names</title>
2
3 Many Fossil [/help|commands] and [./webui.wiki | web-interface] URLs accept
4 check-in names as an argument. For example, the "[/help/info|info]" command
5 accepts an optional check-in name to identify the specific checkout
6 about which information is desired:
7
8 <blockquote>
9 <tt>fossil info</tt> <i>checkin-name</i>
@@ -110,11 +110,11 @@
110 optionally be followed by "<b>utc</b>".
111
112 In its default configuration, Fossil interprets and displays all dates
113 in Universal Coordinated Time (UTC). This tends to work the best for
114 distributed projects where participants are scattered around the globe.
115 But there is an option on the Admin/Timeline page of the web-interface to
116 switch to local time. The "<b>utc</b>" suffix on an timestamp check-in
117 name is meaningless if Fossil is in the default mode of using UTC for
118 everything, but if Fossil has been switched to localtime mode, then the
119 "<b>utc</b>" suffix means to interpret that particular timestamp using
120 UTC instead localtime.
121
+50 -13
--- www/faq.tcl
+++ www/faq.tcl
@@ -9,14 +9,15 @@
99
}
1010
1111
faq {
1212
What GUIs are available for fossil?
1313
} {
14
- The fossil executable comes with a web-based GUI built in. Just run:
14
+ The fossil executable comes with a [./webui.wiki | web-based GUI] built in.
15
+ Just run:
1516
1617
<blockquote>
17
- <b>fossil ui</b> <i>REPOSITORY-FILENAME</i>
18
+ <b>fossil [/help/ui|ui]</b> <i>REPOSITORY-FILENAME</i>
1819
</blockquote>
1920
2021
And your default web browser should pop up and automatically point to
2122
the fossil interface. (Hint: You can omit the <i>REPOSITORY-FILENAME</i>
2223
if you are within an open check-out.)
@@ -30,41 +31,69 @@
3031
and Tagging</a> document.
3132
}
3233
3334
3435
faq {
35
- How do I create a new branch in fossil?
36
+ How do I create a new branch?
3637
} {
3738
There are lots of ways:
3839
39
- When you are checking in a new change using the <b>commit</b>
40
+ When you are checking in a new change using the <b>[/help/commit|commit]</b>
4041
command, you can add the option "--branch <i>BRANCH-NAME</i>" to
41
- make the change be the founding check-in for a new branch. You can
42
+ make the new check-in be the first check-in for a new branch. You can
4243
also add the "--bgcolor <i>COLOR</i>" option to give the branch a
4344
specific background color on timelines.
4445
45
- If you want to create a new branch whose founding check-in is the
46
+ If you want to create a new branch whose initial content is the
4647
same as an existing check-in, use this command:
4748
4849
<blockquote>
49
- <b>fossil branch new</b> <i>BRANCH-NAME BASIS</i>
50
+ <b>fossil [/help/branch|branch] new</b> <i>BRANCH-NAME BASIS</i>
5051
</blockquote>
5152
5253
The <i>BRANCH-NAME</i> argument is the name of the new branch and the
5354
<i>BASIS</i> argument is the name of the check-in that the branch splits
5455
off from.
5556
5657
If you already have a fork in your check-in tree and you want to convert
5758
that fork to a branch, you can do this from the web interface.
5859
First locate the check-in that you want to be
59
- the founding check-in of your branch on the timeline and click on its
60
+ the initial check-in of your branch on the timeline and click on its
6061
link so that you are on the <b>ci</b> page. Then find the "<b>edit</b>"
6162
link (near the "Commands:" label) and click on that. On the
6263
"Edit Check-in" page, check the box beside "Branching:" and fill in
6364
the name of your new branch to the right and press the "Apply Changes"
6465
button.
6566
}
67
+
68
+faq {
69
+ How do I tag a check-in?
70
+} {
71
+ There are several ways:
72
+
73
+ When you are checking in a new change using the <b>[/help/commit|commit]</b>
74
+ command, you can add a tag to that check-in using the
75
+ "--tag <i>TAGNAME</i>" command-line option.
76
+
77
+ If you want add a tag to an existing check-in, you can use the
78
+ <b>[/help/tag|tag]</b> command. For example:
79
+
80
+ <blockquote>
81
+ <b>fossil [/help/branch|tag] add</b> <i>TAGNAME</i> <i>CHECK-IN</i>
82
+ </blockquote>
83
+
84
+ The CHECK-IN in the previous line can be any
85
+ [./checkin_names.wiki | valid check-in name format].
86
+
87
+ You can also add (and remove) tags from a check-in using the
88
+ [./webui.wiki | web interface]. First locate the check-in that you
89
+ what to tag on the tmline, then click on the link to go the detailed
90
+ information page for that check-in. Then find the "<b>edit</b>"
91
+ link (near the "Commands:" label) and click on that. There are
92
+ controls on the edit page that allow new tags to be added and existing
93
+ tags to be removed.
94
+}
6695
6796
faq {
6897
How do I create a private branch that won't get pushed back to the
6998
main repository.
7099
} {
@@ -97,25 +126,33 @@
97126
faq {
98127
How do I make a clone of the fossil self-hosting repository?
99128
} {
100129
Any of the following commands should work:
101130
<blockquote><pre>
102
- fossil clone http://www.fossil-scm.org/ fossil.fossil<br>
103
- fossil clone http://www2.fossil-scm.org/ fossil.fossil<br>
104
- fossil clone http://www.hwaci.com/cgi-bin/fossil fossil.fossil
131
+ fossil [/help/clone|clone] http://www.fossil-scm.org/ fossil.fossil<br>
132
+ fossil [/help/clone|clone] http://www2.fossil-scm.org/ fossil.fossil<br>
133
+ fossil [/help/clone|clone] http://www3.fossli-scm.org/site.cgi fossil.fossil
105134
</pre></blockquote>
106135
Once you have the repository cloned, you can open a local check-out
107136
as follows:
108137
<blockquote><pre>
109
- mkdir src; cd src; fossil open ../fossil.fossil
138
+ mkdir src; cd src; fossil [/help/open|open] ../fossil.fossil
110139
</pre></blockquote>
111140
Thereafter you should be able to keep your local check-out up to date
112141
with the latest code in the public repository by typing:
113142
<blockquote><pre>
114
- fossil update
143
+ fossil [/help/update|update]
115144
</pre></blockquote>
116145
}
146
+
147
+faq {
148
+ How do I import or export content from and to other version control systems?
149
+} {
150
+ Please see [./inout.wiki | Import And Export]
151
+}
152
+
153
+
117154
118155
#############################################################################
119156
# Code to actually generate the FAQ
120157
#
121158
puts "<title>Fossil FAQ</title>"
122159
--- www/faq.tcl
+++ www/faq.tcl
@@ -9,14 +9,15 @@
9 }
10
11 faq {
12 What GUIs are available for fossil?
13 } {
14 The fossil executable comes with a web-based GUI built in. Just run:
 
15
16 <blockquote>
17 <b>fossil ui</b> <i>REPOSITORY-FILENAME</i>
18 </blockquote>
19
20 And your default web browser should pop up and automatically point to
21 the fossil interface. (Hint: You can omit the <i>REPOSITORY-FILENAME</i>
22 if you are within an open check-out.)
@@ -30,41 +31,69 @@
30 and Tagging</a> document.
31 }
32
33
34 faq {
35 How do I create a new branch in fossil?
36 } {
37 There are lots of ways:
38
39 When you are checking in a new change using the <b>commit</b>
40 command, you can add the option "--branch <i>BRANCH-NAME</i>" to
41 make the change be the founding check-in for a new branch. You can
42 also add the "--bgcolor <i>COLOR</i>" option to give the branch a
43 specific background color on timelines.
44
45 If you want to create a new branch whose founding check-in is the
46 same as an existing check-in, use this command:
47
48 <blockquote>
49 <b>fossil branch new</b> <i>BRANCH-NAME BASIS</i>
50 </blockquote>
51
52 The <i>BRANCH-NAME</i> argument is the name of the new branch and the
53 <i>BASIS</i> argument is the name of the check-in that the branch splits
54 off from.
55
56 If you already have a fork in your check-in tree and you want to convert
57 that fork to a branch, you can do this from the web interface.
58 First locate the check-in that you want to be
59 the founding check-in of your branch on the timeline and click on its
60 link so that you are on the <b>ci</b> page. Then find the "<b>edit</b>"
61 link (near the "Commands:" label) and click on that. On the
62 "Edit Check-in" page, check the box beside "Branching:" and fill in
63 the name of your new branch to the right and press the "Apply Changes"
64 button.
65 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
67 faq {
68 How do I create a private branch that won't get pushed back to the
69 main repository.
70 } {
@@ -97,25 +126,33 @@
97 faq {
98 How do I make a clone of the fossil self-hosting repository?
99 } {
100 Any of the following commands should work:
101 <blockquote><pre>
102 fossil clone http://www.fossil-scm.org/ fossil.fossil<br>
103 fossil clone http://www2.fossil-scm.org/ fossil.fossil<br>
104 fossil clone http://www.hwaci.com/cgi-bin/fossil fossil.fossil
105 </pre></blockquote>
106 Once you have the repository cloned, you can open a local check-out
107 as follows:
108 <blockquote><pre>
109 mkdir src; cd src; fossil open ../fossil.fossil
110 </pre></blockquote>
111 Thereafter you should be able to keep your local check-out up to date
112 with the latest code in the public repository by typing:
113 <blockquote><pre>
114 fossil update
115 </pre></blockquote>
116 }
 
 
 
 
 
 
 
 
117
118 #############################################################################
119 # Code to actually generate the FAQ
120 #
121 puts "<title>Fossil FAQ</title>"
122
--- www/faq.tcl
+++ www/faq.tcl
@@ -9,14 +9,15 @@
9 }
10
11 faq {
12 What GUIs are available for fossil?
13 } {
14 The fossil executable comes with a [./webui.wiki | web-based GUI] built in.
15 Just run:
16
17 <blockquote>
18 <b>fossil [/help/ui|ui]</b> <i>REPOSITORY-FILENAME</i>
19 </blockquote>
20
21 And your default web browser should pop up and automatically point to
22 the fossil interface. (Hint: You can omit the <i>REPOSITORY-FILENAME</i>
23 if you are within an open check-out.)
@@ -30,41 +31,69 @@
31 and Tagging</a> document.
32 }
33
34
35 faq {
36 How do I create a new branch?
37 } {
38 There are lots of ways:
39
40 When you are checking in a new change using the <b>[/help/commit|commit]</b>
41 command, you can add the option "--branch <i>BRANCH-NAME</i>" to
42 make the new check-in be the first check-in for a new branch. You can
43 also add the "--bgcolor <i>COLOR</i>" option to give the branch a
44 specific background color on timelines.
45
46 If you want to create a new branch whose initial content is the
47 same as an existing check-in, use this command:
48
49 <blockquote>
50 <b>fossil [/help/branch|branch] new</b> <i>BRANCH-NAME BASIS</i>
51 </blockquote>
52
53 The <i>BRANCH-NAME</i> argument is the name of the new branch and the
54 <i>BASIS</i> argument is the name of the check-in that the branch splits
55 off from.
56
57 If you already have a fork in your check-in tree and you want to convert
58 that fork to a branch, you can do this from the web interface.
59 First locate the check-in that you want to be
60 the initial check-in of your branch on the timeline and click on its
61 link so that you are on the <b>ci</b> page. Then find the "<b>edit</b>"
62 link (near the "Commands:" label) and click on that. On the
63 "Edit Check-in" page, check the box beside "Branching:" and fill in
64 the name of your new branch to the right and press the "Apply Changes"
65 button.
66 }
67
68 faq {
69 How do I tag a check-in?
70 } {
71 There are several ways:
72
73 When you are checking in a new change using the <b>[/help/commit|commit]</b>
74 command, you can add a tag to that check-in using the
75 "--tag <i>TAGNAME</i>" command-line option.
76
77 If you want add a tag to an existing check-in, you can use the
78 <b>[/help/tag|tag]</b> command. For example:
79
80 <blockquote>
81 <b>fossil [/help/branch|tag] add</b> <i>TAGNAME</i> <i>CHECK-IN</i>
82 </blockquote>
83
84 The CHECK-IN in the previous line can be any
85 [./checkin_names.wiki | valid check-in name format].
86
87 You can also add (and remove) tags from a check-in using the
88 [./webui.wiki | web interface]. First locate the check-in that you
89 what to tag on the tmline, then click on the link to go the detailed
90 information page for that check-in. Then find the "<b>edit</b>"
91 link (near the "Commands:" label) and click on that. There are
92 controls on the edit page that allow new tags to be added and existing
93 tags to be removed.
94 }
95
96 faq {
97 How do I create a private branch that won't get pushed back to the
98 main repository.
99 } {
@@ -97,25 +126,33 @@
126 faq {
127 How do I make a clone of the fossil self-hosting repository?
128 } {
129 Any of the following commands should work:
130 <blockquote><pre>
131 fossil [/help/clone|clone] http://www.fossil-scm.org/ fossil.fossil<br>
132 fossil [/help/clone|clone] http://www2.fossil-scm.org/ fossil.fossil<br>
133 fossil [/help/clone|clone] http://www3.fossli-scm.org/site.cgi fossil.fossil
134 </pre></blockquote>
135 Once you have the repository cloned, you can open a local check-out
136 as follows:
137 <blockquote><pre>
138 mkdir src; cd src; fossil [/help/open|open] ../fossil.fossil
139 </pre></blockquote>
140 Thereafter you should be able to keep your local check-out up to date
141 with the latest code in the public repository by typing:
142 <blockquote><pre>
143 fossil [/help/update|update]
144 </pre></blockquote>
145 }
146
147 faq {
148 How do I import or export content from and to other version control systems?
149 } {
150 Please see [./inout.wiki | Import And Export]
151 }
152
153
154
155 #############################################################################
156 # Code to actually generate the FAQ
157 #
158 puts "<title>Fossil FAQ</title>"
159
+58 -23
--- www/faq.wiki
+++ www/faq.wiki
@@ -4,24 +4,27 @@
44
<p>Note: See also <a href="qandc.wiki">Questions and Criticisms</a>.
55
66
<ol>
77
<li><a href="#q1">What GUIs are available for fossil?</a></li>
88
<li><a href="#q2">What is the difference between a "branch" and a "fork"?</a></li>
9
-<li><a href="#q3">How do I create a new branch in fossil?</a></li>
10
-<li><a href="#q4">How do I create a private branch that won't get pushed back to the
9
+<li><a href="#q3">How do I create a new branch?</a></li>
10
+<li><a href="#q4">How do I tag a check-in?</a></li>
11
+<li><a href="#q5">How do I create a private branch that won't get pushed back to the
1112
main repository.</a></li>
12
-<li><a href="#q5">How can I delete inappropriate content from my fossil repository?</a></li>
13
-<li><a href="#q6">How do I make a clone of the fossil self-hosting repository?</a></li>
13
+<li><a href="#q6">How can I delete inappropriate content from my fossil repository?</a></li>
14
+<li><a href="#q7">How do I make a clone of the fossil self-hosting repository?</a></li>
15
+<li><a href="#q8">How do I import or export content from and to other version control systems?</a></li>
1416
</ol>
1517
<hr>
1618
<a name="q1"></a>
1719
<p><b>(1) What GUIs are available for fossil?</b></p>
1820
19
-<blockquote>The fossil executable comes with a web-based GUI built in. Just run:
21
+<blockquote>The fossil executable comes with a [./webui.wiki | web-based GUI] built in.
22
+Just run:
2023
2124
<blockquote>
22
-<b>fossil ui</b> <i>REPOSITORY-FILENAME</i>
25
+<b>fossil [/help/ui|ui]</b> <i>REPOSITORY-FILENAME</i>
2326
</blockquote>
2427
2528
And your default web browser should pop up and automatically point to
2629
the fossil interface. (Hint: You can omit the <i>REPOSITORY-FILENAME</i>
2730
if you are within an open check-out.)</blockquote></li>
@@ -32,49 +35,76 @@
3235
<blockquote>This is a big question - too big to answer in a FAQ. Please
3336
read the <a href="branching.wiki">Branching, Forking, Merging,
3437
and Tagging</a> document.</blockquote></li>
3538
3639
<a name="q3"></a>
37
-<p><b>(3) How do I create a new branch in fossil?</b></p>
40
+<p><b>(3) How do I create a new branch?</b></p>
3841
3942
<blockquote>There are lots of ways:
4043
41
-When you are checking in a new change using the <b>commit</b>
44
+When you are checking in a new change using the <b>[/help/commit|commit]</b>
4245
command, you can add the option "--branch <i>BRANCH-NAME</i>" to
43
-make the change be the founding check-in for a new branch. You can
46
+make the new check-in be the first check-in for a new branch. You can
4447
also add the "--bgcolor <i>COLOR</i>" option to give the branch a
4548
specific background color on timelines.
4649
47
-If you want to create a new branch whose founding check-in is the
50
+If you want to create a new branch whose initial content is the
4851
same as an existing check-in, use this command:
4952
5053
<blockquote>
51
-<b>fossil branch new</b> <i>BRANCH-NAME BASIS</i>
54
+<b>fossil [/help/branch|branch] new</b> <i>BRANCH-NAME BASIS</i>
5255
</blockquote>
5356
5457
The <i>BRANCH-NAME</i> argument is the name of the new branch and the
5558
<i>BASIS</i> argument is the name of the check-in that the branch splits
5659
off from.
5760
5861
If you already have a fork in your check-in tree and you want to convert
5962
that fork to a branch, you can do this from the web interface.
6063
First locate the check-in that you want to be
61
-the founding check-in of your branch on the timeline and click on its
64
+the initial check-in of your branch on the timeline and click on its
6265
link so that you are on the <b>ci</b> page. Then find the "<b>edit</b>"
6366
link (near the "Commands:" label) and click on that. On the
6467
"Edit Check-in" page, check the box beside "Branching:" and fill in
6568
the name of your new branch to the right and press the "Apply Changes"
6669
button.</blockquote></li>
6770
6871
<a name="q4"></a>
69
-<p><b>(4) How do I create a private branch that won't get pushed back to the
72
+<p><b>(4) How do I tag a check-in?</b></p>
73
+
74
+<blockquote>There are several ways:
75
+
76
+When you are checking in a new change using the <b>[/help/commit|commit]</b>
77
+command, you can add a tag to that check-in using the
78
+"--tag <i>TAGNAME</i>" command-line option.
79
+
80
+If you want add a tag to an existing check-in, you can use the
81
+<b>[/help/tag|tag]</b> command. For example:
82
+
83
+<blockquote>
84
+<b>fossil [/help/branch|tag] add</b> <i>TAGNAME</i> <i>CHECK-IN</i>
85
+</blockquote>
86
+
87
+The CHECK-IN in the previous line can be any
88
+[./checkin_names.wiki | valid check-in name format].
89
+
90
+You can also add (and remove) tags from a check-in using the
91
+[./webui.wiki | web interface]. First locate the check-in that you
92
+what to tag on the tmline, then click on the link to go the detailed
93
+information page for that check-in. Then find the "<b>edit</b>"
94
+link (near the "Commands:" label) and click on that. There are
95
+controls on the edit page that allow new tags to be added and existing
96
+tags to be removed.</blockquote></li>
97
+
98
+<a name="q5"></a>
99
+<p><b>(5) How do I create a private branch that won't get pushed back to the
70100
main repository.</b></p>
71101
72102
<blockquote>Use the <b>--private</b> command-line option on the
73103
<b>commit</b> command. The result will be a check-in which exists on
74104
your local repository only and is never pushed to other repositories.
75
-All descendants of a private check-in are also private.
105
+All descendents of a private check-in are also private.
76106
77107
Unless you specify something different using the <b>--branch</b> and/or
78108
<b>--bgcolor</b> options, the new private check-in will be put on a branch
79109
named "private" with an orange background color.
80110
@@ -86,31 +116,36 @@
86116
as if all the changes that occurred on your private branch occurred in
87117
a single check-in.
88118
Of course, you can also keep your branch private forever simply
89119
by not merging the changes in the private branch back into the trunk.</blockquote></li>
90120
91
-<a name="q5"></a>
92
-<p><b>(5) How can I delete inappropriate content from my fossil repository?</b></p>
121
+<a name="q6"></a>
122
+<p><b>(6) How can I delete inappropriate content from my fossil repository?</b></p>
93123
94124
<blockquote>See the article on [./shunning.wiki | "shunning"] for details.</blockquote></li>
95125
96
-<a name="q6"></a>
97
-<p><b>(6) How do I make a clone of the fossil self-hosting repository?</b></p>
126
+<a name="q7"></a>
127
+<p><b>(7) How do I make a clone of the fossil self-hosting repository?</b></p>
98128
99129
<blockquote>Any of the following commands should work:
100130
<blockquote><pre>
101
-fossil clone http://www.fossil-scm.org/ fossil.fossil<br>
102
-fossil clone http://www2.fossil-scm.org/ fossil.fossil<br>
103
-fossil clone http://www.hwaci.com/cgi-bin/fossil fossil.fossil
131
+fossil [/help/clone|clone] http://www.fossil-scm.org/ fossil.fossil<br>
132
+fossil [/help/clone|clone] http://www2.fossil-scm.org/ fossil.fossil<br>
133
+fossil [/help/clone|clone] http://www3.fossli-scm.org/site.cgi fossil.fossil
104134
</pre></blockquote>
105135
Once you have the repository cloned, you can open a local check-out
106136
as follows:
107137
<blockquote><pre>
108
-mkdir src; cd src; fossil open ../fossil.fossil
138
+mkdir src; cd src; fossil [/help/open|open] ../fossil.fossil
109139
</pre></blockquote>
110140
Thereafter you should be able to keep your local check-out up to date
111141
with the latest code in the public repository by typing:
112142
<blockquote><pre>
113
-fossil update
143
+fossil [/help/update|update]
114144
</pre></blockquote></blockquote></li>
115145
146
+<a name="q8"></a>
147
+<p><b>(8) How do I import or export content from and to other version control systems?</b></p>
148
+
149
+<blockquote>Please see [./inout.wiki | Import And Export]</blockquote></li>
150
+
116151
</ol>
117152
--- www/faq.wiki
+++ www/faq.wiki
@@ -4,24 +4,27 @@
4 <p>Note: See also <a href="qandc.wiki">Questions and Criticisms</a>.
5
6 <ol>
7 <li><a href="#q1">What GUIs are available for fossil?</a></li>
8 <li><a href="#q2">What is the difference between a "branch" and a "fork"?</a></li>
9 <li><a href="#q3">How do I create a new branch in fossil?</a></li>
10 <li><a href="#q4">How do I create a private branch that won't get pushed back to the
 
11 main repository.</a></li>
12 <li><a href="#q5">How can I delete inappropriate content from my fossil repository?</a></li>
13 <li><a href="#q6">How do I make a clone of the fossil self-hosting repository?</a></li>
 
14 </ol>
15 <hr>
16 <a name="q1"></a>
17 <p><b>(1) What GUIs are available for fossil?</b></p>
18
19 <blockquote>The fossil executable comes with a web-based GUI built in. Just run:
 
20
21 <blockquote>
22 <b>fossil ui</b> <i>REPOSITORY-FILENAME</i>
23 </blockquote>
24
25 And your default web browser should pop up and automatically point to
26 the fossil interface. (Hint: You can omit the <i>REPOSITORY-FILENAME</i>
27 if you are within an open check-out.)</blockquote></li>
@@ -32,49 +35,76 @@
32 <blockquote>This is a big question - too big to answer in a FAQ. Please
33 read the <a href="branching.wiki">Branching, Forking, Merging,
34 and Tagging</a> document.</blockquote></li>
35
36 <a name="q3"></a>
37 <p><b>(3) How do I create a new branch in fossil?</b></p>
38
39 <blockquote>There are lots of ways:
40
41 When you are checking in a new change using the <b>commit</b>
42 command, you can add the option "--branch <i>BRANCH-NAME</i>" to
43 make the change be the founding check-in for a new branch. You can
44 also add the "--bgcolor <i>COLOR</i>" option to give the branch a
45 specific background color on timelines.
46
47 If you want to create a new branch whose founding check-in is the
48 same as an existing check-in, use this command:
49
50 <blockquote>
51 <b>fossil branch new</b> <i>BRANCH-NAME BASIS</i>
52 </blockquote>
53
54 The <i>BRANCH-NAME</i> argument is the name of the new branch and the
55 <i>BASIS</i> argument is the name of the check-in that the branch splits
56 off from.
57
58 If you already have a fork in your check-in tree and you want to convert
59 that fork to a branch, you can do this from the web interface.
60 First locate the check-in that you want to be
61 the founding check-in of your branch on the timeline and click on its
62 link so that you are on the <b>ci</b> page. Then find the "<b>edit</b>"
63 link (near the "Commands:" label) and click on that. On the
64 "Edit Check-in" page, check the box beside "Branching:" and fill in
65 the name of your new branch to the right and press the "Apply Changes"
66 button.</blockquote></li>
67
68 <a name="q4"></a>
69 <p><b>(4) How do I create a private branch that won't get pushed back to the
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70 main repository.</b></p>
71
72 <blockquote>Use the <b>--private</b> command-line option on the
73 <b>commit</b> command. The result will be a check-in which exists on
74 your local repository only and is never pushed to other repositories.
75 All descendants of a private check-in are also private.
76
77 Unless you specify something different using the <b>--branch</b> and/or
78 <b>--bgcolor</b> options, the new private check-in will be put on a branch
79 named "private" with an orange background color.
80
@@ -86,31 +116,36 @@
86 as if all the changes that occurred on your private branch occurred in
87 a single check-in.
88 Of course, you can also keep your branch private forever simply
89 by not merging the changes in the private branch back into the trunk.</blockquote></li>
90
91 <a name="q5"></a>
92 <p><b>(5) How can I delete inappropriate content from my fossil repository?</b></p>
93
94 <blockquote>See the article on [./shunning.wiki | "shunning"] for details.</blockquote></li>
95
96 <a name="q6"></a>
97 <p><b>(6) How do I make a clone of the fossil self-hosting repository?</b></p>
98
99 <blockquote>Any of the following commands should work:
100 <blockquote><pre>
101 fossil clone http://www.fossil-scm.org/ fossil.fossil<br>
102 fossil clone http://www2.fossil-scm.org/ fossil.fossil<br>
103 fossil clone http://www.hwaci.com/cgi-bin/fossil fossil.fossil
104 </pre></blockquote>
105 Once you have the repository cloned, you can open a local check-out
106 as follows:
107 <blockquote><pre>
108 mkdir src; cd src; fossil open ../fossil.fossil
109 </pre></blockquote>
110 Thereafter you should be able to keep your local check-out up to date
111 with the latest code in the public repository by typing:
112 <blockquote><pre>
113 fossil update
114 </pre></blockquote></blockquote></li>
115
 
 
 
 
 
116 </ol>
117
--- www/faq.wiki
+++ www/faq.wiki
@@ -4,24 +4,27 @@
4 <p>Note: See also <a href="qandc.wiki">Questions and Criticisms</a>.
5
6 <ol>
7 <li><a href="#q1">What GUIs are available for fossil?</a></li>
8 <li><a href="#q2">What is the difference between a "branch" and a "fork"?</a></li>
9 <li><a href="#q3">How do I create a new branch?</a></li>
10 <li><a href="#q4">How do I tag a check-in?</a></li>
11 <li><a href="#q5">How do I create a private branch that won't get pushed back to the
12 main repository.</a></li>
13 <li><a href="#q6">How can I delete inappropriate content from my fossil repository?</a></li>
14 <li><a href="#q7">How do I make a clone of the fossil self-hosting repository?</a></li>
15 <li><a href="#q8">How do I import or export content from and to other version control systems?</a></li>
16 </ol>
17 <hr>
18 <a name="q1"></a>
19 <p><b>(1) What GUIs are available for fossil?</b></p>
20
21 <blockquote>The fossil executable comes with a [./webui.wiki | web-based GUI] built in.
22 Just run:
23
24 <blockquote>
25 <b>fossil [/help/ui|ui]</b> <i>REPOSITORY-FILENAME</i>
26 </blockquote>
27
28 And your default web browser should pop up and automatically point to
29 the fossil interface. (Hint: You can omit the <i>REPOSITORY-FILENAME</i>
30 if you are within an open check-out.)</blockquote></li>
@@ -32,49 +35,76 @@
35 <blockquote>This is a big question - too big to answer in a FAQ. Please
36 read the <a href="branching.wiki">Branching, Forking, Merging,
37 and Tagging</a> document.</blockquote></li>
38
39 <a name="q3"></a>
40 <p><b>(3) How do I create a new branch?</b></p>
41
42 <blockquote>There are lots of ways:
43
44 When you are checking in a new change using the <b>[/help/commit|commit]</b>
45 command, you can add the option "--branch <i>BRANCH-NAME</i>" to
46 make the new check-in be the first check-in for a new branch. You can
47 also add the "--bgcolor <i>COLOR</i>" option to give the branch a
48 specific background color on timelines.
49
50 If you want to create a new branch whose initial content is the
51 same as an existing check-in, use this command:
52
53 <blockquote>
54 <b>fossil [/help/branch|branch] new</b> <i>BRANCH-NAME BASIS</i>
55 </blockquote>
56
57 The <i>BRANCH-NAME</i> argument is the name of the new branch and the
58 <i>BASIS</i> argument is the name of the check-in that the branch splits
59 off from.
60
61 If you already have a fork in your check-in tree and you want to convert
62 that fork to a branch, you can do this from the web interface.
63 First locate the check-in that you want to be
64 the initial check-in of your branch on the timeline and click on its
65 link so that you are on the <b>ci</b> page. Then find the "<b>edit</b>"
66 link (near the "Commands:" label) and click on that. On the
67 "Edit Check-in" page, check the box beside "Branching:" and fill in
68 the name of your new branch to the right and press the "Apply Changes"
69 button.</blockquote></li>
70
71 <a name="q4"></a>
72 <p><b>(4) How do I tag a check-in?</b></p>
73
74 <blockquote>There are several ways:
75
76 When you are checking in a new change using the <b>[/help/commit|commit]</b>
77 command, you can add a tag to that check-in using the
78 "--tag <i>TAGNAME</i>" command-line option.
79
80 If you want add a tag to an existing check-in, you can use the
81 <b>[/help/tag|tag]</b> command. For example:
82
83 <blockquote>
84 <b>fossil [/help/branch|tag] add</b> <i>TAGNAME</i> <i>CHECK-IN</i>
85 </blockquote>
86
87 The CHECK-IN in the previous line can be any
88 [./checkin_names.wiki | valid check-in name format].
89
90 You can also add (and remove) tags from a check-in using the
91 [./webui.wiki | web interface]. First locate the check-in that you
92 what to tag on the tmline, then click on the link to go the detailed
93 information page for that check-in. Then find the "<b>edit</b>"
94 link (near the "Commands:" label) and click on that. There are
95 controls on the edit page that allow new tags to be added and existing
96 tags to be removed.</blockquote></li>
97
98 <a name="q5"></a>
99 <p><b>(5) How do I create a private branch that won't get pushed back to the
100 main repository.</b></p>
101
102 <blockquote>Use the <b>--private</b> command-line option on the
103 <b>commit</b> command. The result will be a check-in which exists on
104 your local repository only and is never pushed to other repositories.
105 All descendents of a private check-in are also private.
106
107 Unless you specify something different using the <b>--branch</b> and/or
108 <b>--bgcolor</b> options, the new private check-in will be put on a branch
109 named "private" with an orange background color.
110
@@ -86,31 +116,36 @@
116 as if all the changes that occurred on your private branch occurred in
117 a single check-in.
118 Of course, you can also keep your branch private forever simply
119 by not merging the changes in the private branch back into the trunk.</blockquote></li>
120
121 <a name="q6"></a>
122 <p><b>(6) How can I delete inappropriate content from my fossil repository?</b></p>
123
124 <blockquote>See the article on [./shunning.wiki | "shunning"] for details.</blockquote></li>
125
126 <a name="q7"></a>
127 <p><b>(7) How do I make a clone of the fossil self-hosting repository?</b></p>
128
129 <blockquote>Any of the following commands should work:
130 <blockquote><pre>
131 fossil [/help/clone|clone] http://www.fossil-scm.org/ fossil.fossil<br>
132 fossil [/help/clone|clone] http://www2.fossil-scm.org/ fossil.fossil<br>
133 fossil [/help/clone|clone] http://www3.fossli-scm.org/site.cgi fossil.fossil
134 </pre></blockquote>
135 Once you have the repository cloned, you can open a local check-out
136 as follows:
137 <blockquote><pre>
138 mkdir src; cd src; fossil [/help/open|open] ../fossil.fossil
139 </pre></blockquote>
140 Thereafter you should be able to keep your local check-out up to date
141 with the latest code in the public repository by typing:
142 <blockquote><pre>
143 fossil [/help/update|update]
144 </pre></blockquote></blockquote></li>
145
146 <a name="q8"></a>
147 <p><b>(8) How do I import or export content from and to other version control systems?</b></p>
148
149 <blockquote>Please see [./inout.wiki | Import And Export]</blockquote></li>
150
151 </ol>
152
--- www/makefile.wiki
+++ www/makefile.wiki
@@ -85,11 +85,11 @@
8585
the exceptions described above.
8686
8787
<h1>3.0 Automatically generated files</h1>
8888
8989
The "VERSION.h" header file contains some C preprocessor macros that
90
-identify the version of Fossil that is to be build. The VERSION.h file
90
+identify the version of Fossil that is to be build. The VERSION.h file is
9191
generated automatically from information extracted from the "manifest"
9292
and "manifest.uuid" source files in the root directory of the source tree.
9393
(The "manifest" and "manifest.uuid" files are automatically generated and
9494
updated by Fossil itself. See the [/help/setting | fossil set manifest]
9595
command for additional information.)
@@ -112,11 +112,11 @@
112112
113113
<h1>4.0 Preprocessing</h1>
114114
115115
There are three preprocessors for the Fossil sources. The mkindex
116116
and translate preprocessors can be run in any order. The makeheaders
117
-preprocessor has to be run after translate.
117
+preprocessor must be run after translate.
118118
119119
<h2>4.1 The mkindex preprocessor</h2>
120120
121121
The mkindex program scans the "src.c" source files looking for special
122122
comments that identify routines that implement of various Fossil commands,
123123
--- www/makefile.wiki
+++ www/makefile.wiki
@@ -85,11 +85,11 @@
85 the exceptions described above.
86
87 <h1>3.0 Automatically generated files</h1>
88
89 The "VERSION.h" header file contains some C preprocessor macros that
90 identify the version of Fossil that is to be build. The VERSION.h file
91 generated automatically from information extracted from the "manifest"
92 and "manifest.uuid" source files in the root directory of the source tree.
93 (The "manifest" and "manifest.uuid" files are automatically generated and
94 updated by Fossil itself. See the [/help/setting | fossil set manifest]
95 command for additional information.)
@@ -112,11 +112,11 @@
112
113 <h1>4.0 Preprocessing</h1>
114
115 There are three preprocessors for the Fossil sources. The mkindex
116 and translate preprocessors can be run in any order. The makeheaders
117 preprocessor has to be run after translate.
118
119 <h2>4.1 The mkindex preprocessor</h2>
120
121 The mkindex program scans the "src.c" source files looking for special
122 comments that identify routines that implement of various Fossil commands,
123
--- www/makefile.wiki
+++ www/makefile.wiki
@@ -85,11 +85,11 @@
85 the exceptions described above.
86
87 <h1>3.0 Automatically generated files</h1>
88
89 The "VERSION.h" header file contains some C preprocessor macros that
90 identify the version of Fossil that is to be build. The VERSION.h file is
91 generated automatically from information extracted from the "manifest"
92 and "manifest.uuid" source files in the root directory of the source tree.
93 (The "manifest" and "manifest.uuid" files are automatically generated and
94 updated by Fossil itself. See the [/help/setting | fossil set manifest]
95 command for additional information.)
@@ -112,11 +112,11 @@
112
113 <h1>4.0 Preprocessing</h1>
114
115 There are three preprocessors for the Fossil sources. The mkindex
116 and translate preprocessors can be run in any order. The makeheaders
117 preprocessor must be run after translate.
118
119 <h2>4.1 The mkindex preprocessor</h2>
120
121 The mkindex program scans the "src.c" source files looking for special
122 comments that identify routines that implement of various Fossil commands,
123
+37 -22
--- www/webui.wiki
+++ www/webui.wiki
@@ -1,42 +1,55 @@
11
<title>The Fossil Web Interface</title>
2
-<h2>Overview</h2>
32
4
-One of the innovative features of fossil is its built-in web interface.
3
+One of the innovative features of Fossil is its built-in web interface.
54
This web interface provides everything you need to run a software
65
development project:
76
87
* [./bugtheory.wiki | Ticketing and bug tracking]
98
* [./wikitheory.wiki | Wiki]
109
* [./embeddeddoc.wiki | On-line documentation]
1110
* Status information
1211
* Timelines
12
+ * Graphs of revision and branching history
13
+ * [./event.wiki | Blogs, News, and Announcements]
1314
* File and version lists and differences
15
+ * Download historical versions as ZIP archives
1416
* Historical change data
15
- * Links to download historical versions as ZIP archives
17
+ * Add and remove tags on checkins
18
+ * Move checkins between branches
19
+ * Revise checkin comments
20
+ * Manage user credentials and access permissions
21
+ * And so forth...
1622
17
-You get all of this, and more, for free when you use fossil.
23
+You get all of this, and more, for free when you use Fossil.
1824
There are no extra programs to install or setup.
1925
Everything you need is already pre-configured and built into the
20
-self-contained, stand-alone fossil executable.
26
+self-contained, stand-alone Fossil executable.
2127
2228
As an example of how useful this web interface can be,
23
-the entire [./index.wiki | fossil website] (except for the
24
-[http://www.fossil-scm.org/download.html | precompiled binary download page]),
29
+the entire [./index.wiki | Fossil website] (except for the
30
+[http://www.fossil-scm.org/download.html | download page]),
2531
including the document you are now reading,
26
-is rendered using the stock fossil web interface, with no enhancements,
32
+is rendered using the Fossil web interface, with no enhancements,
2733
and little customization.
2834
29
-Note also that because fossil is a distributed system, you can run
35
+<blockquote>
36
+<b>Key point:</b> <i>The Fossil website is just a running instance
37
+of Fossil!
38
+</blockquote>
39
+
40
+Note also that because Fossil is a distributed system, you can run
3041
the web interface on your local machine while off network (for example,
3142
while on an airplane) including
3243
making changes to wiki pages and/or trouble ticket, then synchronize with your
33
-co-workers after you reconnect.
44
+co-workers after you reconnect. When you clone a Fossil repository, you
45
+don't just get the project source code, you get the entire project
46
+management website.
3447
3548
<h2>Drop-Dead Simple Startup</h2>
3649
37
-To start using the built-in fossil web interface on an existing fossil
50
+To start using the built-in Fossil web interface on an existing Fossil
3851
repository, simply type this:
3952
4053
<b>fossil ui existing-repository.fossil</b>
4154
4255
Substitute the name of your repository, of course.
@@ -46,30 +59,32 @@
4659
from within an open check-out, you can omit the repository name:
4760
4861
<b>fossil ui</b>
4962
5063
The latter case is a very useful short-cut when you are working on a
51
-fossil project and you want to quickly do some work with the web interface.
52
-Notice that fossil automatically finds an unused TCP port to run the
64
+Fossil project and you want to quickly do some work with the web interface.
65
+Notice that Fossil automatically finds an unused TCP port to run the
5366
server own and automatically points your web browser to the correct
5467
URL. So there is never any fumbling around trying to find an open
5568
port or to type arcane strings into your browser URL entry box.
5669
The interface just pops right up, ready to run.
5770
58
-The fossil web interface is also very easy to setup and run on a
71
+The Fossil web interface is also very easy to setup and run on a
5972
network server, as either a CGI program or from inetd. Details on how
6073
to do that are described further below.
6174
6275
<h2>Things To Do Using The Web Interface</h2>
6376
6477
You can view <b>timelines</b> of changes to the project. The default
6578
"Timeline" link on the menu bar takes you to a page that shows the 20
66
-most recent check-ins, wiki page edits, and ticket/bug-report changes.
79
+most recent check-ins, wiki page edits, ticket/bug-report changes,
80
+and/or blog entries.
6781
This gives a very useful snapshot of what has been happening lately on the
6882
project. You can click to go further back in time, if needed. Or
6983
follow hyperlinks to see details, including diffs and annotated diffs,
70
-of individual check-ins, wiki page edits, or ticket changes.
84
+of individual check-ins, wiki page edits, ticket changes, and
85
+blog edits.
7186
7287
You can view and edit <b>tickets and bug reports</b> by following the
7388
"Tickets" link on the menu bar.
7489
Fossil is backed by an SQL database, so users with appropriate permissions
7590
can write new ticket report formats based on SQL query statements.
@@ -87,12 +102,12 @@
87102
[/wiki_rules | wiki formatting rules] so you won't have to spend a lot
88103
of time learning a new markup language. And, as with tickets, all of
89104
your edits will automatically merge with those of your co-workers when
90105
your repository synchronizes.
91106
92
-You can view summary reports of <b>leaves and branches</b> in the
93
-check-in graph by visiting the "Leaves" or "Branches" links on the
107
+You can view summary reports of <b>branches</b> in the
108
+check-in graph by visiting the "Branche" links on the
94109
menu bar. From those pages you can follow hyperlinks to get additional
95110
details. These screens allow you to easily keep track of what is going
96111
on with separate subteams within your project team.
97112
98113
The "Files" link on the menu allows you to browse though the <b>file
@@ -117,11 +132,11 @@
117132
up as the "Home" page can be changed. It is often useful to set the
118133
"Home" page to be a wiki page or an embedded document.
119134
120135
<h2>Installing On A Network Server</h2>
121136
122
-When you create a new fossil project and after you have configured it
137
+When you create a new Fossil project and after you have configured it
123138
like you want it using the web interface, you can make the project
124139
available to a distributed team by simply copying the single
125140
repository file up to a web server that supports CGI. Just put the
126141
<b>sample-project.fossil</b> file in a directory where CGI scripts
127142
have both read and write permission on the file and the directory that
@@ -131,18 +146,18 @@
131146
#!/usr/local/bin/fossil
132147
repository: /home/www/sample-project.fossil
133148
</verbatim>
134149
135150
Adjust the script above so that the paths are correct for your system,
136
-of course, and also make sure the fossil binary is installed on the server.
151
+of course, and also make sure the Fossil binary is installed on the server.
137152
But that is <u>all</u> you have to do. You now have everything you need to host
138153
a distributed software development project in less than five minutes using a
139154
two-line CGI script.
140155
141156
You don't have a CGI-capable web server running on your server machine?
142
-Not a problem. The fossil interface can also be launched via inetd or
143
-xinetd. An inetd configuration line sufficient to launch the fossil
157
+Not a problem. The Fossil interface can also be launched via inetd or
158
+xinetd. An inetd configuration line sufficient to launch the Fossil
144159
web interface looks like this:
145160
146161
<verbatim>
147162
80 stream tcp nowait.1000 root /usr/local/bin/fossil \
148163
/usr/local/bin/fossil http /home/www/sample-project.fossil
149164
--- www/webui.wiki
+++ www/webui.wiki
@@ -1,42 +1,55 @@
1 <title>The Fossil Web Interface</title>
2 <h2>Overview</h2>
3
4 One of the innovative features of fossil is its built-in web interface.
5 This web interface provides everything you need to run a software
6 development project:
7
8 * [./bugtheory.wiki | Ticketing and bug tracking]
9 * [./wikitheory.wiki | Wiki]
10 * [./embeddeddoc.wiki | On-line documentation]
11 * Status information
12 * Timelines
 
 
13 * File and version lists and differences
 
14 * Historical change data
15 * Links to download historical versions as ZIP archives
 
 
 
 
16
17 You get all of this, and more, for free when you use fossil.
18 There are no extra programs to install or setup.
19 Everything you need is already pre-configured and built into the
20 self-contained, stand-alone fossil executable.
21
22 As an example of how useful this web interface can be,
23 the entire [./index.wiki | fossil website] (except for the
24 [http://www.fossil-scm.org/download.html | precompiled binary download page]),
25 including the document you are now reading,
26 is rendered using the stock fossil web interface, with no enhancements,
27 and little customization.
28
29 Note also that because fossil is a distributed system, you can run
 
 
 
 
 
30 the web interface on your local machine while off network (for example,
31 while on an airplane) including
32 making changes to wiki pages and/or trouble ticket, then synchronize with your
33 co-workers after you reconnect.
 
 
34
35 <h2>Drop-Dead Simple Startup</h2>
36
37 To start using the built-in fossil web interface on an existing fossil
38 repository, simply type this:
39
40 <b>fossil ui existing-repository.fossil</b>
41
42 Substitute the name of your repository, of course.
@@ -46,30 +59,32 @@
46 from within an open check-out, you can omit the repository name:
47
48 <b>fossil ui</b>
49
50 The latter case is a very useful short-cut when you are working on a
51 fossil project and you want to quickly do some work with the web interface.
52 Notice that fossil automatically finds an unused TCP port to run the
53 server own and automatically points your web browser to the correct
54 URL. So there is never any fumbling around trying to find an open
55 port or to type arcane strings into your browser URL entry box.
56 The interface just pops right up, ready to run.
57
58 The fossil web interface is also very easy to setup and run on a
59 network server, as either a CGI program or from inetd. Details on how
60 to do that are described further below.
61
62 <h2>Things To Do Using The Web Interface</h2>
63
64 You can view <b>timelines</b> of changes to the project. The default
65 "Timeline" link on the menu bar takes you to a page that shows the 20
66 most recent check-ins, wiki page edits, and ticket/bug-report changes.
 
67 This gives a very useful snapshot of what has been happening lately on the
68 project. You can click to go further back in time, if needed. Or
69 follow hyperlinks to see details, including diffs and annotated diffs,
70 of individual check-ins, wiki page edits, or ticket changes.
 
71
72 You can view and edit <b>tickets and bug reports</b> by following the
73 "Tickets" link on the menu bar.
74 Fossil is backed by an SQL database, so users with appropriate permissions
75 can write new ticket report formats based on SQL query statements.
@@ -87,12 +102,12 @@
87 [/wiki_rules | wiki formatting rules] so you won't have to spend a lot
88 of time learning a new markup language. And, as with tickets, all of
89 your edits will automatically merge with those of your co-workers when
90 your repository synchronizes.
91
92 You can view summary reports of <b>leaves and branches</b> in the
93 check-in graph by visiting the "Leaves" or "Branches" links on the
94 menu bar. From those pages you can follow hyperlinks to get additional
95 details. These screens allow you to easily keep track of what is going
96 on with separate subteams within your project team.
97
98 The "Files" link on the menu allows you to browse though the <b>file
@@ -117,11 +132,11 @@
117 up as the "Home" page can be changed. It is often useful to set the
118 "Home" page to be a wiki page or an embedded document.
119
120 <h2>Installing On A Network Server</h2>
121
122 When you create a new fossil project and after you have configured it
123 like you want it using the web interface, you can make the project
124 available to a distributed team by simply copying the single
125 repository file up to a web server that supports CGI. Just put the
126 <b>sample-project.fossil</b> file in a directory where CGI scripts
127 have both read and write permission on the file and the directory that
@@ -131,18 +146,18 @@
131 #!/usr/local/bin/fossil
132 repository: /home/www/sample-project.fossil
133 </verbatim>
134
135 Adjust the script above so that the paths are correct for your system,
136 of course, and also make sure the fossil binary is installed on the server.
137 But that is <u>all</u> you have to do. You now have everything you need to host
138 a distributed software development project in less than five minutes using a
139 two-line CGI script.
140
141 You don't have a CGI-capable web server running on your server machine?
142 Not a problem. The fossil interface can also be launched via inetd or
143 xinetd. An inetd configuration line sufficient to launch the fossil
144 web interface looks like this:
145
146 <verbatim>
147 80 stream tcp nowait.1000 root /usr/local/bin/fossil \
148 /usr/local/bin/fossil http /home/www/sample-project.fossil
149
--- www/webui.wiki
+++ www/webui.wiki
@@ -1,42 +1,55 @@
1 <title>The Fossil Web Interface</title>
 
2
3 One of the innovative features of Fossil is its built-in web interface.
4 This web interface provides everything you need to run a software
5 development project:
6
7 * [./bugtheory.wiki | Ticketing and bug tracking]
8 * [./wikitheory.wiki | Wiki]
9 * [./embeddeddoc.wiki | On-line documentation]
10 * Status information
11 * Timelines
12 * Graphs of revision and branching history
13 * [./event.wiki | Blogs, News, and Announcements]
14 * File and version lists and differences
15 * Download historical versions as ZIP archives
16 * Historical change data
17 * Add and remove tags on checkins
18 * Move checkins between branches
19 * Revise checkin comments
20 * Manage user credentials and access permissions
21 * And so forth...
22
23 You get all of this, and more, for free when you use Fossil.
24 There are no extra programs to install or setup.
25 Everything you need is already pre-configured and built into the
26 self-contained, stand-alone Fossil executable.
27
28 As an example of how useful this web interface can be,
29 the entire [./index.wiki | Fossil website] (except for the
30 [http://www.fossil-scm.org/download.html | download page]),
31 including the document you are now reading,
32 is rendered using the Fossil web interface, with no enhancements,
33 and little customization.
34
35 <blockquote>
36 <b>Key point:</b> <i>The Fossil website is just a running instance
37 of Fossil!
38 </blockquote>
39
40 Note also that because Fossil is a distributed system, you can run
41 the web interface on your local machine while off network (for example,
42 while on an airplane) including
43 making changes to wiki pages and/or trouble ticket, then synchronize with your
44 co-workers after you reconnect. When you clone a Fossil repository, you
45 don't just get the project source code, you get the entire project
46 management website.
47
48 <h2>Drop-Dead Simple Startup</h2>
49
50 To start using the built-in Fossil web interface on an existing Fossil
51 repository, simply type this:
52
53 <b>fossil ui existing-repository.fossil</b>
54
55 Substitute the name of your repository, of course.
@@ -46,30 +59,32 @@
59 from within an open check-out, you can omit the repository name:
60
61 <b>fossil ui</b>
62
63 The latter case is a very useful short-cut when you are working on a
64 Fossil project and you want to quickly do some work with the web interface.
65 Notice that Fossil automatically finds an unused TCP port to run the
66 server own and automatically points your web browser to the correct
67 URL. So there is never any fumbling around trying to find an open
68 port or to type arcane strings into your browser URL entry box.
69 The interface just pops right up, ready to run.
70
71 The Fossil web interface is also very easy to setup and run on a
72 network server, as either a CGI program or from inetd. Details on how
73 to do that are described further below.
74
75 <h2>Things To Do Using The Web Interface</h2>
76
77 You can view <b>timelines</b> of changes to the project. The default
78 "Timeline" link on the menu bar takes you to a page that shows the 20
79 most recent check-ins, wiki page edits, ticket/bug-report changes,
80 and/or blog entries.
81 This gives a very useful snapshot of what has been happening lately on the
82 project. You can click to go further back in time, if needed. Or
83 follow hyperlinks to see details, including diffs and annotated diffs,
84 of individual check-ins, wiki page edits, ticket changes, and
85 blog edits.
86
87 You can view and edit <b>tickets and bug reports</b> by following the
88 "Tickets" link on the menu bar.
89 Fossil is backed by an SQL database, so users with appropriate permissions
90 can write new ticket report formats based on SQL query statements.
@@ -87,12 +102,12 @@
102 [/wiki_rules | wiki formatting rules] so you won't have to spend a lot
103 of time learning a new markup language. And, as with tickets, all of
104 your edits will automatically merge with those of your co-workers when
105 your repository synchronizes.
106
107 You can view summary reports of <b>branches</b> in the
108 check-in graph by visiting the "Branche" links on the
109 menu bar. From those pages you can follow hyperlinks to get additional
110 details. These screens allow you to easily keep track of what is going
111 on with separate subteams within your project team.
112
113 The "Files" link on the menu allows you to browse though the <b>file
@@ -117,11 +132,11 @@
132 up as the "Home" page can be changed. It is often useful to set the
133 "Home" page to be a wiki page or an embedded document.
134
135 <h2>Installing On A Network Server</h2>
136
137 When you create a new Fossil project and after you have configured it
138 like you want it using the web interface, you can make the project
139 available to a distributed team by simply copying the single
140 repository file up to a web server that supports CGI. Just put the
141 <b>sample-project.fossil</b> file in a directory where CGI scripts
142 have both read and write permission on the file and the directory that
@@ -131,18 +146,18 @@
146 #!/usr/local/bin/fossil
147 repository: /home/www/sample-project.fossil
148 </verbatim>
149
150 Adjust the script above so that the paths are correct for your system,
151 of course, and also make sure the Fossil binary is installed on the server.
152 But that is <u>all</u> you have to do. You now have everything you need to host
153 a distributed software development project in less than five minutes using a
154 two-line CGI script.
155
156 You don't have a CGI-capable web server running on your server machine?
157 Not a problem. The Fossil interface can also be launched via inetd or
158 xinetd. An inetd configuration line sufficient to launch the Fossil
159 web interface looks like this:
160
161 <verbatim>
162 80 stream tcp nowait.1000 root /usr/local/bin/fossil \
163 /usr/local/bin/fossil http /home/www/sample-project.fossil
164

Keyboard Shortcuts

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