Fossil SCM

Update error messages and help text for the 'all' sub-command.

mistachkin 2015-04-03 03:55 trunk
Commit ac56af176b7d015bedbbe335855dbdc6ba7e83e9
1 file changed +55 -52
+55 -52
--- src/allrepo.c
+++ src/allrepo.c
@@ -87,63 +87,65 @@
8787
** On Win32 systems, the file is named "_fossil" and is located in
8888
** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
8989
**
9090
** Available operations are:
9191
**
92
-** changes Shows all local checkouts that have uncommitted changes.
93
-** This operation has no additional options.
94
-**
95
-** clean Delete all "extra" files in all local checkouts. Extreme
96
-** caution should be exercised with this command because its
97
-** effects cannot be undone. Use of the --dry-run option to
98
-** carefully review the local checkouts to be operated upon
99
-** and the --whatif option to carefully review the files to
100
-** be deleted beforehand is highly recommended. The command
101
-** line options supported by the clean command itself, if any
102
-** are present, are passed along verbatim.
103
-**
104
-** dbstat Run the "dbstat" command on all repositories.
105
-**
106
-** extras Shows "extra" files from all local checkouts. The command
107
-** line options supported by the extra command itself, if any
108
-** are present, are passed along verbatim.
109
-**
110
-** info Run the "info" command on all repositories.
111
-**
112
-** pull Run a "pull" operation on all repositories. Only the
113
-** --verbose option is supported.
114
-**
115
-** push Run a "push" on all repositories. Only the --verbose
116
-** option is supported.
117
-**
118
-** rebuild Rebuild on all repositories. The command line options
119
-** supported by the rebuild command itself, if any are
120
-** present, are passed along verbatim. The --force and
121
-** --randomize options are not supported.
122
-**
123
-** sync Run a "sync" on all repositories. Only the --verbose
124
-** option is supported.
125
-**
126
-** setting Run the "setting", "set", or "unset" commands on all
127
-** set repositories. These command are particularly useful in
128
-** unset conjunction with the "max-loadavg" setting which cannot
129
-** otherwise be set globally.
92
+** changes Shows all local checkouts that have uncommitted changes.
93
+** This operation has no additional options.
94
+**
95
+** clean Delete all "extra" files in all local checkouts. Extreme
96
+** caution should be exercised with this command because its
97
+** effects cannot be undone. Use of the --dry-run option to
98
+** carefully review the local checkouts to be operated upon
99
+** and the --whatif option to carefully review the files to
100
+** be deleted beforehand is highly recommended. The command
101
+** line options supported by the clean command itself, if any
102
+** are present, are passed along verbatim.
103
+**
104
+** dbstat Run the "dbstat" command on all repositories.
105
+**
106
+** extras Shows "extra" files from all local checkouts. The command
107
+** line options supported by the extra command itself, if any
108
+** are present, are passed along verbatim.
109
+**
110
+** fts-config Run the "fts-config" command on all repositories.
111
+**
112
+** info Run the "info" command on all repositories.
113
+**
114
+** pull Run a "pull" operation on all repositories. Only the
115
+** --verbose option is supported.
116
+**
117
+** push Run a "push" on all repositories. Only the --verbose
118
+** option is supported.
119
+**
120
+** rebuild Rebuild on all repositories. The command line options
121
+** supported by the rebuild command itself, if any are
122
+** present, are passed along verbatim. The --force and
123
+** --randomize options are not supported.
124
+**
125
+** sync Run a "sync" on all repositories. Only the --verbose
126
+** option is supported.
127
+**
128
+** setting Run the "setting", "set", or "unset" commands on all
129
+** set repositories. These command are particularly useful in
130
+** unset conjunction with the "max-loadavg" setting which cannot
131
+** otherwise be set globally.
130132
**
131133
** In addition, the following maintenance operations are supported:
132134
**
133
-** add Add all the repositories named to the set of repositories
134
-** tracked by Fossil. Normally Fossil is able to keep up with
135
-** this list by itself, but sometime it can benefit from this
136
-** hint if you rename repositories.
137
-**
138
-** ignore Arguments are repositories that should be ignored by
139
-** subsequent clean, extras, list, pull, push, rebuild, and
140
-** sync operations. The -c|--ckout option causes the listed
141
-** local checkouts to be ignored instead.
142
-**
143
-** list | ls Display the location of all repositories. The -c|--ckout
144
-** option causes all local checkouts to be listed instead.
135
+** add Add all the repositories named to the set of repositories
136
+** tracked by Fossil. Normally Fossil is able to keep up with
137
+** this list by itself, but sometime it can benefit from this
138
+** hint if you rename repositories.
139
+**
140
+** ignore Arguments are repositories that should be ignored by
141
+** subsequent clean, extras, list, pull, push, rebuild, and
142
+** sync operations. The -c|--ckout option causes the listed
143
+** local checkouts to be ignored instead.
144
+**
145
+** list | ls Display the location of all repositories. The -c|--ckout
146
+** option causes all local checkouts to be listed instead.
145147
**
146148
** Repositories are automatically added to the set of known repositories
147149
** when one of the following commands are run against the repository:
148150
** clone, info, pull, push, or sync. Even previously ignored repositories
149151
** are added back to the list of repositories by these commands.
@@ -174,11 +176,11 @@
174176
if( !dryRunFlag ){
175177
dryRunFlag = find_option("test",0,0)!=0; /* deprecated */
176178
}
177179
178180
if( g.argc<3 ){
179
- usage("changes|clean|extras|ignore|list|ls|pull|push|rebuild|sync");
181
+ usage("SUBCOMMAND ...");
180182
}
181183
n = strlen(g.argv[2]);
182184
db_open_config(1);
183185
blob_zero(&extra);
184186
zCmd = g.argv[2];
@@ -320,11 +322,12 @@
320322
zCmd = "info";
321323
showLabel = 1;
322324
quiet = 1;
323325
}else{
324326
fossil_fatal("\"all\" subcommand should be one of: "
325
- "changes clean extras ignore list ls push pull rebuild sync");
327
+ "add changes clean dbstat extras fts-config ignore "
328
+ "info list ls pull push rebuild setting sync unset");
326329
}
327330
verify_all_options();
328331
zFossil = quoteFilename(g.nameOfExe);
329332
db_multi_exec("CREATE TEMP TABLE repolist(name,tag);");
330333
if( useCheckouts ){
331334
--- src/allrepo.c
+++ src/allrepo.c
@@ -87,63 +87,65 @@
87 ** On Win32 systems, the file is named "_fossil" and is located in
88 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
89 **
90 ** Available operations are:
91 **
92 ** changes Shows all local checkouts that have uncommitted changes.
93 ** This operation has no additional options.
94 **
95 ** clean Delete all "extra" files in all local checkouts. Extreme
96 ** caution should be exercised with this command because its
97 ** effects cannot be undone. Use of the --dry-run option to
98 ** carefully review the local checkouts to be operated upon
99 ** and the --whatif option to carefully review the files to
100 ** be deleted beforehand is highly recommended. The command
101 ** line options supported by the clean command itself, if any
102 ** are present, are passed along verbatim.
103 **
104 ** dbstat Run the "dbstat" command on all repositories.
105 **
106 ** extras Shows "extra" files from all local checkouts. The command
107 ** line options supported by the extra command itself, if any
108 ** are present, are passed along verbatim.
109 **
110 ** info Run the "info" command on all repositories.
111 **
112 ** pull Run a "pull" operation on all repositories. Only the
113 ** --verbose option is supported.
114 **
115 ** push Run a "push" on all repositories. Only the --verbose
116 ** option is supported.
117 **
118 ** rebuild Rebuild on all repositories. The command line options
119 ** supported by the rebuild command itself, if any are
120 ** present, are passed along verbatim. The --force and
121 ** --randomize options are not supported.
122 **
123 ** sync Run a "sync" on all repositories. Only the --verbose
124 ** option is supported.
125 **
126 ** setting Run the "setting", "set", or "unset" commands on all
127 ** set repositories. These command are particularly useful in
128 ** unset conjunction with the "max-loadavg" setting which cannot
129 ** otherwise be set globally.
 
 
130 **
131 ** In addition, the following maintenance operations are supported:
132 **
133 ** add Add all the repositories named to the set of repositories
134 ** tracked by Fossil. Normally Fossil is able to keep up with
135 ** this list by itself, but sometime it can benefit from this
136 ** hint if you rename repositories.
137 **
138 ** ignore Arguments are repositories that should be ignored by
139 ** subsequent clean, extras, list, pull, push, rebuild, and
140 ** sync operations. The -c|--ckout option causes the listed
141 ** local checkouts to be ignored instead.
142 **
143 ** list | ls Display the location of all repositories. The -c|--ckout
144 ** option causes all local checkouts to be listed instead.
145 **
146 ** Repositories are automatically added to the set of known repositories
147 ** when one of the following commands are run against the repository:
148 ** clone, info, pull, push, or sync. Even previously ignored repositories
149 ** are added back to the list of repositories by these commands.
@@ -174,11 +176,11 @@
174 if( !dryRunFlag ){
175 dryRunFlag = find_option("test",0,0)!=0; /* deprecated */
176 }
177
178 if( g.argc<3 ){
179 usage("changes|clean|extras|ignore|list|ls|pull|push|rebuild|sync");
180 }
181 n = strlen(g.argv[2]);
182 db_open_config(1);
183 blob_zero(&extra);
184 zCmd = g.argv[2];
@@ -320,11 +322,12 @@
320 zCmd = "info";
321 showLabel = 1;
322 quiet = 1;
323 }else{
324 fossil_fatal("\"all\" subcommand should be one of: "
325 "changes clean extras ignore list ls push pull rebuild sync");
 
326 }
327 verify_all_options();
328 zFossil = quoteFilename(g.nameOfExe);
329 db_multi_exec("CREATE TEMP TABLE repolist(name,tag);");
330 if( useCheckouts ){
331
--- src/allrepo.c
+++ src/allrepo.c
@@ -87,63 +87,65 @@
87 ** On Win32 systems, the file is named "_fossil" and is located in
88 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
89 **
90 ** Available operations are:
91 **
92 ** changes Shows all local checkouts that have uncommitted changes.
93 ** This operation has no additional options.
94 **
95 ** clean Delete all "extra" files in all local checkouts. Extreme
96 ** caution should be exercised with this command because its
97 ** effects cannot be undone. Use of the --dry-run option to
98 ** carefully review the local checkouts to be operated upon
99 ** and the --whatif option to carefully review the files to
100 ** be deleted beforehand is highly recommended. The command
101 ** line options supported by the clean command itself, if any
102 ** are present, are passed along verbatim.
103 **
104 ** dbstat Run the "dbstat" command on all repositories.
105 **
106 ** extras Shows "extra" files from all local checkouts. The command
107 ** line options supported by the extra command itself, if any
108 ** are present, are passed along verbatim.
109 **
110 ** fts-config Run the "fts-config" command on all repositories.
111 **
112 ** info Run the "info" command on all repositories.
113 **
114 ** pull Run a "pull" operation on all repositories. Only the
115 ** --verbose option is supported.
116 **
117 ** push Run a "push" on all repositories. Only the --verbose
118 ** option is supported.
119 **
120 ** rebuild Rebuild on all repositories. The command line options
121 ** supported by the rebuild command itself, if any are
122 ** present, are passed along verbatim. The --force and
123 ** --randomize options are not supported.
124 **
125 ** sync Run a "sync" on all repositories. Only the --verbose
126 ** option is supported.
127 **
128 ** setting Run the "setting", "set", or "unset" commands on all
129 ** set repositories. These command are particularly useful in
130 ** unset conjunction with the "max-loadavg" setting which cannot
131 ** otherwise be set globally.
132 **
133 ** In addition, the following maintenance operations are supported:
134 **
135 ** add Add all the repositories named to the set of repositories
136 ** tracked by Fossil. Normally Fossil is able to keep up with
137 ** this list by itself, but sometime it can benefit from this
138 ** hint if you rename repositories.
139 **
140 ** ignore Arguments are repositories that should be ignored by
141 ** subsequent clean, extras, list, pull, push, rebuild, and
142 ** sync operations. The -c|--ckout option causes the listed
143 ** local checkouts to be ignored instead.
144 **
145 ** list | ls Display the location of all repositories. The -c|--ckout
146 ** option causes all local checkouts to be listed instead.
147 **
148 ** Repositories are automatically added to the set of known repositories
149 ** when one of the following commands are run against the repository:
150 ** clone, info, pull, push, or sync. Even previously ignored repositories
151 ** are added back to the list of repositories by these commands.
@@ -174,11 +176,11 @@
176 if( !dryRunFlag ){
177 dryRunFlag = find_option("test",0,0)!=0; /* deprecated */
178 }
179
180 if( g.argc<3 ){
181 usage("SUBCOMMAND ...");
182 }
183 n = strlen(g.argv[2]);
184 db_open_config(1);
185 blob_zero(&extra);
186 zCmd = g.argv[2];
@@ -320,11 +322,12 @@
322 zCmd = "info";
323 showLabel = 1;
324 quiet = 1;
325 }else{
326 fossil_fatal("\"all\" subcommand should be one of: "
327 "add changes clean dbstat extras fts-config ignore "
328 "info list ls pull push rebuild setting sync unset");
329 }
330 verify_all_options();
331 zFossil = quoteFilename(g.nameOfExe);
332 db_multi_exec("CREATE TEMP TABLE repolist(name,tag);");
333 if( useCheckouts ){
334

Keyboard Shortcuts

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