Fossil

Check-in [9cbafad6]
Login

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

Overview
Comment: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.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | cmdline-timeline-enhancement
Files: files | file ages | folders
SHA1:9cbafad6a9751d4665fadb1e1a2f9b7689f2533b
User & Date: mgagnon 2014-10-17 21:57:35
Context
2014-10-18
10:34
Fix the directory matching logic for the command-line timeline so that it works with case insensitive filesystems. Other cleanups and improvements to the new timeline logic are also included. Closed-Leaf check-in: 8af7f618 user: drh tags: cmdline-timeline-enhancement
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

1838
1839
1840
1841
1842
1843
1844





1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
    if( mode==0 ){
      if( isIsoDate(zOrigin) ) zShift = ",'+1 day'";
    }
    zDate = mprintf("(SELECT julianday(%Q%s, 'utc'))", zOrigin, zShift);
  }
  
  if( zFilePattern ){





    file_tree_name(zFilePattern, &treeName, 1);
    if( fossil_strcmp(blob_str(&treeName), ".")==0 ){
      /* When zTreeName refers to g.zLocalRoot, it's like not specifying
       * zFilePattern */
      zFilePattern = 0;
    }
  }

  if( mode==0 ) mode = 1;
  blob_zero(&sql);
  blob_append(&sql, timeline_query_for_tty(zFilePattern!=0), -1);







>
>
>
>
>



|







1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
    if( mode==0 ){
      if( isIsoDate(zOrigin) ) zShift = ",'+1 day'";
    }
    zDate = mprintf("(SELECT julianday(%Q%s, 'utc'))", zOrigin, zShift);
  }
  
  if( zFilePattern ){
    if( zType==0 ){
      /* When zFilePattern is specified and type is not specified, only show
       * file checkins */
      zType="ci";
    }
    file_tree_name(zFilePattern, &treeName, 1);
    if( fossil_strcmp(blob_str(&treeName), ".")==0 ){
      /* When zTreeName refers to g.zLocalRoot, it's like not specifying
       * zFilePattern. */
      zFilePattern = 0;
    }
  }

  if( mode==0 ) mode = 1;
  blob_zero(&sql);
  blob_append(&sql, timeline_query_for_tty(zFilePattern!=0), -1);