Fossil

Check-in [e2431b17]
Login

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

Overview
Comment:Fix an issue with the command-line timeline. Fix typos in documentation.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e2431b17df0b3865fde767b35937e8cd726d76b8
User & Date: drh 2009-11-09 21:32:36
References
2009-11-11
14:59 New ticket [974618fe] fossil all rebuild does redundant rebuilds on windows. artifact: 724d623b user: rwilson
Context
2009-11-11
14:59
Better error messages when "sync" fails due to server problems. Ticket [bfb8427cdd5] check-in: 0690aa18 user: drh tags: trunk
2009-11-09
21:32
Fix an issue with the command-line timeline. Fix typos in documentation. check-in: e2431b17 user: drh tags: trunk
00:58
On the "timeline" command, if a YYYY-MM-DD date string is entered without the "before" keyword, then show all changes on the date given. check-in: 0239325f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

949
950
951
952
953
954
955

956
957
958
959
960
961
962
963
964

965
966
967
968
969
970
971
    }
    objid = db_lget_int("checkout",0);
    zDate = mprintf("(SELECT mtime FROM plink WHERE cid=%d)", objid);
  }else if( name_to_uuid(&uuid, 0)==0 ){
    objid = db_int(0, "SELECT rid FROM blob WHERE uuid=%B", &uuid);
    zDate = mprintf("(SELECT mtime FROM plink WHERE cid=%d)", objid);
  }else{

    if( mode==3 || mode==4 ){
      fossil_fatal("cannot compute descendants or ancestors of a date");
    }
    if( mode==0 ){
      mode = 1;
      if( isIsoDate(zOrigin) ) zOrigin[9]++;
    }
    zDate = mprintf("(SELECT julianday(%Q, 'utc'))", zOrigin);
  }

  zSQL = mprintf("%z AND event.mtime %s %s",
     timeline_query_for_tty_m(),
     (mode==1 || mode==4) ? "<=" : ">=",
     zDate
  );
  if( mode==3 || mode==4 ){
    db_multi_exec("CREATE TEMP TABLE ok(rid INTEGER PRIMARY KEY)");







>




<
|

|

>







949
950
951
952
953
954
955
956
957
958
959
960

961
962
963
964
965
966
967
968
969
970
971
972
    }
    objid = db_lget_int("checkout",0);
    zDate = mprintf("(SELECT mtime FROM plink WHERE cid=%d)", objid);
  }else if( name_to_uuid(&uuid, 0)==0 ){
    objid = db_int(0, "SELECT rid FROM blob WHERE uuid=%B", &uuid);
    zDate = mprintf("(SELECT mtime FROM plink WHERE cid=%d)", objid);
  }else{
    const char *zShift = "";
    if( mode==3 || mode==4 ){
      fossil_fatal("cannot compute descendants or ancestors of a date");
    }
    if( mode==0 ){

      if( isIsoDate(zOrigin) ) zShift = ",'+1 day'";
    }
    zDate = mprintf("(SELECT julianday(%Q%s, 'utc'))", zOrigin, zShift);
  }
  if( mode==0 ) mode = 1;
  zSQL = mprintf("%z AND event.mtime %s %s",
     timeline_query_for_tty_m(),
     (mode==1 || mode==4) ? "<=" : ">=",
     zDate
  );
  if( mode==3 || mode==4 ){
    db_multi_exec("CREATE TEMP TABLE ok(rid INTEGER PRIMARY KEY)");

Changes to www/build.wiki.

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

<li><p>On the version information page, click on the "[details]" hyperlink
that appears right after the check-in comment at the top of the page.</p>

<li><p>Finally, click on the
"Zip Archive" link.  This link will build a ZIP archive of the 
complete source code and download it to your browser.

<blockquote><i>
Note to Mac users:  The ZIP archive constructed by Fossil is a well-formed
ZIP archive.  However, the unarchiver that is built into the Mac has a bug
in that it does not understand all well-formed ZIP archives.  So you may
get an error when the Mac goes to automatically extract the downloaded ZIP
archive.  We are still trying to figure out what it is about Fossil-generated
ZIP archives that the Mac doesn't like.  Until we do, 
your work-around is to manually extract the ZIP archive using the
"unzip" command from a command-line shell.
</i></blockquote>
</ol>

<h2>2.0 Compiling</h2>

<p>Follow these steps to compile:</p>

<ol>







<
<
<
<
<
<
<
<
<
<
<







38
39
40
41
42
43
44











45
46
47
48
49
50
51

<li><p>On the version information page, click on the "[details]" hyperlink
that appears right after the check-in comment at the top of the page.</p>

<li><p>Finally, click on the
"Zip Archive" link.  This link will build a ZIP archive of the 
complete source code and download it to your browser.











</ol>

<h2>2.0 Compiling</h2>

<p>Follow these steps to compile:</p>

<ol>

Changes to www/quickstart.wiki.

221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240

    <blockquote><b>
    #!/usr/local/bin/fossil<br>
    repository: /home/proj1/repos1.fossil
    </b></blockquote>

    <p>Adjust the paths in this CGI script to match your installation
    and make sure that repository file at the directory that contains it
    are both readable and writable by the user that CGI scripts run as.
    Then point clients at the CGI script.  That's all there is to it!</p>

    <a name="inetdserver"></a>
    <p>You can also run fossil off of inetd or xinetd.  For an inetd
    installation, make an entry in /etc/inetd.conf that looks something
    like this:</p>

    <blockquote><b>
    80 stream tcp nowait.1000 root /usr/bin/fossil \<br>
        /usr/bin/fossil http /home/proj1/repos1.fossil
    </b></blockquote>







|
|



|







221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240

    <blockquote><b>
    #!/usr/local/bin/fossil<br>
    repository: /home/proj1/repos1.fossil
    </b></blockquote>

    <p>Adjust the paths in this CGI script to match your installation
    and make sure both repository file and the directory that contains it
    are readable and writable by the user that CGI scripts run as.
    Then point clients at the CGI script.  That's all there is to it!</p>

    <a name="inetdserver"></a>
    <p>You can also run fossil from inetd or xinetd.  For an inetd
    installation, make an entry in /etc/inetd.conf that looks something
    like this:</p>

    <blockquote><b>
    80 stream tcp nowait.1000 root /usr/bin/fossil \<br>
        /usr/bin/fossil http /home/proj1/repos1.fossil
    </b></blockquote>