Fossil

Check-in [9340f2fc]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:tiny cleanup
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | brlist-cleanup
Files: files | file ages | folders
SHA1:9340f2fc814dbd62cb8c6956eb8ed4474d4414ce
User & Date: baruch 2016-05-17 11:44:57
Context
2016-05-17
11:44
tiny cleanup Leaf check-in: 9340f2fc user: baruch tags: brlist-cleanup
11:35
Adds option to show branch colors on brlist page check-in: 2fa1a8a9 user: baruch tags: brlist-cleanup
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/branch.c.

366
367
368
369
370
371
372

373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
    const char *zMergeTo = db_column_text(&q, 3);
    int nCkin = db_column_int(&q, 4);
    const char *zLastCkin = db_column_text(&q, 5);
    const char *zBgClr = db_column_text(&q, 6);
    char *zAge = human_readable_age(rNow - rMtime);
    sqlite3_int64 iMtime = (sqlite3_int64)(rMtime*86400.0);
    if( zMergeTo && zMergeTo[0]==0 ) zMergeTo = 0;

    if( zBgClr == 0 ){
      if( zBranch==0 || strcmp(zBranch,"trunk")==0 ){
        zBgClr = 0;
      }else{
        zBgClr = hash_color(zBranch);
      }
    }
    if( show_colors ){
      @ <tr style="background-color:%s(zBgClr)">
    }else{
      @ <tr>
    }
    @ <td>%z(href("%R/timeline?n=100&r=%T",zBranch))%h(zBranch)</a></td>
    @ <td data-sortkey="%016llx(-iMtime)">%s(zAge)</td>
    @ <td>%d(nCkin)</td>







>
|
|
<
<
|
|
|
<







366
367
368
369
370
371
372
373
374
375


376
377
378

379
380
381
382
383
384
385
    const char *zMergeTo = db_column_text(&q, 3);
    int nCkin = db_column_int(&q, 4);
    const char *zLastCkin = db_column_text(&q, 5);
    const char *zBgClr = db_column_text(&q, 6);
    char *zAge = human_readable_age(rNow - rMtime);
    sqlite3_int64 iMtime = (sqlite3_int64)(rMtime*86400.0);
    if( zMergeTo && zMergeTo[0]==0 ) zMergeTo = 0;
    if( show_colors ){
      if( zBgClr == 0 ){
        if( zBranch!=0 && strcmp(zBranch,"trunk")!=0 ){


          zBgClr = hash_color(zBranch);
        }
      }

      @ <tr style="background-color:%s(zBgClr)">
    }else{
      @ <tr>
    }
    @ <td>%z(href("%R/timeline?n=100&r=%T",zBranch))%h(zBranch)</a></td>
    @ <td data-sortkey="%016llx(-iMtime)">%s(zAge)</td>
    @ <td>%d(nCkin)</td>