Fossil SCM
Preserve the trailing slash for checkouts so fossil can remove a checkout that no longer exists but is still a directory.
Commit
f7a5e10ce93372801b37292c43a0261c901e1ed1
Parent
576d64c94311fca…
1 file changed
+1
-1
+1
-1
| --- src/allrepo.c | ||
| +++ src/allrepo.c | ||
| @@ -292,11 +292,11 @@ | ||
| 292 | 292 | Blob sql = BLOB_INITIALIZER; |
| 293 | 293 | useCheckouts = find_option("ckout","c",0)!=0; |
| 294 | 294 | verify_all_options(); |
| 295 | 295 | db_begin_transaction(); |
| 296 | 296 | for(j=3; j<g.argc; j++, blob_reset(&sql), blob_reset(&fn)){ |
| 297 | - file_canonical_name(g.argv[j], &fn, 0); | |
| 297 | + file_canonical_name(g.argv[j], &fn, useCheckouts?1:0); | |
| 298 | 298 | blob_append_sql(&sql, |
| 299 | 299 | "DELETE FROM global_config WHERE name GLOB '%s:%q'", |
| 300 | 300 | useCheckouts?"ckout":"repo", blob_str(&fn) |
| 301 | 301 | ); |
| 302 | 302 | if( dryRunFlag ){ |
| 303 | 303 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -292,11 +292,11 @@ | |
| 292 | Blob sql = BLOB_INITIALIZER; |
| 293 | useCheckouts = find_option("ckout","c",0)!=0; |
| 294 | verify_all_options(); |
| 295 | db_begin_transaction(); |
| 296 | for(j=3; j<g.argc; j++, blob_reset(&sql), blob_reset(&fn)){ |
| 297 | file_canonical_name(g.argv[j], &fn, 0); |
| 298 | blob_append_sql(&sql, |
| 299 | "DELETE FROM global_config WHERE name GLOB '%s:%q'", |
| 300 | useCheckouts?"ckout":"repo", blob_str(&fn) |
| 301 | ); |
| 302 | if( dryRunFlag ){ |
| 303 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -292,11 +292,11 @@ | |
| 292 | Blob sql = BLOB_INITIALIZER; |
| 293 | useCheckouts = find_option("ckout","c",0)!=0; |
| 294 | verify_all_options(); |
| 295 | db_begin_transaction(); |
| 296 | for(j=3; j<g.argc; j++, blob_reset(&sql), blob_reset(&fn)){ |
| 297 | file_canonical_name(g.argv[j], &fn, useCheckouts?1:0); |
| 298 | blob_append_sql(&sql, |
| 299 | "DELETE FROM global_config WHERE name GLOB '%s:%q'", |
| 300 | useCheckouts?"ckout":"repo", blob_str(&fn) |
| 301 | ); |
| 302 | if( dryRunFlag ){ |
| 303 |