Fossil SCM
Added "cache" to the "all" command to simplify cache management on systems with many historical repos.
Commit
744aaa84e49914dfdc3a8aeaf41111b0a9c6b5b9
Parent
e5dbe8b331e534b…
1 file changed
+4
+4
| --- src/allrepo.c | ||
| +++ src/allrepo.c | ||
| @@ -327,10 +327,14 @@ | ||
| 327 | 327 | return; |
| 328 | 328 | }else if( strncmp(zCmd, "info", n)==0 ){ |
| 329 | 329 | zCmd = "info"; |
| 330 | 330 | showLabel = 1; |
| 331 | 331 | quiet = 1; |
| 332 | + }else if( strncmp(zCmd, "cache", n)==0 ){ | |
| 333 | + zCmd = "cache -R"; | |
| 334 | + showLabel = 1; | |
| 335 | + collect_argv(&extra, 3); | |
| 332 | 336 | }else{ |
| 333 | 337 | fossil_fatal("\"all\" subcommand should be one of: " |
| 334 | 338 | "add changes clean dbstat extras fts-config ignore " |
| 335 | 339 | "info list ls pull push rebuild setting sync unset"); |
| 336 | 340 | } |
| 337 | 341 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -327,10 +327,14 @@ | |
| 327 | return; |
| 328 | }else if( strncmp(zCmd, "info", n)==0 ){ |
| 329 | zCmd = "info"; |
| 330 | showLabel = 1; |
| 331 | quiet = 1; |
| 332 | }else{ |
| 333 | fossil_fatal("\"all\" subcommand should be one of: " |
| 334 | "add changes clean dbstat extras fts-config ignore " |
| 335 | "info list ls pull push rebuild setting sync unset"); |
| 336 | } |
| 337 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -327,10 +327,14 @@ | |
| 327 | return; |
| 328 | }else if( strncmp(zCmd, "info", n)==0 ){ |
| 329 | zCmd = "info"; |
| 330 | showLabel = 1; |
| 331 | quiet = 1; |
| 332 | }else if( strncmp(zCmd, "cache", n)==0 ){ |
| 333 | zCmd = "cache -R"; |
| 334 | showLabel = 1; |
| 335 | collect_argv(&extra, 3); |
| 336 | }else{ |
| 337 | fossil_fatal("\"all\" subcommand should be one of: " |
| 338 | "add changes clean dbstat extras fts-config ignore " |
| 339 | "info list ls pull push rebuild setting sync unset"); |
| 340 | } |
| 341 |