Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch timeline_cmd_dash_n_fix-2 Excluding Merge-Ins
This is equivalent to a diff from d7f457b456 to 4fdffd7d3e
|
2013-10-24
| ||
| 10:53 | Don't set _USE_32BIT_TIME_T when using MSVC++ compiler: On <VS2005 this flag has no effect, and for >=VS2005 the executable links with msvcrt80.dll (or higher), so the fact that localtime64 is missing from msvcrt.dll is no issue there. ... (check-in: 6112b31d8c user: jan.nijtmans tags: trunk) | |
|
2013-10-22
| ||
| 08:34 | Merge updates from trunk. ... (check-in: 0943f37246 user: mistachkin tags: tkt-change-hook) | |
|
2013-10-21
| ||
| 18:38 | merge trunk ... (check-in: 0e4dee009e user: jan.nijtmans tags: timeline_cmd_dash_n_fix) | |
| 17:00 | Merge from trunk. ... (check-in: f3037e1763 user: jan tags: jan-httpsproxytunnel) | |
| 08:23 | Let the "-limit" option in "fossil tag find" be handled exactly the same as in "fossil timeline". This allows output of more than 2000 lines if the "-limit" parameter requests so. ... (check-in: 1f77efc321 user: jan.nijtmans tags: limit-tag) | |
| 07:41 | Fix default "fossil timeline -n" value. Merge trunk, and simplify code makeing use of the trunk improvements. ... (Closed-Leaf check-in: 4fdffd7d3e user: jan.nijtmans tags: timeline_cmd_dash_n_fix-2) | |
| 06:29 | Simplify handling of the limit in print_timeline. ... (check-in: d7f457b456 user: mistachkin tags: trunk) | |
| 05:06 | Make "fossil timeline -n" more accurate in counting lines in verbose mode. Allow print_timeline() to be used without limits, assuming that the query already contains a suitable limitation. Improve documentation. ... (check-in: 0c312bee20 user: jan.nijtmans tags: trunk) | |
|
2013-10-20
| ||
| 06:40 | Possibly simpler alternative to timeline_cmd_dash_n_fix branch ... (check-in: c6a49e29b9 user: jan.nijtmans tags: timeline_cmd_dash_n_fix-2) | |
Changes to src/timeline.c.
| ︙ | ︙ | |||
1699 1700 1701 1702 1703 1704 1705 |
zType = find_option("type","t",1);
if ( !zLimit ){
zLimit = find_option("count",0,1);
}
if( zLimit ){
n = atoi(zLimit);
}else{
| | | 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 |
zType = find_option("type","t",1);
if ( !zLimit ){
zLimit = find_option("count",0,1);
}
if( zLimit ){
n = atoi(zLimit);
}else{
n = -20;
}
if( g.argc>=4 ){
k = strlen(g.argv[2]);
if( strncmp(g.argv[2],"before",k)==0 ){
mode = 1;
}else if( strncmp(g.argv[2],"after",k)==0 && k>1 ){
mode = 2;
|
| ︙ | ︙ | |||
1776 1777 1778 1779 1780 1781 1782 1783 1784 |
}
blob_appendf(&sql, " AND blob.rid IN ok");
}
if( zType && (zType[0]!='a') ){
blob_appendf(&sql, " AND event.type=%Q ", zType);
}
blob_appendf(&sql, " ORDER BY event.mtime DESC");
db_prepare(&q, blob_str(&sql));
blob_reset(&sql);
| > > > | | 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 |
}
blob_appendf(&sql, " AND blob.rid IN ok");
}
if( zType && (zType[0]!='a') ){
blob_appendf(&sql, " AND event.type=%Q ", zType);
}
blob_appendf(&sql, " ORDER BY event.mtime DESC");
if(n>0){
blob_appendf(&sql, " LIMIT %d", n);
}
db_prepare(&q, blob_str(&sql));
blob_reset(&sql);
print_timeline(&q, n<0?-n:0, verboseFlag);
db_finalize(&q);
}
/*
** This is a version of the "localtime()" function from the standard
** C library. It converts a unix timestamp (seconds since 1970) into
** a broken-out local time structure.
|
| ︙ | ︙ |