Fossil SCM

Added "cache" to the "all" command to simplify cache management on systems with many historical repos.

stephan 2015-07-04 05:35 trunk
Commit 744aaa84e49914dfdc3a8aeaf41111b0a9c6b5b9
1 file changed +4
--- src/allrepo.c
+++ src/allrepo.c
@@ -327,10 +327,14 @@
327327
return;
328328
}else if( strncmp(zCmd, "info", n)==0 ){
329329
zCmd = "info";
330330
showLabel = 1;
331331
quiet = 1;
332
+ }else if( strncmp(zCmd, "cache", n)==0 ){
333
+ zCmd = "cache -R";
334
+ showLabel = 1;
335
+ collect_argv(&extra, 3);
332336
}else{
333337
fossil_fatal("\"all\" subcommand should be one of: "
334338
"add changes clean dbstat extras fts-config ignore "
335339
"info list ls pull push rebuild setting sync unset");
336340
}
337341
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button