66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
-
+
-
-
-
-
+
+
|
if( !db_exists("SELECT 1 FROM mlink WHERE mid=%d", tid) ){
fossil_fatal("not a version: %s", g.argv[2]);
}
}else{
compute_leaves(vid);
if( db_int(0, "SELECT count(*) FROM leaves")>1 ){
db_prepare(&q,
"SELECT blob.rid, uuid, datetime(event.mtime,'localtime'),"
"%s "
" comment || ' (by ' || user || ')', 1, 1"
" FROM event, blob"
" WHERE event.type='ci' AND blob.rid=event.objid"
" AND event.objid IN leaves"
" ORDER BY event.mtime DESC"
" ORDER BY event.mtime DESC",
timeline_query_for_tty()
);
print_timeline(&q, 100);
db_finalize(&q);
fossil_fatal("Multiple descendents");
}
tid = db_int(0, "SELECT rid FROM leaves");
}
|