Fossil SCM
Reflow the help screens for 'deconstruct' and 'reconstruct', and add the new --keep-private option.
Commit
dc8fcc7ff2fdf66fe2a859178ddacde8afea9b36cffe1552c306d8cb86665191
Parent
66a14e93c7b275c…
1 file changed
+17
-14
+17
-14
| --- src/rebuild.c | ||
| +++ src/rebuild.c | ||
| @@ -1189,18 +1189,19 @@ | ||
| 1189 | 1189 | /* |
| 1190 | 1190 | ** COMMAND: reconstruct* |
| 1191 | 1191 | ** |
| 1192 | 1192 | ** Usage: %fossil reconstruct ?OPTIONS? FILENAME DIRECTORY |
| 1193 | 1193 | ** |
| 1194 | -** This command studies the artifacts (files) in DIRECTORY and | |
| 1195 | -** reconstructs the fossil record from them. It places the new | |
| 1196 | -** fossil repository in FILENAME. Subdirectories are read, files | |
| 1197 | -** with leading '.' in the filename are ignored. | |
| 1194 | +** This command studies the artifacts (files) in DIRECTORY and reconstructs the | |
| 1195 | +** Fossil record from them. It places the new Fossil repository in FILENAME. | |
| 1196 | +** Subdirectories are read, files with leading '.' in the filename are ignored. | |
| 1198 | 1197 | ** |
| 1199 | 1198 | ** Options: |
| 1200 | -** -K|--keep-rid1 Read the filename of the artifact with | |
| 1201 | -** RID=1 from the file .rid in DIRECTORY. | |
| 1199 | +** -K|--keep-rid1 Read the filename of the artifact with RID=1 from the | |
| 1200 | +** file .rid in DIRECTORY. | |
| 1201 | +** -P|--keep-private Mark the artifacts listed in the file .private in | |
| 1202 | +** DIRECTORY as private in the new Fossil repository. | |
| 1202 | 1203 | ** |
| 1203 | 1204 | ** See also: deconstruct, rebuild |
| 1204 | 1205 | */ |
| 1205 | 1206 | void reconstruct_cmd(void) { |
| 1206 | 1207 | char *zPassword; |
| @@ -1257,27 +1258,29 @@ | ||
| 1257 | 1258 | /* |
| 1258 | 1259 | ** COMMAND: deconstruct* |
| 1259 | 1260 | ** |
| 1260 | 1261 | ** Usage %fossil deconstruct ?OPTIONS? DESTINATION |
| 1261 | 1262 | ** |
| 1262 | -** | |
| 1263 | -** This command exports all artifacts of a given repository and | |
| 1264 | -** writes all artifacts to the file system. The DESTINATION directory | |
| 1265 | -** will be populated with subdirectories AA and files AA/BBBBBBBBB.., where | |
| 1266 | -** AABBBBBBBBB.. is the 40+ character artifact ID, AA the first 2 characters. | |
| 1267 | -** If -L|--prefixlength is given, the length (default 2) of the directory | |
| 1268 | -** prefix can be set to 0,1,..,9 characters. | |
| 1263 | +** This command exports all artifacts of a given repository and writes all | |
| 1264 | +** artifacts to the file system. The DESTINATION directory will be populated | |
| 1265 | +** with subdirectories AA and files AA/BBBBBBBBB.., where AABBBBBBBBB.. is the | |
| 1266 | +** 40+ character artifact ID, AA the first 2 characters. | |
| 1267 | +** If -L|--prefixlength is given, the length (default 2) of the directory prefix | |
| 1268 | +** can be set to 0,1,..,9 characters. | |
| 1269 | 1269 | ** |
| 1270 | 1270 | ** Options: |
| 1271 | 1271 | ** -R|--repository REPOSITORY Deconstruct given REPOSITORY. |
| 1272 | 1272 | ** -K|--keep-rid1 Save the filename of the artifact with RID=1 to |
| 1273 | 1273 | ** the file .rid1 in the DESTINATION directory. |
| 1274 | 1274 | ** -L|--prefixlength N Set the length of the names of the DESTINATION |
| 1275 | 1275 | ** subdirectories to N. |
| 1276 | 1276 | ** --private Include private artifacts. |
| 1277 | +** -P|--keep-private Save the list of private artifacts to the file | |
| 1278 | +** .private in the DESTINATION directory (implies | |
| 1279 | +** the --private option). | |
| 1277 | 1280 | ** |
| 1278 | -** See also: rebuild, reconstruct | |
| 1281 | +** See also: reconstruct, rebuild | |
| 1279 | 1282 | */ |
| 1280 | 1283 | void deconstruct_cmd(void){ |
| 1281 | 1284 | const char *zPrefixOpt; |
| 1282 | 1285 | Stmt s; |
| 1283 | 1286 | int privateFlag; |
| 1284 | 1287 |
| --- src/rebuild.c | |
| +++ src/rebuild.c | |
| @@ -1189,18 +1189,19 @@ | |
| 1189 | /* |
| 1190 | ** COMMAND: reconstruct* |
| 1191 | ** |
| 1192 | ** Usage: %fossil reconstruct ?OPTIONS? FILENAME DIRECTORY |
| 1193 | ** |
| 1194 | ** This command studies the artifacts (files) in DIRECTORY and |
| 1195 | ** reconstructs the fossil record from them. It places the new |
| 1196 | ** fossil repository in FILENAME. Subdirectories are read, files |
| 1197 | ** with leading '.' in the filename are ignored. |
| 1198 | ** |
| 1199 | ** Options: |
| 1200 | ** -K|--keep-rid1 Read the filename of the artifact with |
| 1201 | ** RID=1 from the file .rid in DIRECTORY. |
| 1202 | ** |
| 1203 | ** See also: deconstruct, rebuild |
| 1204 | */ |
| 1205 | void reconstruct_cmd(void) { |
| 1206 | char *zPassword; |
| @@ -1257,27 +1258,29 @@ | |
| 1257 | /* |
| 1258 | ** COMMAND: deconstruct* |
| 1259 | ** |
| 1260 | ** Usage %fossil deconstruct ?OPTIONS? DESTINATION |
| 1261 | ** |
| 1262 | ** |
| 1263 | ** This command exports all artifacts of a given repository and |
| 1264 | ** writes all artifacts to the file system. The DESTINATION directory |
| 1265 | ** will be populated with subdirectories AA and files AA/BBBBBBBBB.., where |
| 1266 | ** AABBBBBBBBB.. is the 40+ character artifact ID, AA the first 2 characters. |
| 1267 | ** If -L|--prefixlength is given, the length (default 2) of the directory |
| 1268 | ** prefix can be set to 0,1,..,9 characters. |
| 1269 | ** |
| 1270 | ** Options: |
| 1271 | ** -R|--repository REPOSITORY Deconstruct given REPOSITORY. |
| 1272 | ** -K|--keep-rid1 Save the filename of the artifact with RID=1 to |
| 1273 | ** the file .rid1 in the DESTINATION directory. |
| 1274 | ** -L|--prefixlength N Set the length of the names of the DESTINATION |
| 1275 | ** subdirectories to N. |
| 1276 | ** --private Include private artifacts. |
| 1277 | ** |
| 1278 | ** See also: rebuild, reconstruct |
| 1279 | */ |
| 1280 | void deconstruct_cmd(void){ |
| 1281 | const char *zPrefixOpt; |
| 1282 | Stmt s; |
| 1283 | int privateFlag; |
| 1284 |
| --- src/rebuild.c | |
| +++ src/rebuild.c | |
| @@ -1189,18 +1189,19 @@ | |
| 1189 | /* |
| 1190 | ** COMMAND: reconstruct* |
| 1191 | ** |
| 1192 | ** Usage: %fossil reconstruct ?OPTIONS? FILENAME DIRECTORY |
| 1193 | ** |
| 1194 | ** This command studies the artifacts (files) in DIRECTORY and reconstructs the |
| 1195 | ** Fossil record from them. It places the new Fossil repository in FILENAME. |
| 1196 | ** Subdirectories are read, files with leading '.' in the filename are ignored. |
| 1197 | ** |
| 1198 | ** Options: |
| 1199 | ** -K|--keep-rid1 Read the filename of the artifact with RID=1 from the |
| 1200 | ** file .rid in DIRECTORY. |
| 1201 | ** -P|--keep-private Mark the artifacts listed in the file .private in |
| 1202 | ** DIRECTORY as private in the new Fossil repository. |
| 1203 | ** |
| 1204 | ** See also: deconstruct, rebuild |
| 1205 | */ |
| 1206 | void reconstruct_cmd(void) { |
| 1207 | char *zPassword; |
| @@ -1257,27 +1258,29 @@ | |
| 1258 | /* |
| 1259 | ** COMMAND: deconstruct* |
| 1260 | ** |
| 1261 | ** Usage %fossil deconstruct ?OPTIONS? DESTINATION |
| 1262 | ** |
| 1263 | ** This command exports all artifacts of a given repository and writes all |
| 1264 | ** artifacts to the file system. The DESTINATION directory will be populated |
| 1265 | ** with subdirectories AA and files AA/BBBBBBBBB.., where AABBBBBBBBB.. is the |
| 1266 | ** 40+ character artifact ID, AA the first 2 characters. |
| 1267 | ** If -L|--prefixlength is given, the length (default 2) of the directory prefix |
| 1268 | ** can be set to 0,1,..,9 characters. |
| 1269 | ** |
| 1270 | ** Options: |
| 1271 | ** -R|--repository REPOSITORY Deconstruct given REPOSITORY. |
| 1272 | ** -K|--keep-rid1 Save the filename of the artifact with RID=1 to |
| 1273 | ** the file .rid1 in the DESTINATION directory. |
| 1274 | ** -L|--prefixlength N Set the length of the names of the DESTINATION |
| 1275 | ** subdirectories to N. |
| 1276 | ** --private Include private artifacts. |
| 1277 | ** -P|--keep-private Save the list of private artifacts to the file |
| 1278 | ** .private in the DESTINATION directory (implies |
| 1279 | ** the --private option). |
| 1280 | ** |
| 1281 | ** See also: reconstruct, rebuild |
| 1282 | */ |
| 1283 | void deconstruct_cmd(void){ |
| 1284 | const char *zPrefixOpt; |
| 1285 | Stmt s; |
| 1286 | int privateFlag; |
| 1287 |