Fossil SCM

Use one setting instead of two. Using one default fallback constant instead of two. Remove the '--metadata-only' option entirely.

mistachkin 2015-04-10 00:18 UTC mvAndRmFiles
Commit d981fe2c5e5582ed741d9dc6d40fc816efbbed00
3 files changed +27 -75 +1 -2 +8 -14
+27 -75
--- src/add.c
+++ src/add.c
@@ -25,39 +25,23 @@
2525
#include "cygsup.h"
2626
2727
/*
2828
** WARNING: For Fossil version 1.x this value was always zero. For Fossil
2929
** 2.x, it will probably always be one. When this value is zero,
30
-** files in the checkout will not be moved by the "mv" command.
31
-**
32
-** If the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option is used,
33
-** the "move-files" setting will be consulted instead of using
34
-** this value.
35
-**
36
-** To retain the Fossil version 1.x behavior when using Fossil 2.x,
37
-** the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option must be used
38
-** -AND- the "move-files" setting must be set to zero.
39
-*/
40
-#ifndef FOSSIL_MV_CHECKOUT_FILE_ON_MV
41
-#define FOSSIL_MV_CHECKOUT_FILE_ON_MV (0)
42
-#endif
43
-
44
-/*
45
-** WARNING: For Fossil version 1.x this value was always zero. For Fossil
46
-** 2.x, it will probably always be one. When this value is zero,
47
-** files in the checkout will not be removed by the "rm" command.
48
-**
49
-** If the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option is used,
50
-** the "remove-files" setting will be consulted instead of using
51
-** this value.
52
-**
53
-** To retain the Fossil version 1.x behavior when using Fossil 2.x,
54
-** the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option must be used
55
-** -AND- the "remove-files" setting must be set to zero.
56
-*/
57
-#ifndef FOSSIL_RM_CHECKOUT_FILE_ON_RM
58
-#define FOSSIL_RM_CHECKOUT_FILE_ON_RM (0)
30
+** files in the checkout will not be moved by the "mv" command and
31
+** files in the checkout will not be removed by the "rm" command.
32
+**
33
+** If the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option is used,
34
+** the "mv-rm-files" setting will be consulted instead of using
35
+** this value.
36
+**
37
+** To retain the Fossil version 1.x behavior when using Fossil 2.x,
38
+** the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option must be used
39
+** -AND- the "mv-rm-files" setting must be set to zero.
40
+*/
41
+#ifndef FOSSIL_MV_RM_FILE
42
+#define FOSSIL_MV_RM_FILE (0)
5943
#endif
6044
6145
/*
6246
** This routine returns the names of files in a working checkout that
6347
** are created by Fossil itself, and hence should not be added, deleted,
@@ -414,26 +398,10 @@
414398
}
415399
db_finalize(&remove);
416400
db_multi_exec("DROP TABLE fremove;");
417401
}
418402
419
-/*
420
-** Capture the command-line --metadata-only option.
421
-*/
422
-static const char *zMetadataOnly = 0;
423
-void capture_metadata_only_option(void){
424
- if( zMetadataOnly==0 ){
425
- zMetadataOnly = find_option("metadata-only",0,1);
426
- if( find_option("soft",0,0) && zMetadataOnly==0 ){
427
- zMetadataOnly = "1";
428
- }
429
- if( find_option("hard",0,0) && zMetadataOnly==0 ){
430
- zMetadataOnly = "0";
431
- }
432
- }
433
-}
434
-
435403
/*
436404
** COMMAND: rm
437405
** COMMAND: delete
438406
** COMMAND: forget*
439407
**
@@ -443,25 +411,21 @@
443411
**
444412
** The 'rm' and 'delete' commands do NOT normally remove the files from
445413
** disk. They just mark the files as no longer being part of the project.
446414
** In other words, future changes to the named files will not be versioned.
447415
** However, the default behavior of this command may be overridden via the
448
-** command line options listed below and/or the 'remove-files' setting.
416
+** command line options listed below and/or the 'mv-rm-files' setting.
449417
**
450418
** The 'forget' command never removes files from disk, even when the command
451
-** line options and/or the 'remove-files' setting would otherwise require it
419
+** line options and/or the 'mv-rm-files' setting would otherwise require it
452420
** to do so.
453421
**
454
-** WARNING: If either the "--metadata-only 0" or "--hard" option is
455
-** specified -OR- the "remove-files" setting is non-zero,
456
-** files WILL BE removed from disk as well. This does NOT
457
-** apply to the 'forget' command.
422
+** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files"
423
+** setting is non-zero, files WILL BE removed from disk as well.
424
+** This does NOT apply to the 'forget' command.
458425
**
459426
** Options:
460
-** --metadata-only <BOOL> Non-zero to skip removing files from the
461
-** checkout. Supersedes both the --soft and
462
-** --hard options.
463427
** --soft Skip removing files from the checkout.
464428
** This supersedes the --hard option.
465429
** --hard Remove files from the checkout.
466430
** --case-sensitive <BOOL> Override the case-sensitive setting.
467431
** -n|--dry-run If given, display instead of run actions.
@@ -474,26 +438,22 @@
474438
int dryRunFlag;
475439
Stmt loop;
476440
477441
dryRunFlag = find_option("dry-run","n",0)!=0;
478442
479
- capture_metadata_only_option();
480
-
481443
/* We should be done with options.. */
482444
verify_all_options();
483445
484446
db_must_be_within_tree();
485447
db_begin_transaction();
486448
if( g.argv[1][0]=='f' ){ /* i.e. "forget" */
487449
removeFiles = 0;
488
- }else if( zMetadataOnly ){
489
- removeFiles = is_false(zMetadataOnly);
490450
}else{
491451
#if FOSSIL_ENABLE_LEGACY_MV_RM
492
- removeFiles = db_get_boolean("remove-files",0);
452
+ removeFiles = db_get_boolean("mv-rm-files",0);
493453
#else
494
- removeFiles = FOSSIL_RM_CHECKOUT_FILE_ON_RM;
454
+ removeFiles = FOSSIL_MV_RM_FILE;
495455
#endif
496456
}
497457
db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY %s)",
498458
filename_collation());
499459
for(i=2; i<g.argc; i++){
@@ -826,25 +786,21 @@
826786
**
827787
** The 'mv' command does NOT normally rename or move the files on disk.
828788
** This command merely records the fact that file names have changed so
829789
** that appropriate notations can be made at the next commit/check-in.
830790
** However, the default behavior of this command may be overridden via
831
-** command line options listed below and/or the 'move-files' setting.
791
+** command line options listed below and/or the 'mv-rm-files' setting.
832792
**
833793
** The 'rename' command never renames or moves files on disk, even when the
834
-** command line options and/or the 'move-files' setting would otherwise
794
+** command line options and/or the 'mv-rm-files' setting would otherwise
835795
** require it to do so.
836796
**
837
-** WARNING: If either the "--metadata-only 0" or "--hard" option is
838
-** specified -OR- the "move-files" setting is non-zero,
839
-** files WILL BE renamed or moved on disk as well. This does
840
-** NOT apply to the 'rename' command.
797
+** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files"
798
+** setting is non-zero, files WILL BE renamed or moved on disk
799
+** as well. This does NOT apply to the 'rename' command.
841800
**
842801
** Options:
843
-** --metadata-only <BOOL> Non-zero to skip moving files within the
844
-** checkout. Supersedes both the --soft and
845
-** --hard options.
846802
** --soft Skip moving files within the checkout.
847803
** This supersedes the --hard option.
848804
** --hard Move files within the checkout.
849805
** --case-sensitive <BOOL> Override the case-sensitive setting.
850806
** -n|--dry-run If given, display instead of run actions.
@@ -861,12 +817,10 @@
861817
Stmt q;
862818
863819
db_must_be_within_tree();
864820
dryRunFlag = find_option("dry-run","n",0)!=0;
865821
866
- capture_metadata_only_option();
867
-
868822
/* We should be done with options.. */
869823
verify_all_options();
870824
871825
vid = db_lget_int("checkout", 0);
872826
if( vid==0 ){
@@ -877,17 +831,15 @@
877831
}
878832
zDest = g.argv[g.argc-1];
879833
db_begin_transaction();
880834
if( g.argv[1][0]=='r' ){ /* i.e. "rename" */
881835
moveFiles = 0;
882
- }else if( zMetadataOnly ){
883
- moveFiles = is_false(zMetadataOnly);
884836
}else{
885837
#if FOSSIL_ENABLE_LEGACY_MV_RM
886
- moveFiles = db_get_boolean("move-files",0);
838
+ moveFiles = db_get_boolean("mv-rm-files",0);
887839
#else
888
- moveFiles = FOSSIL_MV_CHECKOUT_FILE_ON_MV;
840
+ moveFiles = FOSSIL_MV_RM_FILE;
889841
#endif
890842
}
891843
file_tree_name(zDest, &dest, 1);
892844
db_multi_exec(
893845
"UPDATE vfile SET origname=pathname WHERE origname IS NULL;"
894846
--- src/add.c
+++ src/add.c
@@ -25,39 +25,23 @@
25 #include "cygsup.h"
26
27 /*
28 ** WARNING: For Fossil version 1.x this value was always zero. For Fossil
29 ** 2.x, it will probably always be one. When this value is zero,
30 ** files in the checkout will not be moved by the "mv" command.
31 **
32 ** If the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option is used,
33 ** the "move-files" setting will be consulted instead of using
34 ** this value.
35 **
36 ** To retain the Fossil version 1.x behavior when using Fossil 2.x,
37 ** the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option must be used
38 ** -AND- the "move-files" setting must be set to zero.
39 */
40 #ifndef FOSSIL_MV_CHECKOUT_FILE_ON_MV
41 #define FOSSIL_MV_CHECKOUT_FILE_ON_MV (0)
42 #endif
43
44 /*
45 ** WARNING: For Fossil version 1.x this value was always zero. For Fossil
46 ** 2.x, it will probably always be one. When this value is zero,
47 ** files in the checkout will not be removed by the "rm" command.
48 **
49 ** If the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option is used,
50 ** the "remove-files" setting will be consulted instead of using
51 ** this value.
52 **
53 ** To retain the Fossil version 1.x behavior when using Fossil 2.x,
54 ** the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option must be used
55 ** -AND- the "remove-files" setting must be set to zero.
56 */
57 #ifndef FOSSIL_RM_CHECKOUT_FILE_ON_RM
58 #define FOSSIL_RM_CHECKOUT_FILE_ON_RM (0)
59 #endif
60
61 /*
62 ** This routine returns the names of files in a working checkout that
63 ** are created by Fossil itself, and hence should not be added, deleted,
@@ -414,26 +398,10 @@
414 }
415 db_finalize(&remove);
416 db_multi_exec("DROP TABLE fremove;");
417 }
418
419 /*
420 ** Capture the command-line --metadata-only option.
421 */
422 static const char *zMetadataOnly = 0;
423 void capture_metadata_only_option(void){
424 if( zMetadataOnly==0 ){
425 zMetadataOnly = find_option("metadata-only",0,1);
426 if( find_option("soft",0,0) && zMetadataOnly==0 ){
427 zMetadataOnly = "1";
428 }
429 if( find_option("hard",0,0) && zMetadataOnly==0 ){
430 zMetadataOnly = "0";
431 }
432 }
433 }
434
435 /*
436 ** COMMAND: rm
437 ** COMMAND: delete
438 ** COMMAND: forget*
439 **
@@ -443,25 +411,21 @@
443 **
444 ** The 'rm' and 'delete' commands do NOT normally remove the files from
445 ** disk. They just mark the files as no longer being part of the project.
446 ** In other words, future changes to the named files will not be versioned.
447 ** However, the default behavior of this command may be overridden via the
448 ** command line options listed below and/or the 'remove-files' setting.
449 **
450 ** The 'forget' command never removes files from disk, even when the command
451 ** line options and/or the 'remove-files' setting would otherwise require it
452 ** to do so.
453 **
454 ** WARNING: If either the "--metadata-only 0" or "--hard" option is
455 ** specified -OR- the "remove-files" setting is non-zero,
456 ** files WILL BE removed from disk as well. This does NOT
457 ** apply to the 'forget' command.
458 **
459 ** Options:
460 ** --metadata-only <BOOL> Non-zero to skip removing files from the
461 ** checkout. Supersedes both the --soft and
462 ** --hard options.
463 ** --soft Skip removing files from the checkout.
464 ** This supersedes the --hard option.
465 ** --hard Remove files from the checkout.
466 ** --case-sensitive <BOOL> Override the case-sensitive setting.
467 ** -n|--dry-run If given, display instead of run actions.
@@ -474,26 +438,22 @@
474 int dryRunFlag;
475 Stmt loop;
476
477 dryRunFlag = find_option("dry-run","n",0)!=0;
478
479 capture_metadata_only_option();
480
481 /* We should be done with options.. */
482 verify_all_options();
483
484 db_must_be_within_tree();
485 db_begin_transaction();
486 if( g.argv[1][0]=='f' ){ /* i.e. "forget" */
487 removeFiles = 0;
488 }else if( zMetadataOnly ){
489 removeFiles = is_false(zMetadataOnly);
490 }else{
491 #if FOSSIL_ENABLE_LEGACY_MV_RM
492 removeFiles = db_get_boolean("remove-files",0);
493 #else
494 removeFiles = FOSSIL_RM_CHECKOUT_FILE_ON_RM;
495 #endif
496 }
497 db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY %s)",
498 filename_collation());
499 for(i=2; i<g.argc; i++){
@@ -826,25 +786,21 @@
826 **
827 ** The 'mv' command does NOT normally rename or move the files on disk.
828 ** This command merely records the fact that file names have changed so
829 ** that appropriate notations can be made at the next commit/check-in.
830 ** However, the default behavior of this command may be overridden via
831 ** command line options listed below and/or the 'move-files' setting.
832 **
833 ** The 'rename' command never renames or moves files on disk, even when the
834 ** command line options and/or the 'move-files' setting would otherwise
835 ** require it to do so.
836 **
837 ** WARNING: If either the "--metadata-only 0" or "--hard" option is
838 ** specified -OR- the "move-files" setting is non-zero,
839 ** files WILL BE renamed or moved on disk as well. This does
840 ** NOT apply to the 'rename' command.
841 **
842 ** Options:
843 ** --metadata-only <BOOL> Non-zero to skip moving files within the
844 ** checkout. Supersedes both the --soft and
845 ** --hard options.
846 ** --soft Skip moving files within the checkout.
847 ** This supersedes the --hard option.
848 ** --hard Move files within the checkout.
849 ** --case-sensitive <BOOL> Override the case-sensitive setting.
850 ** -n|--dry-run If given, display instead of run actions.
@@ -861,12 +817,10 @@
861 Stmt q;
862
863 db_must_be_within_tree();
864 dryRunFlag = find_option("dry-run","n",0)!=0;
865
866 capture_metadata_only_option();
867
868 /* We should be done with options.. */
869 verify_all_options();
870
871 vid = db_lget_int("checkout", 0);
872 if( vid==0 ){
@@ -877,17 +831,15 @@
877 }
878 zDest = g.argv[g.argc-1];
879 db_begin_transaction();
880 if( g.argv[1][0]=='r' ){ /* i.e. "rename" */
881 moveFiles = 0;
882 }else if( zMetadataOnly ){
883 moveFiles = is_false(zMetadataOnly);
884 }else{
885 #if FOSSIL_ENABLE_LEGACY_MV_RM
886 moveFiles = db_get_boolean("move-files",0);
887 #else
888 moveFiles = FOSSIL_MV_CHECKOUT_FILE_ON_MV;
889 #endif
890 }
891 file_tree_name(zDest, &dest, 1);
892 db_multi_exec(
893 "UPDATE vfile SET origname=pathname WHERE origname IS NULL;"
894
--- src/add.c
+++ src/add.c
@@ -25,39 +25,23 @@
25 #include "cygsup.h"
26
27 /*
28 ** WARNING: For Fossil version 1.x this value was always zero. For Fossil
29 ** 2.x, it will probably always be one. When this value is zero,
30 ** files in the checkout will not be moved by the "mv" command and
31 ** files in the checkout will not be removed by the "rm" command.
32 **
33 ** If the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option is used,
34 ** the "mv-rm-files" setting will be consulted instead of using
35 ** this value.
36 **
37 ** To retain the Fossil version 1.x behavior when using Fossil 2.x,
38 ** the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option must be used
39 ** -AND- the "mv-rm-files" setting must be set to zero.
40 */
41 #ifndef FOSSIL_MV_RM_FILE
42 #define FOSSIL_MV_RM_FILE (0)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43 #endif
44
45 /*
46 ** This routine returns the names of files in a working checkout that
47 ** are created by Fossil itself, and hence should not be added, deleted,
@@ -414,26 +398,10 @@
398 }
399 db_finalize(&remove);
400 db_multi_exec("DROP TABLE fremove;");
401 }
402
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
403 /*
404 ** COMMAND: rm
405 ** COMMAND: delete
406 ** COMMAND: forget*
407 **
@@ -443,25 +411,21 @@
411 **
412 ** The 'rm' and 'delete' commands do NOT normally remove the files from
413 ** disk. They just mark the files as no longer being part of the project.
414 ** In other words, future changes to the named files will not be versioned.
415 ** However, the default behavior of this command may be overridden via the
416 ** command line options listed below and/or the 'mv-rm-files' setting.
417 **
418 ** The 'forget' command never removes files from disk, even when the command
419 ** line options and/or the 'mv-rm-files' setting would otherwise require it
420 ** to do so.
421 **
422 ** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files"
423 ** setting is non-zero, files WILL BE removed from disk as well.
424 ** This does NOT apply to the 'forget' command.
 
425 **
426 ** Options:
 
 
 
427 ** --soft Skip removing files from the checkout.
428 ** This supersedes the --hard option.
429 ** --hard Remove files from the checkout.
430 ** --case-sensitive <BOOL> Override the case-sensitive setting.
431 ** -n|--dry-run If given, display instead of run actions.
@@ -474,26 +438,22 @@
438 int dryRunFlag;
439 Stmt loop;
440
441 dryRunFlag = find_option("dry-run","n",0)!=0;
442
 
 
443 /* We should be done with options.. */
444 verify_all_options();
445
446 db_must_be_within_tree();
447 db_begin_transaction();
448 if( g.argv[1][0]=='f' ){ /* i.e. "forget" */
449 removeFiles = 0;
 
 
450 }else{
451 #if FOSSIL_ENABLE_LEGACY_MV_RM
452 removeFiles = db_get_boolean("mv-rm-files",0);
453 #else
454 removeFiles = FOSSIL_MV_RM_FILE;
455 #endif
456 }
457 db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY %s)",
458 filename_collation());
459 for(i=2; i<g.argc; i++){
@@ -826,25 +786,21 @@
786 **
787 ** The 'mv' command does NOT normally rename or move the files on disk.
788 ** This command merely records the fact that file names have changed so
789 ** that appropriate notations can be made at the next commit/check-in.
790 ** However, the default behavior of this command may be overridden via
791 ** command line options listed below and/or the 'mv-rm-files' setting.
792 **
793 ** The 'rename' command never renames or moves files on disk, even when the
794 ** command line options and/or the 'mv-rm-files' setting would otherwise
795 ** require it to do so.
796 **
797 ** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files"
798 ** setting is non-zero, files WILL BE renamed or moved on disk
799 ** as well. This does NOT apply to the 'rename' command.
 
800 **
801 ** Options:
 
 
 
802 ** --soft Skip moving files within the checkout.
803 ** This supersedes the --hard option.
804 ** --hard Move files within the checkout.
805 ** --case-sensitive <BOOL> Override the case-sensitive setting.
806 ** -n|--dry-run If given, display instead of run actions.
@@ -861,12 +817,10 @@
817 Stmt q;
818
819 db_must_be_within_tree();
820 dryRunFlag = find_option("dry-run","n",0)!=0;
821
 
 
822 /* We should be done with options.. */
823 verify_all_options();
824
825 vid = db_lget_int("checkout", 0);
826 if( vid==0 ){
@@ -877,17 +831,15 @@
831 }
832 zDest = g.argv[g.argc-1];
833 db_begin_transaction();
834 if( g.argv[1][0]=='r' ){ /* i.e. "rename" */
835 moveFiles = 0;
 
 
836 }else{
837 #if FOSSIL_ENABLE_LEGACY_MV_RM
838 moveFiles = db_get_boolean("mv-rm-files",0);
839 #else
840 moveFiles = FOSSIL_MV_RM_FILE;
841 #endif
842 }
843 file_tree_name(zDest, &dest, 1);
844 db_multi_exec(
845 "UPDATE vfile SET origname=pathname WHERE origname IS NULL;"
846
+1 -2
--- src/configure.c
+++ src/configure.c
@@ -128,12 +128,11 @@
128128
{ "empty-dirs", CONFIGSET_PROJ },
129129
{ "allow-symlinks", CONFIGSET_PROJ },
130130
{ "dotfiles", CONFIGSET_PROJ },
131131
132132
#ifdef FOSSIL_ENABLE_LEGACY_MV_RM
133
- { "move-files", CONFIGSET_PROJ },
134
- { "remove-files", CONFIGSET_PROJ },
133
+ { "mv-rm-files", CONFIGSET_PROJ },
135134
#endif
136135
137136
{ "ticket-table", CONFIGSET_TKT },
138137
{ "ticket-common", CONFIGSET_TKT },
139138
{ "ticket-change", CONFIGSET_TKT },
140139
--- src/configure.c
+++ src/configure.c
@@ -128,12 +128,11 @@
128 { "empty-dirs", CONFIGSET_PROJ },
129 { "allow-symlinks", CONFIGSET_PROJ },
130 { "dotfiles", CONFIGSET_PROJ },
131
132 #ifdef FOSSIL_ENABLE_LEGACY_MV_RM
133 { "move-files", CONFIGSET_PROJ },
134 { "remove-files", CONFIGSET_PROJ },
135 #endif
136
137 { "ticket-table", CONFIGSET_TKT },
138 { "ticket-common", CONFIGSET_TKT },
139 { "ticket-change", CONFIGSET_TKT },
140
--- src/configure.c
+++ src/configure.c
@@ -128,12 +128,11 @@
128 { "empty-dirs", CONFIGSET_PROJ },
129 { "allow-symlinks", CONFIGSET_PROJ },
130 { "dotfiles", CONFIGSET_PROJ },
131
132 #ifdef FOSSIL_ENABLE_LEGACY_MV_RM
133 { "mv-rm-files", CONFIGSET_PROJ },
 
134 #endif
135
136 { "ticket-table", CONFIGSET_TKT },
137 { "ticket-common", CONFIGSET_TKT },
138 { "ticket-change", CONFIGSET_TKT },
139
+8 -14
--- src/db.c
+++ src/db.c
@@ -2361,20 +2361,17 @@
23612361
{ "localauth", 0, 0, 0, 0, "off" },
23622362
{ "main-branch", 0, 40, 0, 0, "trunk" },
23632363
{ "manifest", 0, 0, 1, 0, "off" },
23642364
{ "max-loadavg", 0, 25, 0, 0, "0.0" },
23652365
{ "max-upload", 0, 25, 0, 0, "250000" },
2366
+ { "mtime-changes", 0, 0, 0, 0, "on" },
23662367
#if FOSSIL_ENABLE_LEGACY_MV_RM
2367
- { "move-files", 0, 0, 0, 0, "off" },
2368
+ { "mv-rm-files", 0, 0, 0, 0, "off" },
23682369
#endif
2369
- { "mtime-changes", 0, 0, 0, 0, "on" },
23702370
{ "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " },
23712371
{ "proxy", 0, 32, 0, 0, "off" },
23722372
{ "relative-paths", 0, 0, 0, 0, "on" },
2373
-#if FOSSIL_ENABLE_LEGACY_MV_RM
2374
- { "remove-files", 0, 0, 0, 0, "off" },
2375
-#endif
23762373
{ "repo-cksum", 0, 0, 0, 0, "on" },
23772374
{ "self-register", 0, 0, 0, 0, "off" },
23782375
{ "ssh-command", 0, 40, 0, 0, "" },
23792376
{ "ssl-ca-location", 0, 40, 0, 0, "" },
23802377
{ "ssl-identity", 0, 40, 0, 0, "" },
@@ -2576,16 +2573,18 @@
25762573
** global configuration database.
25772574
**
25782575
** max-upload A limit on the size of uplink HTTP requests. The
25792576
** default is 250000 bytes.
25802577
**
2581
-** move-files If enabled (and Fossil was compiled with legacy "mv"
2582
-** support), the "mv" and "rename" commands will also move
2583
-** the associated files within the checkout. Default: off.
2584
-**
25852578
** mtime-changes Use file modification times (mtimes) to detect when
25862579
** files have been modified. (Default "on".)
2580
+**
2581
+** mv-rm-files If enabled (and Fossil was compiled with legacy "mv/rm"
2582
+** support), the "mv" and "rename" commands will also move
2583
+** the associated files within the checkout -AND- the "rm"
2584
+** and "delete" commands will also remove the associated
2585
+** files from within the checkout. Default: off.
25872586
**
25882587
** pgp-command Command used to clear-sign manifests at check-in.
25892588
** The default is "gpg --clearsign -o ".
25902589
**
25912590
** proxy URL of the HTTP proxy. If undefined or "off" then
@@ -2594,15 +2593,10 @@
25942593
** then a direct HTTP connection is used.
25952594
**
25962595
** relative-paths When showing changes and extras, report paths relative
25972596
** to the current working directory. Default: "on"
25982597
**
2599
-** remove-files If enabled (and Fossil was compiled with legacy "rm"
2600
-** support), the "rm" and "delete" commands will also
2601
-** remove the associated files from within the checkout.
2602
-** Default: off.
2603
-**
26042598
** repo-cksum Compute checksums over all files in each checkout
26052599
** as a double-check of correctness. Defaults to "on".
26062600
** Disable on large repositories for a performance
26072601
** improvement.
26082602
**
26092603
--- src/db.c
+++ src/db.c
@@ -2361,20 +2361,17 @@
2361 { "localauth", 0, 0, 0, 0, "off" },
2362 { "main-branch", 0, 40, 0, 0, "trunk" },
2363 { "manifest", 0, 0, 1, 0, "off" },
2364 { "max-loadavg", 0, 25, 0, 0, "0.0" },
2365 { "max-upload", 0, 25, 0, 0, "250000" },
 
2366 #if FOSSIL_ENABLE_LEGACY_MV_RM
2367 { "move-files", 0, 0, 0, 0, "off" },
2368 #endif
2369 { "mtime-changes", 0, 0, 0, 0, "on" },
2370 { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " },
2371 { "proxy", 0, 32, 0, 0, "off" },
2372 { "relative-paths", 0, 0, 0, 0, "on" },
2373 #if FOSSIL_ENABLE_LEGACY_MV_RM
2374 { "remove-files", 0, 0, 0, 0, "off" },
2375 #endif
2376 { "repo-cksum", 0, 0, 0, 0, "on" },
2377 { "self-register", 0, 0, 0, 0, "off" },
2378 { "ssh-command", 0, 40, 0, 0, "" },
2379 { "ssl-ca-location", 0, 40, 0, 0, "" },
2380 { "ssl-identity", 0, 40, 0, 0, "" },
@@ -2576,16 +2573,18 @@
2576 ** global configuration database.
2577 **
2578 ** max-upload A limit on the size of uplink HTTP requests. The
2579 ** default is 250000 bytes.
2580 **
2581 ** move-files If enabled (and Fossil was compiled with legacy "mv"
2582 ** support), the "mv" and "rename" commands will also move
2583 ** the associated files within the checkout. Default: off.
2584 **
2585 ** mtime-changes Use file modification times (mtimes) to detect when
2586 ** files have been modified. (Default "on".)
 
 
 
 
 
 
2587 **
2588 ** pgp-command Command used to clear-sign manifests at check-in.
2589 ** The default is "gpg --clearsign -o ".
2590 **
2591 ** proxy URL of the HTTP proxy. If undefined or "off" then
@@ -2594,15 +2593,10 @@
2594 ** then a direct HTTP connection is used.
2595 **
2596 ** relative-paths When showing changes and extras, report paths relative
2597 ** to the current working directory. Default: "on"
2598 **
2599 ** remove-files If enabled (and Fossil was compiled with legacy "rm"
2600 ** support), the "rm" and "delete" commands will also
2601 ** remove the associated files from within the checkout.
2602 ** Default: off.
2603 **
2604 ** repo-cksum Compute checksums over all files in each checkout
2605 ** as a double-check of correctness. Defaults to "on".
2606 ** Disable on large repositories for a performance
2607 ** improvement.
2608 **
2609
--- src/db.c
+++ src/db.c
@@ -2361,20 +2361,17 @@
2361 { "localauth", 0, 0, 0, 0, "off" },
2362 { "main-branch", 0, 40, 0, 0, "trunk" },
2363 { "manifest", 0, 0, 1, 0, "off" },
2364 { "max-loadavg", 0, 25, 0, 0, "0.0" },
2365 { "max-upload", 0, 25, 0, 0, "250000" },
2366 { "mtime-changes", 0, 0, 0, 0, "on" },
2367 #if FOSSIL_ENABLE_LEGACY_MV_RM
2368 { "mv-rm-files", 0, 0, 0, 0, "off" },
2369 #endif
 
2370 { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " },
2371 { "proxy", 0, 32, 0, 0, "off" },
2372 { "relative-paths", 0, 0, 0, 0, "on" },
 
 
 
2373 { "repo-cksum", 0, 0, 0, 0, "on" },
2374 { "self-register", 0, 0, 0, 0, "off" },
2375 { "ssh-command", 0, 40, 0, 0, "" },
2376 { "ssl-ca-location", 0, 40, 0, 0, "" },
2377 { "ssl-identity", 0, 40, 0, 0, "" },
@@ -2576,16 +2573,18 @@
2573 ** global configuration database.
2574 **
2575 ** max-upload A limit on the size of uplink HTTP requests. The
2576 ** default is 250000 bytes.
2577 **
 
 
 
 
2578 ** mtime-changes Use file modification times (mtimes) to detect when
2579 ** files have been modified. (Default "on".)
2580 **
2581 ** mv-rm-files If enabled (and Fossil was compiled with legacy "mv/rm"
2582 ** support), the "mv" and "rename" commands will also move
2583 ** the associated files within the checkout -AND- the "rm"
2584 ** and "delete" commands will also remove the associated
2585 ** files from within the checkout. Default: off.
2586 **
2587 ** pgp-command Command used to clear-sign manifests at check-in.
2588 ** The default is "gpg --clearsign -o ".
2589 **
2590 ** proxy URL of the HTTP proxy. If undefined or "off" then
@@ -2594,15 +2593,10 @@
2593 ** then a direct HTTP connection is used.
2594 **
2595 ** relative-paths When showing changes and extras, report paths relative
2596 ** to the current working directory. Default: "on"
2597 **
 
 
 
 
 
2598 ** repo-cksum Compute checksums over all files in each checkout
2599 ** as a double-check of correctness. Defaults to "on".
2600 ** Disable on large repositories for a performance
2601 ** improvement.
2602 **
2603

Keyboard Shortcuts

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