Fossil

Check-in [c94efdf2]
Login

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

Overview
Comment:Don't check for more settings names if there's an exact match. (Couldn't set autosync because it also matached autosync-tries).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c94efdf287eb9695558ca81232b830d8e3146259
User & Date: jan.nijtmans 2015-02-07 15:23:01
Original Comment: Don't check for more settings names if there's an exact match. (Couldn't set autosync because it also matached autosync-tries).
Original User & Date: jan 2015-02-07 15:23:01
Context
2015-02-07
15:59
Faster and more accurate method for computing file-age. Also add the showid query parameter to /fileage and extend showid on /timeline to show the RIDs for individual files when the "v" query parameter is used. check-in: dd51f09a user: drh tags: trunk
15:23
Don't check for more settings names if there's an exact match. (Couldn't set autosync because it also matched autosync-tries). check-in: c94efdf2 user: jan.nijtmans tags: trunk
13:33
Make the "Order By Time/Filename" option in the tree browser a selection menu. check-in: 7f84d293 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

2731
2732
2733
2734
2735
2736
2737

2738
2739
2740
2741
2742
2743
2744
2745
      fossil_fatal("no such setting: %s", zName);
    }
    if( globalFlag && fossil_strcmp(pSetting->name, "manifest")==0 ){
      fossil_fatal("cannot set 'manifest' globally");
    }
    if( unsetFlag || g.argc==4 ){
      int isManifest = fossil_strcmp(pSetting->name, "manifest")==0;

      if( pSetting[1].name && fossil_strncmp(pSetting[1].name, zName, n)==0 ){
        Blob x;
        int i;
        blob_init(&x,0,0);
        for(i=0; pSetting[i].name; i++){
          if( fossil_strncmp(pSetting[i].name,zName,n)!=0 ) break;
          blob_appendf(&x, " %s", pSetting[i].name);
        }







>
|







2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
      fossil_fatal("no such setting: %s", zName);
    }
    if( globalFlag && fossil_strcmp(pSetting->name, "manifest")==0 ){
      fossil_fatal("cannot set 'manifest' globally");
    }
    if( unsetFlag || g.argc==4 ){
      int isManifest = fossil_strcmp(pSetting->name, "manifest")==0;
      if( n!=strlen(pSetting[0].name) && pSetting[1].name &&
          fossil_strncmp(pSetting[1].name, zName, n)==0 ){
        Blob x;
        int i;
        blob_init(&x,0,0);
        for(i=0; pSetting[i].name; i++){
          if( fossil_strncmp(pSetting[i].name,zName,n)!=0 ) break;
          blob_appendf(&x, " %s", pSetting[i].name);
        }