Fossil

Check-in [f7a5e10c]
Login

Check-in [f7a5e10c]

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

Overview
Comment:Preserve the trailing slash for checkouts so fossil can remove a checkout that no longer exists but is still a directory.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f7a5e10ce93372801b37292c43a0261c901e1ed1
User & Date: andybradford 2016-02-20 20:53:40.564
Context
2016-02-23
10:47
Since fossil now uses the function sqlite_strlike(), don't allow it to build/run with SQLite versions < 3.10.0 any more. ... (check-in: 8ed01e80 user: jan.nijtmans tags: trunk)
2016-02-20
20:53
Preserve the trailing slash for checkouts so fossil can remove a checkout that no longer exists but is still a directory. ... (check-in: f7a5e10c user: andybradford tags: trunk)
2016-02-18
10:13
Minor correction to the P-card docs. ... (check-in: 576d64c9 user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/allrepo.c.
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
    int j;
    Blob fn = BLOB_INITIALIZER;
    Blob sql = BLOB_INITIALIZER;
    useCheckouts = find_option("ckout","c",0)!=0;
    verify_all_options();
    db_begin_transaction();
    for(j=3; j<g.argc; j++, blob_reset(&sql), blob_reset(&fn)){
      file_canonical_name(g.argv[j], &fn, 0);
      blob_append_sql(&sql,
         "DELETE FROM global_config WHERE name GLOB '%s:%q'",
         useCheckouts?"ckout":"repo", blob_str(&fn)
      );
      if( dryRunFlag ){
        fossil_print("%s\n", blob_sql_text(&sql));
      }else{







|







290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
    int j;
    Blob fn = BLOB_INITIALIZER;
    Blob sql = BLOB_INITIALIZER;
    useCheckouts = find_option("ckout","c",0)!=0;
    verify_all_options();
    db_begin_transaction();
    for(j=3; j<g.argc; j++, blob_reset(&sql), blob_reset(&fn)){
      file_canonical_name(g.argv[j], &fn, useCheckouts?1:0);
      blob_append_sql(&sql,
         "DELETE FROM global_config WHERE name GLOB '%s:%q'",
         useCheckouts?"ckout":"repo", blob_str(&fn)
      );
      if( dryRunFlag ){
        fossil_print("%s\n", blob_sql_text(&sql));
      }else{