Fossil

Check-in [5eeb870d]
Login

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

Overview
Comment:Honor case-sensitive setting when specifying path to the timeline command.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | cmdline-timeline-enhancement
Files: files | file ages | folders
SHA1:5eeb870d1810113ca1249c26fcb72d527cb85b1c
User & Date: mgagnon 2014-10-17 21:12:27
Context
2014-10-17
21:57
When specifying a path and type (-t) is not specified on the timeline command, force the type to "ci". If someone specify a path, we can assume he want to see only file checkins. check-in: 9cbafad6 user: mgagnon tags: cmdline-timeline-enhancement
21:12
Honor case-sensitive setting when specifying path to the timeline command. check-in: 5eeb870d user: mgagnon tags: cmdline-timeline-enhancement
20:44
Fix the special case when path refer to the root of the repository, in that case, just ignore the path argument. check-in: 3706dcb6 user: mgagnon tags: cmdline-timeline-enhancement
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
  }
  if( zType && (zType[0]!='a') ){
    blob_appendf(&sql, "\n  AND event.type=%Q ", zType);
  }
  if( zFilePattern ){
    blob_append(&sql, "\n  AND mlink.mid=event.objid", -1);
    blob_appendf(&sql, "\n  AND mlink.fnid IN (SELECT fnid FROM filename WHERE"
        " name=%Q OR name GLOB '%q/*')", blob_str(&treeName),
        blob_str(&treeName));
  }
  blob_appendf(&sql, "\nORDER BY event.mtime DESC");
  if( iOffset>0 ){
    /* Don't handle LIMIT here, otherwise print_timeline()
     * will not determine the end-marker correctly! */
    blob_appendf(&sql, "\n LIMIT -1 OFFSET %d", iOffset);
  }







|
|







1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
  }
  if( zType && (zType[0]!='a') ){
    blob_appendf(&sql, "\n  AND event.type=%Q ", zType);
  }
  if( zFilePattern ){
    blob_append(&sql, "\n  AND mlink.mid=event.objid", -1);
    blob_appendf(&sql, "\n  AND mlink.fnid IN (SELECT fnid FROM filename WHERE"
        " name=%Q %s OR name GLOB '%q/*' %s)", blob_str(&treeName), 
        filename_collation(), blob_str(&treeName), filename_collation());
  }
  blob_appendf(&sql, "\nORDER BY event.mtime DESC");
  if( iOffset>0 ){
    /* Don't handle LIMIT here, otherwise print_timeline()
     * will not determine the end-marker correctly! */
    blob_appendf(&sql, "\n LIMIT -1 OFFSET %d", iOffset);
  }