Fossil SCM

Reflow the help screens for 'deconstruct' and 'reconstruct', and add the new --keep-private option.

florian 2019-09-04 10:09 private-branches
Commit dc8fcc7ff2fdf66fe2a859178ddacde8afea9b36cffe1552c306d8cb86665191
1 file changed +17 -14
+17 -14
--- src/rebuild.c
+++ src/rebuild.c
@@ -1189,18 +1189,19 @@
11891189
/*
11901190
** COMMAND: reconstruct*
11911191
**
11921192
** Usage: %fossil reconstruct ?OPTIONS? FILENAME DIRECTORY
11931193
**
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.
11981197
**
11991198
** 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.
12021203
**
12031204
** See also: deconstruct, rebuild
12041205
*/
12051206
void reconstruct_cmd(void) {
12061207
char *zPassword;
@@ -1257,27 +1258,29 @@
12571258
/*
12581259
** COMMAND: deconstruct*
12591260
**
12601261
** Usage %fossil deconstruct ?OPTIONS? DESTINATION
12611262
**
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.
12691269
**
12701270
** Options:
12711271
** -R|--repository REPOSITORY Deconstruct given REPOSITORY.
12721272
** -K|--keep-rid1 Save the filename of the artifact with RID=1 to
12731273
** the file .rid1 in the DESTINATION directory.
12741274
** -L|--prefixlength N Set the length of the names of the DESTINATION
12751275
** subdirectories to N.
12761276
** --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).
12771280
**
1278
-** See also: rebuild, reconstruct
1281
+** See also: reconstruct, rebuild
12791282
*/
12801283
void deconstruct_cmd(void){
12811284
const char *zPrefixOpt;
12821285
Stmt s;
12831286
int privateFlag;
12841287
--- 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

Keyboard Shortcuts

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