Fossil SCM

Consistently use a dash in '--no' options, preserving the no-dash variant for compatibility where it exists.

danield 2024-07-20 11:43 trunk
Commit d03ed299d2a23feb9b370611e93f4e88c0c6a2ef25777aafa6376e7e55f7b9f6
--- src/backoffice.c
+++ src/backoffice.c
@@ -699,16 +699,16 @@
699699
** --trace Enable debugging output on stderr
700700
**
701701
** Options intended for internal use only which may change or be
702702
** discontinued in future releases:
703703
**
704
-** --nodelay Do not queue up or wait for a backoffice job
704
+** --no-delay Do not queue up or wait for a backoffice job
705705
** to complete. If no work is available or if
706706
** backoffice has run recently, return immediately.
707707
**
708
-** --nolease Always run backoffice, even if there is a lease
709
-** conflict. This option implies --nodelay. This
708
+** --no-lease Always run backoffice, even if there is a lease
709
+** conflict. This option implies --no-delay. This
710710
** option is added to secondary backoffice commands
711711
** that are invoked by the --poll option.
712712
*/
713713
void backoffice_command(void){
714714
int nPoll;
@@ -716,18 +716,20 @@
716716
const char *zPoll;
717717
int bDebug = 0;
718718
int bNoLease = 0;
719719
unsigned int nCmd = 0;
720720
if( find_option("trace",0,0)!=0 ) g.fAnyTrace = 1;
721
- if( find_option("nodelay",0,0)!=0 ) backofficeNoDelay = 1;
721
+ if( find_option("no-delay",0,0)!=0 || find_option("nodelay",0,0)!=0 ){
722
+ backofficeNoDelay = 1;
723
+ }
722724
backofficeLogfile = find_option("logfile",0,1);
723725
zPoll = find_option("poll",0,1);
724726
nPoll = zPoll ? atoi(zPoll) : 0;
725727
zPoll = find_option("min",0,1);
726728
nMin = zPoll ? atoi(zPoll) : 3600;
727729
bDebug = find_option("debug",0,0)!=0;
728
- bNoLease = find_option("nolease",0,0)!=0;
730
+ bNoLease = find_option("no-lease",0,0)!=0 || find_option("nolease",0,0)!=0;
729731
730732
/* Silently consume the -R or --repository flag, leaving behind its
731733
** argument. This is for legacy compatibility. Older versions of the
732734
** backoffice command only ran on a single repository that was specified
733735
** using the -R option. */
@@ -756,19 +758,19 @@
756758
){
757759
continue; /* Not yet time to run this one */
758760
}
759761
blob_init(&cmd, 0, 0);
760762
blob_append_escaped_arg(&cmd, g.nameOfExe, 1);
761
- blob_append(&cmd, " backoffice --nodelay", -1);
763
+ blob_append(&cmd, " backoffice --no-delay", -1);
762764
if( g.fAnyTrace ){
763765
blob_append(&cmd, " --trace", -1);
764766
}
765767
if( bDebug ){
766768
blob_append(&cmd, " --debug", -1);
767769
}
768770
if( nPoll>0 ){
769
- blob_append(&cmd, " --nolease", -1);
771
+ blob_append(&cmd, " --no-lease", -1);
770772
}
771773
if( backofficeLogfile ){
772774
blob_append(&cmd, " --logfile", -1);
773775
blob_append_escaped_arg(&cmd, backofficeLogfile, 1);
774776
}
775777
--- src/backoffice.c
+++ src/backoffice.c
@@ -699,16 +699,16 @@
699 ** --trace Enable debugging output on stderr
700 **
701 ** Options intended for internal use only which may change or be
702 ** discontinued in future releases:
703 **
704 ** --nodelay Do not queue up or wait for a backoffice job
705 ** to complete. If no work is available or if
706 ** backoffice has run recently, return immediately.
707 **
708 ** --nolease Always run backoffice, even if there is a lease
709 ** conflict. This option implies --nodelay. This
710 ** option is added to secondary backoffice commands
711 ** that are invoked by the --poll option.
712 */
713 void backoffice_command(void){
714 int nPoll;
@@ -716,18 +716,20 @@
716 const char *zPoll;
717 int bDebug = 0;
718 int bNoLease = 0;
719 unsigned int nCmd = 0;
720 if( find_option("trace",0,0)!=0 ) g.fAnyTrace = 1;
721 if( find_option("nodelay",0,0)!=0 ) backofficeNoDelay = 1;
 
 
722 backofficeLogfile = find_option("logfile",0,1);
723 zPoll = find_option("poll",0,1);
724 nPoll = zPoll ? atoi(zPoll) : 0;
725 zPoll = find_option("min",0,1);
726 nMin = zPoll ? atoi(zPoll) : 3600;
727 bDebug = find_option("debug",0,0)!=0;
728 bNoLease = find_option("nolease",0,0)!=0;
729
730 /* Silently consume the -R or --repository flag, leaving behind its
731 ** argument. This is for legacy compatibility. Older versions of the
732 ** backoffice command only ran on a single repository that was specified
733 ** using the -R option. */
@@ -756,19 +758,19 @@
756 ){
757 continue; /* Not yet time to run this one */
758 }
759 blob_init(&cmd, 0, 0);
760 blob_append_escaped_arg(&cmd, g.nameOfExe, 1);
761 blob_append(&cmd, " backoffice --nodelay", -1);
762 if( g.fAnyTrace ){
763 blob_append(&cmd, " --trace", -1);
764 }
765 if( bDebug ){
766 blob_append(&cmd, " --debug", -1);
767 }
768 if( nPoll>0 ){
769 blob_append(&cmd, " --nolease", -1);
770 }
771 if( backofficeLogfile ){
772 blob_append(&cmd, " --logfile", -1);
773 blob_append_escaped_arg(&cmd, backofficeLogfile, 1);
774 }
775
--- src/backoffice.c
+++ src/backoffice.c
@@ -699,16 +699,16 @@
699 ** --trace Enable debugging output on stderr
700 **
701 ** Options intended for internal use only which may change or be
702 ** discontinued in future releases:
703 **
704 ** --no-delay Do not queue up or wait for a backoffice job
705 ** to complete. If no work is available or if
706 ** backoffice has run recently, return immediately.
707 **
708 ** --no-lease Always run backoffice, even if there is a lease
709 ** conflict. This option implies --no-delay. This
710 ** option is added to secondary backoffice commands
711 ** that are invoked by the --poll option.
712 */
713 void backoffice_command(void){
714 int nPoll;
@@ -716,18 +716,20 @@
716 const char *zPoll;
717 int bDebug = 0;
718 int bNoLease = 0;
719 unsigned int nCmd = 0;
720 if( find_option("trace",0,0)!=0 ) g.fAnyTrace = 1;
721 if( find_option("no-delay",0,0)!=0 || find_option("nodelay",0,0)!=0 ){
722 backofficeNoDelay = 1;
723 }
724 backofficeLogfile = find_option("logfile",0,1);
725 zPoll = find_option("poll",0,1);
726 nPoll = zPoll ? atoi(zPoll) : 0;
727 zPoll = find_option("min",0,1);
728 nMin = zPoll ? atoi(zPoll) : 3600;
729 bDebug = find_option("debug",0,0)!=0;
730 bNoLease = find_option("no-lease",0,0)!=0 || find_option("nolease",0,0)!=0;
731
732 /* Silently consume the -R or --repository flag, leaving behind its
733 ** argument. This is for legacy compatibility. Older versions of the
734 ** backoffice command only ran on a single repository that was specified
735 ** using the -R option. */
@@ -756,19 +758,19 @@
758 ){
759 continue; /* Not yet time to run this one */
760 }
761 blob_init(&cmd, 0, 0);
762 blob_append_escaped_arg(&cmd, g.nameOfExe, 1);
763 blob_append(&cmd, " backoffice --no-delay", -1);
764 if( g.fAnyTrace ){
765 blob_append(&cmd, " --trace", -1);
766 }
767 if( bDebug ){
768 blob_append(&cmd, " --debug", -1);
769 }
770 if( nPoll>0 ){
771 blob_append(&cmd, " --no-lease", -1);
772 }
773 if( backofficeLogfile ){
774 blob_append(&cmd, " --logfile", -1);
775 blob_append_escaped_arg(&cmd, backofficeLogfile, 1);
776 }
777
+4 -4
--- src/branch.c
+++ src/branch.c
@@ -82,12 +82,12 @@
8282
Blob mcksum; /* Self-checksum on the manifest */
8383
const char *zDateOvrd; /* Override date string */
8484
const char *zUserOvrd; /* Override user name */
8585
int isPrivate = 0; /* True if the branch should be private */
8686
87
- noSign = find_option("nosign","",0)!=0;
88
- if( find_option("nosync",0,0) ) g.fNoSync = 1;
87
+ noSign = find_option("no-sign","",0)!=0 || find_option("nosign","",0)!=0;
88
+ if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
8989
zColor = find_option("bgcolor","c",1);
9090
isPrivate = find_option("private",0,0)!=0;
9191
zDateOvrd = find_option("date-override",0,1);
9292
zUserOvrd = find_option("user-override",0,1);
9393
verify_all_options();
@@ -660,12 +660,12 @@
660660
** Create a new branch BRANCH-NAME off of check-in BASIS.
661661
**
662662
** Options:
663663
** --private Branch is private (i.e., remains local)
664664
** --bgcolor COLOR Use COLOR instead of automatic background
665
-** --nosign Do not sign contents on this branch
666
-** --nosync Do not auto-sync prior to creating the branch
665
+** --no-sign Do not sign contents on this branch
666
+** --no-sync Do not auto-sync prior to creating the branch
667667
** --date-override DATE DATE to use instead of 'now'
668668
** --user-override USER USER to use instead of the current default
669669
**
670670
** DATE may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in
671671
** year-month-day form, it may be truncated, the "T" may be
672672
--- src/branch.c
+++ src/branch.c
@@ -82,12 +82,12 @@
82 Blob mcksum; /* Self-checksum on the manifest */
83 const char *zDateOvrd; /* Override date string */
84 const char *zUserOvrd; /* Override user name */
85 int isPrivate = 0; /* True if the branch should be private */
86
87 noSign = find_option("nosign","",0)!=0;
88 if( find_option("nosync",0,0) ) g.fNoSync = 1;
89 zColor = find_option("bgcolor","c",1);
90 isPrivate = find_option("private",0,0)!=0;
91 zDateOvrd = find_option("date-override",0,1);
92 zUserOvrd = find_option("user-override",0,1);
93 verify_all_options();
@@ -660,12 +660,12 @@
660 ** Create a new branch BRANCH-NAME off of check-in BASIS.
661 **
662 ** Options:
663 ** --private Branch is private (i.e., remains local)
664 ** --bgcolor COLOR Use COLOR instead of automatic background
665 ** --nosign Do not sign contents on this branch
666 ** --nosync Do not auto-sync prior to creating the branch
667 ** --date-override DATE DATE to use instead of 'now'
668 ** --user-override USER USER to use instead of the current default
669 **
670 ** DATE may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in
671 ** year-month-day form, it may be truncated, the "T" may be
672
--- src/branch.c
+++ src/branch.c
@@ -82,12 +82,12 @@
82 Blob mcksum; /* Self-checksum on the manifest */
83 const char *zDateOvrd; /* Override date string */
84 const char *zUserOvrd; /* Override user name */
85 int isPrivate = 0; /* True if the branch should be private */
86
87 noSign = find_option("no-sign","",0)!=0 || find_option("nosign","",0)!=0;
88 if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
89 zColor = find_option("bgcolor","c",1);
90 isPrivate = find_option("private",0,0)!=0;
91 zDateOvrd = find_option("date-override",0,1);
92 zUserOvrd = find_option("user-override",0,1);
93 verify_all_options();
@@ -660,12 +660,12 @@
660 ** Create a new branch BRANCH-NAME off of check-in BASIS.
661 **
662 ** Options:
663 ** --private Branch is private (i.e., remains local)
664 ** --bgcolor COLOR Use COLOR instead of automatic background
665 ** --no-sign Do not sign contents on this branch
666 ** --no-sync Do not auto-sync prior to creating the branch
667 ** --date-override DATE DATE to use instead of 'now'
668 ** --user-override USER USER to use instead of the current default
669 **
670 ** DATE may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in
671 ** year-month-day form, it may be truncated, the "T" may be
672
+4 -4
--- src/checkin.c
+++ src/checkin.c
@@ -2331,12 +2331,12 @@
23312331
** --no-prompt This option disables prompting the user for
23322332
** input and assumes an answer of 'No' for every
23332333
** question.
23342334
** --no-warnings Omit all warnings about file contents
23352335
** --no-verify Do not run before-commit hooks
2336
-** --nosign Do not attempt to sign this commit with gpg
2337
-** --nosync Do not auto-sync prior to committing
2336
+** --no-sign Do not attempt to sign this commit with gpg
2337
+** --no-sync Do not auto-sync prior to committing
23382338
** --override-lock Allow a check-in even though parent is locked
23392339
** --private Do not sync changes and their descendants
23402340
** --tag TAG-NAME Assign given tag TAG-NAME to the check-in
23412341
** --trace Debug tracing
23422342
** --user-override USER USER to use instead of the current default
@@ -2400,12 +2400,12 @@
24002400
24012401
memset(&sCiInfo, 0, sizeof(sCiInfo));
24022402
url_proxy_options();
24032403
/* --sha1sum is an undocumented alias for --hash for backwards compatiblity */
24042404
useHash = find_option("hash",0,0)!=0 || find_option("sha1sum",0,0)!=0;
2405
- noSign = find_option("nosign",0,0)!=0;
2406
- if( find_option("nosync",0,0) ) g.fNoSync = 1;
2405
+ noSign = find_option("no-sign",0,0)!=0 || find_option("nosign",0,0)!=0;
2406
+ if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
24072407
privateFlag = find_option("private",0,0)!=0;
24082408
forceDelta = find_option("delta",0,0)!=0;
24092409
forceBaseline = find_option("baseline",0,0)!=0;
24102410
db_must_be_within_tree();
24112411
if( db_get_boolean("dont-commit",0) ){
24122412
--- src/checkin.c
+++ src/checkin.c
@@ -2331,12 +2331,12 @@
2331 ** --no-prompt This option disables prompting the user for
2332 ** input and assumes an answer of 'No' for every
2333 ** question.
2334 ** --no-warnings Omit all warnings about file contents
2335 ** --no-verify Do not run before-commit hooks
2336 ** --nosign Do not attempt to sign this commit with gpg
2337 ** --nosync Do not auto-sync prior to committing
2338 ** --override-lock Allow a check-in even though parent is locked
2339 ** --private Do not sync changes and their descendants
2340 ** --tag TAG-NAME Assign given tag TAG-NAME to the check-in
2341 ** --trace Debug tracing
2342 ** --user-override USER USER to use instead of the current default
@@ -2400,12 +2400,12 @@
2400
2401 memset(&sCiInfo, 0, sizeof(sCiInfo));
2402 url_proxy_options();
2403 /* --sha1sum is an undocumented alias for --hash for backwards compatiblity */
2404 useHash = find_option("hash",0,0)!=0 || find_option("sha1sum",0,0)!=0;
2405 noSign = find_option("nosign",0,0)!=0;
2406 if( find_option("nosync",0,0) ) g.fNoSync = 1;
2407 privateFlag = find_option("private",0,0)!=0;
2408 forceDelta = find_option("delta",0,0)!=0;
2409 forceBaseline = find_option("baseline",0,0)!=0;
2410 db_must_be_within_tree();
2411 if( db_get_boolean("dont-commit",0) ){
2412
--- src/checkin.c
+++ src/checkin.c
@@ -2331,12 +2331,12 @@
2331 ** --no-prompt This option disables prompting the user for
2332 ** input and assumes an answer of 'No' for every
2333 ** question.
2334 ** --no-warnings Omit all warnings about file contents
2335 ** --no-verify Do not run before-commit hooks
2336 ** --no-sign Do not attempt to sign this commit with gpg
2337 ** --no-sync Do not auto-sync prior to committing
2338 ** --override-lock Allow a check-in even though parent is locked
2339 ** --private Do not sync changes and their descendants
2340 ** --tag TAG-NAME Assign given tag TAG-NAME to the check-in
2341 ** --trace Debug tracing
2342 ** --user-override USER USER to use instead of the current default
@@ -2400,12 +2400,12 @@
2400
2401 memset(&sCiInfo, 0, sizeof(sCiInfo));
2402 url_proxy_options();
2403 /* --sha1sum is an undocumented alias for --hash for backwards compatiblity */
2404 useHash = find_option("hash",0,0)!=0 || find_option("sha1sum",0,0)!=0;
2405 noSign = find_option("no-sign",0,0)!=0 || find_option("nosign",0,0)!=0;
2406 if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
2407 privateFlag = find_option("private",0,0)!=0;
2408 forceDelta = find_option("delta",0,0)!=0;
2409 forceBaseline = find_option("baseline",0,0)!=0;
2410 db_must_be_within_tree();
2411 if( db_get_boolean("dont-commit",0) ){
2412
+4 -3
--- src/clone.c
+++ src/clone.c
@@ -125,11 +125,11 @@
125125
** Options:
126126
** -A|--admin-user USERNAME Make USERNAME the administrator
127127
** -B|--httpauth USER:PASS Add HTTP Basic Authorization to requests
128128
** --nested Allow opening a repository inside an opened
129129
** check-out
130
-** --nocompress Omit extra delta compression
130
+** --no-compress Omit extra delta compression
131131
** --no-open Clone only. Do not open a check-out.
132132
** --once Don't remember the URI.
133133
** --private Also clone private branches
134134
** --save-http-password Remember the HTTP password without asking
135135
** -c|--ssh-command SSH Use SSH as the "ssh" command
@@ -147,11 +147,12 @@
147147
const char *zDefaultUser; /* Optional name of the default user */
148148
const char *zHttpAuth; /* HTTP Authorization user:pass information */
149149
int nErr = 0;
150150
int urlFlags = URL_PROMPT_PW | URL_REMEMBER;
151151
int syncFlags = SYNC_CLONE;
152
- int noCompress = find_option("nocompress",0,0)!=0;
152
+ int noCompress = find_option("no-compress",0,0)!=0
153
+ || find_option("nocompress",0,0)!=0;
153154
int noOpen = find_option("no-open",0,0)!=0;
154155
int allowNested = find_option("nested",0,0)!=0; /* Used by open */
155156
const char *zRepo = 0; /* Name of the new local repository file */
156157
const char *zWorkDir = 0; /* Open in this directory, if not zero */
157158
@@ -325,11 +326,11 @@
325326
zRepo, zWorkDir);
326327
blob_init(&cmd, 0, 0);
327328
blob_append_escaped_arg(&cmd, g.nameOfExe, 1);
328329
blob_append(&cmd, " open ", -1);
329330
blob_append_escaped_arg(&cmd, zRepo, 1);
330
- blob_append(&cmd, " --nosync --workdir ", -1);
331
+ blob_append(&cmd, " --no-sync --workdir ", -1);
331332
blob_append_escaped_arg(&cmd, zWorkDir, 1);
332333
if( allowNested ){
333334
blob_append(&cmd, " --nested", -1);
334335
}
335336
fossil_system(blob_str(&cmd));
336337
--- src/clone.c
+++ src/clone.c
@@ -125,11 +125,11 @@
125 ** Options:
126 ** -A|--admin-user USERNAME Make USERNAME the administrator
127 ** -B|--httpauth USER:PASS Add HTTP Basic Authorization to requests
128 ** --nested Allow opening a repository inside an opened
129 ** check-out
130 ** --nocompress Omit extra delta compression
131 ** --no-open Clone only. Do not open a check-out.
132 ** --once Don't remember the URI.
133 ** --private Also clone private branches
134 ** --save-http-password Remember the HTTP password without asking
135 ** -c|--ssh-command SSH Use SSH as the "ssh" command
@@ -147,11 +147,12 @@
147 const char *zDefaultUser; /* Optional name of the default user */
148 const char *zHttpAuth; /* HTTP Authorization user:pass information */
149 int nErr = 0;
150 int urlFlags = URL_PROMPT_PW | URL_REMEMBER;
151 int syncFlags = SYNC_CLONE;
152 int noCompress = find_option("nocompress",0,0)!=0;
 
153 int noOpen = find_option("no-open",0,0)!=0;
154 int allowNested = find_option("nested",0,0)!=0; /* Used by open */
155 const char *zRepo = 0; /* Name of the new local repository file */
156 const char *zWorkDir = 0; /* Open in this directory, if not zero */
157
@@ -325,11 +326,11 @@
325 zRepo, zWorkDir);
326 blob_init(&cmd, 0, 0);
327 blob_append_escaped_arg(&cmd, g.nameOfExe, 1);
328 blob_append(&cmd, " open ", -1);
329 blob_append_escaped_arg(&cmd, zRepo, 1);
330 blob_append(&cmd, " --nosync --workdir ", -1);
331 blob_append_escaped_arg(&cmd, zWorkDir, 1);
332 if( allowNested ){
333 blob_append(&cmd, " --nested", -1);
334 }
335 fossil_system(blob_str(&cmd));
336
--- src/clone.c
+++ src/clone.c
@@ -125,11 +125,11 @@
125 ** Options:
126 ** -A|--admin-user USERNAME Make USERNAME the administrator
127 ** -B|--httpauth USER:PASS Add HTTP Basic Authorization to requests
128 ** --nested Allow opening a repository inside an opened
129 ** check-out
130 ** --no-compress Omit extra delta compression
131 ** --no-open Clone only. Do not open a check-out.
132 ** --once Don't remember the URI.
133 ** --private Also clone private branches
134 ** --save-http-password Remember the HTTP password without asking
135 ** -c|--ssh-command SSH Use SSH as the "ssh" command
@@ -147,11 +147,12 @@
147 const char *zDefaultUser; /* Optional name of the default user */
148 const char *zHttpAuth; /* HTTP Authorization user:pass information */
149 int nErr = 0;
150 int urlFlags = URL_PROMPT_PW | URL_REMEMBER;
151 int syncFlags = SYNC_CLONE;
152 int noCompress = find_option("no-compress",0,0)!=0
153 || find_option("nocompress",0,0)!=0;
154 int noOpen = find_option("no-open",0,0)!=0;
155 int allowNested = find_option("nested",0,0)!=0; /* Used by open */
156 const char *zRepo = 0; /* Name of the new local repository file */
157 const char *zWorkDir = 0; /* Open in this directory, if not zero */
158
@@ -325,11 +326,11 @@
326 zRepo, zWorkDir);
327 blob_init(&cmd, 0, 0);
328 blob_append_escaped_arg(&cmd, g.nameOfExe, 1);
329 blob_append(&cmd, " open ", -1);
330 blob_append_escaped_arg(&cmd, zRepo, 1);
331 blob_append(&cmd, " --no-sync --workdir ", -1);
332 blob_append_escaped_arg(&cmd, zWorkDir, 1);
333 if( allowNested ){
334 blob_append(&cmd, " --nested", -1);
335 }
336 fossil_system(blob_str(&cmd));
337
+2 -2
--- src/db.c
+++ src/db.c
@@ -4104,11 +4104,11 @@
41044104
** -f|--force Continue with the open even if the working directory is
41054105
** not empty, or if auto-sync fails.
41064106
** --force-missing Force opening a repository with missing content
41074107
** -k|--keep Only modify the manifest file(s)
41084108
** --nested Allow opening a repository inside an opened check-out
4109
-** --nosync Do not auto-sync the repository prior to opening even
4109
+** --no-sync Do not auto-sync the repository prior to opening even
41104110
** if the autosync setting is on.
41114111
** --repodir DIR If REPOSITORY is a URI that will be cloned, store
41124112
** the clone in DIR rather than in "."
41134113
** --setmtime Set timestamps of all files to match their SCM-side
41144114
** times (the timestamp of the last check-in which modified
@@ -4143,11 +4143,11 @@
41434143
allowNested = find_option("nested",0,0)!=0;
41444144
setmtimeFlag = find_option("setmtime",0,0)!=0;
41454145
zWorkDir = find_option("workdir",0,1);
41464146
zRepoDir = find_option("repodir",0,1);
41474147
bForce = find_option("force","f",0)!=0;
4148
- if( find_option("nosync",0,0) ) g.fNoSync = 1;
4148
+ if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
41494149
bVerbose = find_option("verbose",0,0)!=0;
41504150
zPwd = file_getcwd(0,0);
41514151
41524152
/* We should be done with options.. */
41534153
verify_all_options();
41544154
--- src/db.c
+++ src/db.c
@@ -4104,11 +4104,11 @@
4104 ** -f|--force Continue with the open even if the working directory is
4105 ** not empty, or if auto-sync fails.
4106 ** --force-missing Force opening a repository with missing content
4107 ** -k|--keep Only modify the manifest file(s)
4108 ** --nested Allow opening a repository inside an opened check-out
4109 ** --nosync Do not auto-sync the repository prior to opening even
4110 ** if the autosync setting is on.
4111 ** --repodir DIR If REPOSITORY is a URI that will be cloned, store
4112 ** the clone in DIR rather than in "."
4113 ** --setmtime Set timestamps of all files to match their SCM-side
4114 ** times (the timestamp of the last check-in which modified
@@ -4143,11 +4143,11 @@
4143 allowNested = find_option("nested",0,0)!=0;
4144 setmtimeFlag = find_option("setmtime",0,0)!=0;
4145 zWorkDir = find_option("workdir",0,1);
4146 zRepoDir = find_option("repodir",0,1);
4147 bForce = find_option("force","f",0)!=0;
4148 if( find_option("nosync",0,0) ) g.fNoSync = 1;
4149 bVerbose = find_option("verbose",0,0)!=0;
4150 zPwd = file_getcwd(0,0);
4151
4152 /* We should be done with options.. */
4153 verify_all_options();
4154
--- src/db.c
+++ src/db.c
@@ -4104,11 +4104,11 @@
4104 ** -f|--force Continue with the open even if the working directory is
4105 ** not empty, or if auto-sync fails.
4106 ** --force-missing Force opening a repository with missing content
4107 ** -k|--keep Only modify the manifest file(s)
4108 ** --nested Allow opening a repository inside an opened check-out
4109 ** --no-sync Do not auto-sync the repository prior to opening even
4110 ** if the autosync setting is on.
4111 ** --repodir DIR If REPOSITORY is a URI that will be cloned, store
4112 ** the clone in DIR rather than in "."
4113 ** --setmtime Set timestamps of all files to match their SCM-side
4114 ** times (the timestamp of the last check-in which modified
@@ -4143,11 +4143,11 @@
4143 allowNested = find_option("nested",0,0)!=0;
4144 setmtimeFlag = find_option("setmtime",0,0)!=0;
4145 zWorkDir = find_option("workdir",0,1);
4146 zRepoDir = find_option("repodir",0,1);
4147 bForce = find_option("force","f",0)!=0;
4148 if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
4149 bVerbose = find_option("verbose",0,0)!=0;
4150 zPwd = file_getcwd(0,0);
4151
4152 /* We should be done with options.. */
4153 verify_all_options();
4154
+4 -2
--- src/diff.c
+++ src/diff.c
@@ -3105,11 +3105,11 @@
31053105
** --brief Show filenames only DIFF_BRIEF
31063106
** -c|--context N N lines of context. nContext
31073107
** --html Format for HTML DIFF_HTML
31083108
** --invert Invert the diff DIFF_INVERT
31093109
** -n|--linenum Show line numbers DIFF_LINENO
3110
-** --noopt Disable optimization DIFF_NOOPT
3110
+** --no-opt Disable optimization DIFF_NOOPT
31113111
** --numstat Show change counts DIFF_NUMSTAT
31123112
** --strip-trailing-cr Strip trailing CR DIFF_STRIP_EOLCR
31133113
** --unified Unified diff. ~DIFF_SIDEBYSIDE
31143114
** -w|--ignore-all-space Ignore all whitespaces DIFF_IGNORE_ALLWS
31153115
** -W|--width N N character lines. wColumn
@@ -3170,11 +3170,13 @@
31703170
}
31713171
if( (z = find_option("width","W",1))!=0 && (f = atoi(z))>0 ){
31723172
pCfg->wColumn = f;
31733173
}
31743174
if( find_option("linenum","n",0)!=0 ) diffFlags |= DIFF_LINENO;
3175
- if( find_option("noopt",0,0)!=0 ) diffFlags |= DIFF_NOOPT;
3175
+ if( find_option("no-opt",0,0)!=0 || find_option("noopt",0,0)!=0 ){
3176
+ diffFlags |= DIFF_NOOPT;
3177
+ }
31763178
if( find_option("numstat",0,0)!=0 ) diffFlags |= DIFF_NUMSTAT;
31773179
if( find_option("versions","h",0)!=0 ) diffFlags |= DIFF_SHOW_VERS;
31783180
if( find_option("dark",0,0)!=0 ) diffFlags |= DIFF_DARKMODE;
31793181
if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT;
31803182
if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF;
31813183
--- src/diff.c
+++ src/diff.c
@@ -3105,11 +3105,11 @@
3105 ** --brief Show filenames only DIFF_BRIEF
3106 ** -c|--context N N lines of context. nContext
3107 ** --html Format for HTML DIFF_HTML
3108 ** --invert Invert the diff DIFF_INVERT
3109 ** -n|--linenum Show line numbers DIFF_LINENO
3110 ** --noopt Disable optimization DIFF_NOOPT
3111 ** --numstat Show change counts DIFF_NUMSTAT
3112 ** --strip-trailing-cr Strip trailing CR DIFF_STRIP_EOLCR
3113 ** --unified Unified diff. ~DIFF_SIDEBYSIDE
3114 ** -w|--ignore-all-space Ignore all whitespaces DIFF_IGNORE_ALLWS
3115 ** -W|--width N N character lines. wColumn
@@ -3170,11 +3170,13 @@
3170 }
3171 if( (z = find_option("width","W",1))!=0 && (f = atoi(z))>0 ){
3172 pCfg->wColumn = f;
3173 }
3174 if( find_option("linenum","n",0)!=0 ) diffFlags |= DIFF_LINENO;
3175 if( find_option("noopt",0,0)!=0 ) diffFlags |= DIFF_NOOPT;
 
 
3176 if( find_option("numstat",0,0)!=0 ) diffFlags |= DIFF_NUMSTAT;
3177 if( find_option("versions","h",0)!=0 ) diffFlags |= DIFF_SHOW_VERS;
3178 if( find_option("dark",0,0)!=0 ) diffFlags |= DIFF_DARKMODE;
3179 if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT;
3180 if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF;
3181
--- src/diff.c
+++ src/diff.c
@@ -3105,11 +3105,11 @@
3105 ** --brief Show filenames only DIFF_BRIEF
3106 ** -c|--context N N lines of context. nContext
3107 ** --html Format for HTML DIFF_HTML
3108 ** --invert Invert the diff DIFF_INVERT
3109 ** -n|--linenum Show line numbers DIFF_LINENO
3110 ** --no-opt Disable optimization DIFF_NOOPT
3111 ** --numstat Show change counts DIFF_NUMSTAT
3112 ** --strip-trailing-cr Strip trailing CR DIFF_STRIP_EOLCR
3113 ** --unified Unified diff. ~DIFF_SIDEBYSIDE
3114 ** -w|--ignore-all-space Ignore all whitespaces DIFF_IGNORE_ALLWS
3115 ** -W|--width N N character lines. wColumn
@@ -3170,11 +3170,13 @@
3170 }
3171 if( (z = find_option("width","W",1))!=0 && (f = atoi(z))>0 ){
3172 pCfg->wColumn = f;
3173 }
3174 if( find_option("linenum","n",0)!=0 ) diffFlags |= DIFF_LINENO;
3175 if( find_option("no-opt",0,0)!=0 || find_option("noopt",0,0)!=0 ){
3176 diffFlags |= DIFF_NOOPT;
3177 }
3178 if( find_option("numstat",0,0)!=0 ) diffFlags |= DIFF_NUMSTAT;
3179 if( find_option("versions","h",0)!=0 ) diffFlags |= DIFF_SHOW_VERS;
3180 if( find_option("dark",0,0)!=0 ) diffFlags |= DIFF_DARKMODE;
3181 if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT;
3182 if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF;
3183
+1 -1
--- src/dispatch.c
+++ src/dispatch.c
@@ -1131,11 +1131,11 @@
11311131
@ --comment-format VALUE Alias for --comfmtflags
11321132
@ --errorlog FILENAME Log errors to FILENAME
11331133
@ --help Show help on the command rather than running it
11341134
@ --httptrace Trace outbound HTTP requests
11351135
@ --localtime Display times using the local timezone
1136
-@ --nocgi Do not act as CGI
1136
+@ --no-cgi Do not act as CGI
11371137
@ --no-th-hook Do not run TH1 hooks
11381138
@ --quiet Reduce the amount of output
11391139
@ --sqlstats Show SQL usage statistics when done
11401140
@ --sqltrace Trace all SQL commands
11411141
@ --sshtrace Trace SSH activity
11421142
--- src/dispatch.c
+++ src/dispatch.c
@@ -1131,11 +1131,11 @@
1131 @ --comment-format VALUE Alias for --comfmtflags
1132 @ --errorlog FILENAME Log errors to FILENAME
1133 @ --help Show help on the command rather than running it
1134 @ --httptrace Trace outbound HTTP requests
1135 @ --localtime Display times using the local timezone
1136 @ --nocgi Do not act as CGI
1137 @ --no-th-hook Do not run TH1 hooks
1138 @ --quiet Reduce the amount of output
1139 @ --sqlstats Show SQL usage statistics when done
1140 @ --sqltrace Trace all SQL commands
1141 @ --sshtrace Trace SSH activity
1142
--- src/dispatch.c
+++ src/dispatch.c
@@ -1131,11 +1131,11 @@
1131 @ --comment-format VALUE Alias for --comfmtflags
1132 @ --errorlog FILENAME Log errors to FILENAME
1133 @ --help Show help on the command rather than running it
1134 @ --httptrace Trace outbound HTTP requests
1135 @ --localtime Display times using the local timezone
1136 @ --no-cgi Do not act as CGI
1137 @ --no-th-hook Do not run TH1 hooks
1138 @ --quiet Reduce the amount of output
1139 @ --sqlstats Show SQL usage statistics when done
1140 @ --sqltrace Trace all SQL commands
1141 @ --sshtrace Trace SSH activity
1142
+5 -4
--- src/file.c
+++ src/file.c
@@ -2448,23 +2448,24 @@
24482448
}
24492449
24502450
/*
24512451
** COMMAND: test-dir-size
24522452
**
2453
-** Usage: %fossil test-dir-size NAME [GLOB] [--nodots]
2453
+** Usage: %fossil test-dir-size NAME [GLOB] [--no-dots]
24542454
**
24552455
** Return the number of objects in the directory NAME. If GLOB is
24562456
** provided, then only count objects that match the GLOB pattern.
2457
-** if --nodots is specified, omit files that begin with ".".
2457
+** if --no-dots is specified, omit files that begin with ".".
24582458
*/
24592459
void test_dir_size_cmd(void){
2460
- int omitDotFiles = find_option("nodots",0,0)!=0;
2460
+ int omitDotFiles = find_option("no-dots",0,0)!=0
2461
+ || find_option("nodots",0,0)!=0;
24612462
const char *zGlob;
24622463
const char *zDir;
24632464
verify_all_options();
24642465
if( g.argc!=3 && g.argc!=4 ){
2465
- usage("NAME [GLOB] [-nodots]");
2466
+ usage("NAME [GLOB] [--no-dots]");
24662467
}
24672468
zDir = g.argv[2];
24682469
zGlob = g.argc==4 ? g.argv[3] : 0;
24692470
fossil_print("%d\n", file_directory_size(zDir, zGlob, omitDotFiles));
24702471
}
24712472
--- src/file.c
+++ src/file.c
@@ -2448,23 +2448,24 @@
2448 }
2449
2450 /*
2451 ** COMMAND: test-dir-size
2452 **
2453 ** Usage: %fossil test-dir-size NAME [GLOB] [--nodots]
2454 **
2455 ** Return the number of objects in the directory NAME. If GLOB is
2456 ** provided, then only count objects that match the GLOB pattern.
2457 ** if --nodots is specified, omit files that begin with ".".
2458 */
2459 void test_dir_size_cmd(void){
2460 int omitDotFiles = find_option("nodots",0,0)!=0;
 
2461 const char *zGlob;
2462 const char *zDir;
2463 verify_all_options();
2464 if( g.argc!=3 && g.argc!=4 ){
2465 usage("NAME [GLOB] [-nodots]");
2466 }
2467 zDir = g.argv[2];
2468 zGlob = g.argc==4 ? g.argv[3] : 0;
2469 fossil_print("%d\n", file_directory_size(zDir, zGlob, omitDotFiles));
2470 }
2471
--- src/file.c
+++ src/file.c
@@ -2448,23 +2448,24 @@
2448 }
2449
2450 /*
2451 ** COMMAND: test-dir-size
2452 **
2453 ** Usage: %fossil test-dir-size NAME [GLOB] [--no-dots]
2454 **
2455 ** Return the number of objects in the directory NAME. If GLOB is
2456 ** provided, then only count objects that match the GLOB pattern.
2457 ** if --no-dots is specified, omit files that begin with ".".
2458 */
2459 void test_dir_size_cmd(void){
2460 int omitDotFiles = find_option("no-dots",0,0)!=0
2461 || find_option("nodots",0,0)!=0;
2462 const char *zGlob;
2463 const char *zDir;
2464 verify_all_options();
2465 if( g.argc!=3 && g.argc!=4 ){
2466 usage("NAME [GLOB] [--no-dots]");
2467 }
2468 zDir = g.argv[2];
2469 zGlob = g.argc==4 ? g.argv[3] : 0;
2470 fossil_print("%d\n", file_directory_size(zDir, zGlob, omitDotFiles));
2471 }
2472
+29 -20
--- src/main.c
+++ src/main.c
@@ -186,11 +186,11 @@
186186
int fSshTrace; /* Trace the SSH setup traffic */
187187
int fSshClient; /* HTTP client flags for SSH client */
188188
int fNoHttpCompress; /* Do not compress HTTP traffic (for debugging) */
189189
char *zSshCmd; /* SSH command string */
190190
const char *zHttpCmd; /* External program to do HTTP requests */
191
- int fNoSync; /* Do not do an autosync ever. --nosync */
191
+ int fNoSync; /* Do not do an autosync ever. --no-sync */
192192
int fIPv4; /* Use only IPv4, not IPv6. --ipv4 */
193193
char *zPath; /* Name of webpage being served (may be NULL) */
194194
char *zExtra; /* Extra path information past the webpage name */
195195
char *zBaseURL; /* Full text of the URL being served */
196196
char *zHttpsURL; /* zBaseURL translated to https: */
@@ -763,11 +763,12 @@
763763
sqlite3_vfs_register(pVfs, 1);
764764
}else{
765765
fossil_fatal("no such VFS: \"%s\"", g.zVfsName);
766766
}
767767
}
768
- if( !find_option("nocgi", 0, 0) && fossil_getenv("GATEWAY_INTERFACE")!=0){
768
+ if( !find_option("no-cgi", 0, 0) && !find_option("nocgi", 0, 0)
769
+ && fossil_getenv("GATEWAY_INTERFACE")!=0){
769770
zCmdName = "cgi";
770771
g.isHTTP = 1;
771772
}else if( g.argc<2 && !fossilExeHasAppendedRepo() ){
772773
fossil_print(
773774
"Usage: %s COMMAND ...\n"
@@ -2810,15 +2811,15 @@
28102811
** result in fewer HTTP requests than the separate mode.
28112812
** --localauth Connections from localhost are given "setup"
28122813
** privileges without having to log in
28132814
** --mainmenu FILE Override the mainmenu config setting with the contents
28142815
** of the given file
2815
-** --nocompress Do not compress HTTP replies
2816
-** --nodelay Omit backoffice processing if it would delay
2816
+** --no-compress Do not compress HTTP replies
2817
+** --no-delay Omit backoffice processing if it would delay
28172818
** process exit
2818
-** --nojail Drop root privilege but do not enter the chroot jail
2819
-** --nossl Do not do http: to https: redirects, regardless of
2819
+** --no-jail Drop root privilege but do not enter the chroot jail
2820
+** --no-ssl Do not do http: to https: redirects, regardless of
28202821
** the redirect-to-https setting.
28212822
** --notfound URL Use URL as the "HTTP 404, object not found" page
28222823
** --out FILE Write the HTTP reply to FILE instead of to
28232824
** standard output
28242825
** --pkey FILE Read the private key used for TLS from FILE
@@ -2861,15 +2862,17 @@
28612862
zFileGlob = find_option("files",0,1);
28622863
}
28632864
skin_override();
28642865
zNotFound = find_option("notfound", 0, 1);
28652866
zChRoot = find_option("chroot",0,1);
2866
- noJail = find_option("nojail",0,0)!=0;
2867
+ noJail = find_option("no-jail",0,0)!=0 || find_option("nojail",0,0)!=0;
28672868
allowRepoList = find_option("repolist",0,0)!=0;
28682869
g.useLocalauth = find_option("localauth", 0, 0)!=0;
2869
- g.sslNotAvailable = find_option("nossl", 0, 0)!=0;
2870
- g.fNoHttpCompress = find_option("nocompress",0,0)!=0;
2870
+ g.sslNotAvailable = find_option("no-ssl", 0, 0)!=0
2871
+ || find_option("nossl", 0, 0)!=0;
2872
+ g.fNoHttpCompress = find_option("no-compress",0,0)!=0
2873
+ || find_option("nocompress",0,0)!=0;
28712874
g.zExtRoot = find_option("extroot",0,1);
28722875
g.zCkoutAlias = find_option("ckout-alias",0,1);
28732876
g.zReqType = "HTTP";
28742877
zInFile = find_option("in",0,1);
28752878
if( zInFile ){
@@ -2894,11 +2897,13 @@
28942897
}
28952898
zIpAddr = find_option("ipaddr",0,1);
28962899
useSCGI = find_option("scgi", 0, 0)!=0;
28972900
if( useSCGI ) g.zReqType = "SCGI";
28982901
zAltBase = find_option("baseurl", 0, 1);
2899
- if( find_option("nodelay",0,0)!=0 ) backoffice_no_delay();
2902
+ if( find_option("no-delay",0,0)!=0 || find_option("nodelay",0,0)!=0 ){
2903
+ backoffice_no_delay();
2904
+ }
29002905
if( zAltBase ) set_base_url(zAltBase);
29012906
if( find_option("https",0,0)!=0 ){
29022907
zIpAddr = fossil_getenv("REMOTE_HOST"); /* From stunnel */
29032908
cgi_replace_parameter("HTTPS","on");
29042909
}
@@ -3167,15 +3172,15 @@
31673172
** result in fewer HTTP requests than the separate mode.
31683173
** --mainmenu FILE Override the mainmenu config setting with the contents
31693174
** of the given file
31703175
** --max-latency N Do not let any single HTTP request run for more than N
31713176
** seconds (only works on unix)
3172
-** -B|--nobrowser Do not automatically launch a web-browser for the
3177
+** -B|--no-browser Do not automatically launch a web-browser for the
31733178
** "fossil ui" command
3174
-** --nocompress Do not compress HTTP replies
3175
-** --nojail Drop root privileges but do not enter the chroot jail
3176
-** --nossl Do not force redirects to SSL even if the repository
3179
+** --no-compress Do not compress HTTP replies
3180
+** --no-jail Drop root privileges but do not enter the chroot jail
3181
+** --no-ssl Do not force redirects to SSL even if the repository
31773182
** setting "redirect-to-https" requests it. This is set
31783183
** by default for the "ui" command.
31793184
** --notfound URL Redirect to URL if a page is not found.
31803185
** -p|--page PAGE Start "ui" on PAGE. ex: --page "timeline?y=ci"
31813186
** --pkey FILE Read the private key used for TLS from FILE
@@ -3240,11 +3245,11 @@
32403245
zFileGlob = find_option("files",0,1);
32413246
}
32423247
skin_override();
32433248
#if !defined(_WIN32)
32443249
zChRoot = find_option("chroot",0,1);
3245
- noJail = find_option("nojail",0,0)!=0;
3250
+ noJail = find_option("no-jail",0,0)!=0 || find_option("nojail",0,0)!=0;
32463251
zTimeout = find_option("max-latency",0,1);
32473252
#endif
32483253
g.useLocalauth = find_option("localauth", 0, 0)!=0;
32493254
Th_InitTraceLog();
32503255
zPort = find_option("port", "P", 1);
@@ -3254,11 +3259,13 @@
32543259
if( zInitPage && zInitPage[0]=='/' ) zInitPage++;
32553260
zFossilCmd = find_option("fossilcmd", 0, 1);
32563261
}
32573262
zNotFound = find_option("notfound", 0, 1);
32583263
allowRepoList = find_option("repolist",0,0)!=0;
3259
- if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1;
3264
+ if( find_option("no-compress",0,0)!=0 || find_option("nocompress",0,0)!=0 ){
3265
+ g.fNoHttpCompress = 1;
3266
+ }
32603267
zAltBase = find_option("baseurl", 0, 1);
32613268
fCreate = find_option("create",0,0)!=0;
32623269
g.zReqType = "HTTP";
32633270
if( find_option("scgi", 0, 0)!=0 ){
32643271
g.zReqType = "SCGI";
@@ -3265,12 +3272,14 @@
32653272
flags |= HTTP_SERVER_SCGI;
32663273
}
32673274
if( zAltBase ){
32683275
set_base_url(zAltBase);
32693276
}
3270
- g.sslNotAvailable = find_option("nossl", 0, 0)!=0 || isUiCmd;
3271
- fNoBrowser = find_option("nobrowser", "B", 0)!=0;
3277
+ g.sslNotAvailable = find_option("no-ssl", 0, 0)!=0
3278
+ || find_option("nossl", 0, 0)!=0 || isUiCmd;
3279
+ fNoBrowser = find_option("no-browser", "B", 0)!=0
3280
+ || find_option("nobrowser", "B", 0)!=0;
32723281
decode_ssl_options();
32733282
if( find_option("https",0,0)!=0 || g.httpUseSSL ){
32743283
cgi_replace_parameter("HTTPS","on");
32753284
}
32763285
if( find_option("localhost", 0, 0)!=0 ){
@@ -3380,11 +3389,11 @@
33803389
zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg);
33813390
fossil_free(zBrowserArg);
33823391
}
33833392
if( zRemote ){
33843393
/* If a USER@HOST:REPO argument is supplied, then use SSH to run
3385
- ** "fossil ui --nobrowser" on the remote system and to set up a
3394
+ ** "fossil ui --no-browser" on the remote system and to set up a
33863395
** tunnel from the local machine to the remote. */
33873396
FILE *sshIn;
33883397
Blob ssh;
33893398
int bRunning = 0; /* True when fossil starts up on the remote */
33903399
int isRetry; /* True if on the second attempt */
@@ -3404,11 +3413,11 @@
34043413
}
34053414
blob_append_escaped_arg(&ssh, "fossil", 1);
34063415
}else{
34073416
blob_appendf(&ssh, " %$", zFossilCmd);
34083417
}
3409
- blob_appendf(&ssh, " ui --nobrowser --localauth --port %d", iPort);
3418
+ blob_appendf(&ssh, " ui --no-browser --localauth --port %d", iPort);
34103419
if( zNotFound ) blob_appendf(&ssh, " --notfound %!$", zNotFound);
34113420
if( zFileGlob ) blob_appendf(&ssh, " --files-urlenc %T", zFileGlob);
34123421
if( g.zCkoutAlias ) blob_appendf(&ssh," --ckout-alias %!$",g.zCkoutAlias);
34133422
if( g.zExtRoot ) blob_appendf(&ssh, " --extroot %$", g.zExtRoot);
34143423
if( skin_in_use() ) blob_appendf(&ssh, " --skin %s", skin_in_use());
34153424
--- src/main.c
+++ src/main.c
@@ -186,11 +186,11 @@
186 int fSshTrace; /* Trace the SSH setup traffic */
187 int fSshClient; /* HTTP client flags for SSH client */
188 int fNoHttpCompress; /* Do not compress HTTP traffic (for debugging) */
189 char *zSshCmd; /* SSH command string */
190 const char *zHttpCmd; /* External program to do HTTP requests */
191 int fNoSync; /* Do not do an autosync ever. --nosync */
192 int fIPv4; /* Use only IPv4, not IPv6. --ipv4 */
193 char *zPath; /* Name of webpage being served (may be NULL) */
194 char *zExtra; /* Extra path information past the webpage name */
195 char *zBaseURL; /* Full text of the URL being served */
196 char *zHttpsURL; /* zBaseURL translated to https: */
@@ -763,11 +763,12 @@
763 sqlite3_vfs_register(pVfs, 1);
764 }else{
765 fossil_fatal("no such VFS: \"%s\"", g.zVfsName);
766 }
767 }
768 if( !find_option("nocgi", 0, 0) && fossil_getenv("GATEWAY_INTERFACE")!=0){
 
769 zCmdName = "cgi";
770 g.isHTTP = 1;
771 }else if( g.argc<2 && !fossilExeHasAppendedRepo() ){
772 fossil_print(
773 "Usage: %s COMMAND ...\n"
@@ -2810,15 +2811,15 @@
2810 ** result in fewer HTTP requests than the separate mode.
2811 ** --localauth Connections from localhost are given "setup"
2812 ** privileges without having to log in
2813 ** --mainmenu FILE Override the mainmenu config setting with the contents
2814 ** of the given file
2815 ** --nocompress Do not compress HTTP replies
2816 ** --nodelay Omit backoffice processing if it would delay
2817 ** process exit
2818 ** --nojail Drop root privilege but do not enter the chroot jail
2819 ** --nossl Do not do http: to https: redirects, regardless of
2820 ** the redirect-to-https setting.
2821 ** --notfound URL Use URL as the "HTTP 404, object not found" page
2822 ** --out FILE Write the HTTP reply to FILE instead of to
2823 ** standard output
2824 ** --pkey FILE Read the private key used for TLS from FILE
@@ -2861,15 +2862,17 @@
2861 zFileGlob = find_option("files",0,1);
2862 }
2863 skin_override();
2864 zNotFound = find_option("notfound", 0, 1);
2865 zChRoot = find_option("chroot",0,1);
2866 noJail = find_option("nojail",0,0)!=0;
2867 allowRepoList = find_option("repolist",0,0)!=0;
2868 g.useLocalauth = find_option("localauth", 0, 0)!=0;
2869 g.sslNotAvailable = find_option("nossl", 0, 0)!=0;
2870 g.fNoHttpCompress = find_option("nocompress",0,0)!=0;
 
 
2871 g.zExtRoot = find_option("extroot",0,1);
2872 g.zCkoutAlias = find_option("ckout-alias",0,1);
2873 g.zReqType = "HTTP";
2874 zInFile = find_option("in",0,1);
2875 if( zInFile ){
@@ -2894,11 +2897,13 @@
2894 }
2895 zIpAddr = find_option("ipaddr",0,1);
2896 useSCGI = find_option("scgi", 0, 0)!=0;
2897 if( useSCGI ) g.zReqType = "SCGI";
2898 zAltBase = find_option("baseurl", 0, 1);
2899 if( find_option("nodelay",0,0)!=0 ) backoffice_no_delay();
 
 
2900 if( zAltBase ) set_base_url(zAltBase);
2901 if( find_option("https",0,0)!=0 ){
2902 zIpAddr = fossil_getenv("REMOTE_HOST"); /* From stunnel */
2903 cgi_replace_parameter("HTTPS","on");
2904 }
@@ -3167,15 +3172,15 @@
3167 ** result in fewer HTTP requests than the separate mode.
3168 ** --mainmenu FILE Override the mainmenu config setting with the contents
3169 ** of the given file
3170 ** --max-latency N Do not let any single HTTP request run for more than N
3171 ** seconds (only works on unix)
3172 ** -B|--nobrowser Do not automatically launch a web-browser for the
3173 ** "fossil ui" command
3174 ** --nocompress Do not compress HTTP replies
3175 ** --nojail Drop root privileges but do not enter the chroot jail
3176 ** --nossl Do not force redirects to SSL even if the repository
3177 ** setting "redirect-to-https" requests it. This is set
3178 ** by default for the "ui" command.
3179 ** --notfound URL Redirect to URL if a page is not found.
3180 ** -p|--page PAGE Start "ui" on PAGE. ex: --page "timeline?y=ci"
3181 ** --pkey FILE Read the private key used for TLS from FILE
@@ -3240,11 +3245,11 @@
3240 zFileGlob = find_option("files",0,1);
3241 }
3242 skin_override();
3243 #if !defined(_WIN32)
3244 zChRoot = find_option("chroot",0,1);
3245 noJail = find_option("nojail",0,0)!=0;
3246 zTimeout = find_option("max-latency",0,1);
3247 #endif
3248 g.useLocalauth = find_option("localauth", 0, 0)!=0;
3249 Th_InitTraceLog();
3250 zPort = find_option("port", "P", 1);
@@ -3254,11 +3259,13 @@
3254 if( zInitPage && zInitPage[0]=='/' ) zInitPage++;
3255 zFossilCmd = find_option("fossilcmd", 0, 1);
3256 }
3257 zNotFound = find_option("notfound", 0, 1);
3258 allowRepoList = find_option("repolist",0,0)!=0;
3259 if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1;
 
 
3260 zAltBase = find_option("baseurl", 0, 1);
3261 fCreate = find_option("create",0,0)!=0;
3262 g.zReqType = "HTTP";
3263 if( find_option("scgi", 0, 0)!=0 ){
3264 g.zReqType = "SCGI";
@@ -3265,12 +3272,14 @@
3265 flags |= HTTP_SERVER_SCGI;
3266 }
3267 if( zAltBase ){
3268 set_base_url(zAltBase);
3269 }
3270 g.sslNotAvailable = find_option("nossl", 0, 0)!=0 || isUiCmd;
3271 fNoBrowser = find_option("nobrowser", "B", 0)!=0;
 
 
3272 decode_ssl_options();
3273 if( find_option("https",0,0)!=0 || g.httpUseSSL ){
3274 cgi_replace_parameter("HTTPS","on");
3275 }
3276 if( find_option("localhost", 0, 0)!=0 ){
@@ -3380,11 +3389,11 @@
3380 zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg);
3381 fossil_free(zBrowserArg);
3382 }
3383 if( zRemote ){
3384 /* If a USER@HOST:REPO argument is supplied, then use SSH to run
3385 ** "fossil ui --nobrowser" on the remote system and to set up a
3386 ** tunnel from the local machine to the remote. */
3387 FILE *sshIn;
3388 Blob ssh;
3389 int bRunning = 0; /* True when fossil starts up on the remote */
3390 int isRetry; /* True if on the second attempt */
@@ -3404,11 +3413,11 @@
3404 }
3405 blob_append_escaped_arg(&ssh, "fossil", 1);
3406 }else{
3407 blob_appendf(&ssh, " %$", zFossilCmd);
3408 }
3409 blob_appendf(&ssh, " ui --nobrowser --localauth --port %d", iPort);
3410 if( zNotFound ) blob_appendf(&ssh, " --notfound %!$", zNotFound);
3411 if( zFileGlob ) blob_appendf(&ssh, " --files-urlenc %T", zFileGlob);
3412 if( g.zCkoutAlias ) blob_appendf(&ssh," --ckout-alias %!$",g.zCkoutAlias);
3413 if( g.zExtRoot ) blob_appendf(&ssh, " --extroot %$", g.zExtRoot);
3414 if( skin_in_use() ) blob_appendf(&ssh, " --skin %s", skin_in_use());
3415
--- src/main.c
+++ src/main.c
@@ -186,11 +186,11 @@
186 int fSshTrace; /* Trace the SSH setup traffic */
187 int fSshClient; /* HTTP client flags for SSH client */
188 int fNoHttpCompress; /* Do not compress HTTP traffic (for debugging) */
189 char *zSshCmd; /* SSH command string */
190 const char *zHttpCmd; /* External program to do HTTP requests */
191 int fNoSync; /* Do not do an autosync ever. --no-sync */
192 int fIPv4; /* Use only IPv4, not IPv6. --ipv4 */
193 char *zPath; /* Name of webpage being served (may be NULL) */
194 char *zExtra; /* Extra path information past the webpage name */
195 char *zBaseURL; /* Full text of the URL being served */
196 char *zHttpsURL; /* zBaseURL translated to https: */
@@ -763,11 +763,12 @@
763 sqlite3_vfs_register(pVfs, 1);
764 }else{
765 fossil_fatal("no such VFS: \"%s\"", g.zVfsName);
766 }
767 }
768 if( !find_option("no-cgi", 0, 0) && !find_option("nocgi", 0, 0)
769 && fossil_getenv("GATEWAY_INTERFACE")!=0){
770 zCmdName = "cgi";
771 g.isHTTP = 1;
772 }else if( g.argc<2 && !fossilExeHasAppendedRepo() ){
773 fossil_print(
774 "Usage: %s COMMAND ...\n"
@@ -2810,15 +2811,15 @@
2811 ** result in fewer HTTP requests than the separate mode.
2812 ** --localauth Connections from localhost are given "setup"
2813 ** privileges without having to log in
2814 ** --mainmenu FILE Override the mainmenu config setting with the contents
2815 ** of the given file
2816 ** --no-compress Do not compress HTTP replies
2817 ** --no-delay Omit backoffice processing if it would delay
2818 ** process exit
2819 ** --no-jail Drop root privilege but do not enter the chroot jail
2820 ** --no-ssl Do not do http: to https: redirects, regardless of
2821 ** the redirect-to-https setting.
2822 ** --notfound URL Use URL as the "HTTP 404, object not found" page
2823 ** --out FILE Write the HTTP reply to FILE instead of to
2824 ** standard output
2825 ** --pkey FILE Read the private key used for TLS from FILE
@@ -2861,15 +2862,17 @@
2862 zFileGlob = find_option("files",0,1);
2863 }
2864 skin_override();
2865 zNotFound = find_option("notfound", 0, 1);
2866 zChRoot = find_option("chroot",0,1);
2867 noJail = find_option("no-jail",0,0)!=0 || find_option("nojail",0,0)!=0;
2868 allowRepoList = find_option("repolist",0,0)!=0;
2869 g.useLocalauth = find_option("localauth", 0, 0)!=0;
2870 g.sslNotAvailable = find_option("no-ssl", 0, 0)!=0
2871 || find_option("nossl", 0, 0)!=0;
2872 g.fNoHttpCompress = find_option("no-compress",0,0)!=0
2873 || find_option("nocompress",0,0)!=0;
2874 g.zExtRoot = find_option("extroot",0,1);
2875 g.zCkoutAlias = find_option("ckout-alias",0,1);
2876 g.zReqType = "HTTP";
2877 zInFile = find_option("in",0,1);
2878 if( zInFile ){
@@ -2894,11 +2897,13 @@
2897 }
2898 zIpAddr = find_option("ipaddr",0,1);
2899 useSCGI = find_option("scgi", 0, 0)!=0;
2900 if( useSCGI ) g.zReqType = "SCGI";
2901 zAltBase = find_option("baseurl", 0, 1);
2902 if( find_option("no-delay",0,0)!=0 || find_option("nodelay",0,0)!=0 ){
2903 backoffice_no_delay();
2904 }
2905 if( zAltBase ) set_base_url(zAltBase);
2906 if( find_option("https",0,0)!=0 ){
2907 zIpAddr = fossil_getenv("REMOTE_HOST"); /* From stunnel */
2908 cgi_replace_parameter("HTTPS","on");
2909 }
@@ -3167,15 +3172,15 @@
3172 ** result in fewer HTTP requests than the separate mode.
3173 ** --mainmenu FILE Override the mainmenu config setting with the contents
3174 ** of the given file
3175 ** --max-latency N Do not let any single HTTP request run for more than N
3176 ** seconds (only works on unix)
3177 ** -B|--no-browser Do not automatically launch a web-browser for the
3178 ** "fossil ui" command
3179 ** --no-compress Do not compress HTTP replies
3180 ** --no-jail Drop root privileges but do not enter the chroot jail
3181 ** --no-ssl Do not force redirects to SSL even if the repository
3182 ** setting "redirect-to-https" requests it. This is set
3183 ** by default for the "ui" command.
3184 ** --notfound URL Redirect to URL if a page is not found.
3185 ** -p|--page PAGE Start "ui" on PAGE. ex: --page "timeline?y=ci"
3186 ** --pkey FILE Read the private key used for TLS from FILE
@@ -3240,11 +3245,11 @@
3245 zFileGlob = find_option("files",0,1);
3246 }
3247 skin_override();
3248 #if !defined(_WIN32)
3249 zChRoot = find_option("chroot",0,1);
3250 noJail = find_option("no-jail",0,0)!=0 || find_option("nojail",0,0)!=0;
3251 zTimeout = find_option("max-latency",0,1);
3252 #endif
3253 g.useLocalauth = find_option("localauth", 0, 0)!=0;
3254 Th_InitTraceLog();
3255 zPort = find_option("port", "P", 1);
@@ -3254,11 +3259,13 @@
3259 if( zInitPage && zInitPage[0]=='/' ) zInitPage++;
3260 zFossilCmd = find_option("fossilcmd", 0, 1);
3261 }
3262 zNotFound = find_option("notfound", 0, 1);
3263 allowRepoList = find_option("repolist",0,0)!=0;
3264 if( find_option("no-compress",0,0)!=0 || find_option("nocompress",0,0)!=0 ){
3265 g.fNoHttpCompress = 1;
3266 }
3267 zAltBase = find_option("baseurl", 0, 1);
3268 fCreate = find_option("create",0,0)!=0;
3269 g.zReqType = "HTTP";
3270 if( find_option("scgi", 0, 0)!=0 ){
3271 g.zReqType = "SCGI";
@@ -3265,12 +3272,14 @@
3272 flags |= HTTP_SERVER_SCGI;
3273 }
3274 if( zAltBase ){
3275 set_base_url(zAltBase);
3276 }
3277 g.sslNotAvailable = find_option("no-ssl", 0, 0)!=0
3278 || find_option("nossl", 0, 0)!=0 || isUiCmd;
3279 fNoBrowser = find_option("no-browser", "B", 0)!=0
3280 || find_option("nobrowser", "B", 0)!=0;
3281 decode_ssl_options();
3282 if( find_option("https",0,0)!=0 || g.httpUseSSL ){
3283 cgi_replace_parameter("HTTPS","on");
3284 }
3285 if( find_option("localhost", 0, 0)!=0 ){
@@ -3380,11 +3389,11 @@
3389 zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg);
3390 fossil_free(zBrowserArg);
3391 }
3392 if( zRemote ){
3393 /* If a USER@HOST:REPO argument is supplied, then use SSH to run
3394 ** "fossil ui --no-browser" on the remote system and to set up a
3395 ** tunnel from the local machine to the remote. */
3396 FILE *sshIn;
3397 Blob ssh;
3398 int bRunning = 0; /* True when fossil starts up on the remote */
3399 int isRetry; /* True if on the second attempt */
@@ -3404,11 +3413,11 @@
3413 }
3414 blob_append_escaped_arg(&ssh, "fossil", 1);
3415 }else{
3416 blob_appendf(&ssh, " %$", zFossilCmd);
3417 }
3418 blob_appendf(&ssh, " ui --no-browser --localauth --port %d", iPort);
3419 if( zNotFound ) blob_appendf(&ssh, " --notfound %!$", zNotFound);
3420 if( zFileGlob ) blob_appendf(&ssh, " --files-urlenc %T", zFileGlob);
3421 if( g.zCkoutAlias ) blob_appendf(&ssh," --ckout-alias %!$",g.zCkoutAlias);
3422 if( g.zExtRoot ) blob_appendf(&ssh, " --extroot %$", g.zExtRoot);
3423 if( skin_in_use() ) blob_appendf(&ssh, " --skin %s", skin_in_use());
3424
+4 -3
--- src/merge.c
+++ src/merge.c
@@ -321,11 +321,11 @@
321321
** --integrate Merged branch will be closed when committing
322322
** -K|--keep-merge-files On merge conflict, retain the temporary files
323323
** used for merging, named *-baseline, *-original,
324324
** and *-merge.
325325
** -n|--dry-run If given, display instead of run actions
326
-** --nosync Do not auto-sync prior to merging
326
+** --no-sync Do not auto-sync prior to merging
327327
** -v|--verbose Show additional details of the merge
328328
*/
329329
void merge_cmd(void){
330330
int vid; /* Current version "V" */
331331
int mid; /* Version we are merging from "M" */
@@ -373,13 +373,14 @@
373373
integrateFlag = find_option("integrate",0,0)!=0;
374374
backoutFlag = find_option("backout",0,0)!=0;
375375
zBinGlob = find_option("binary",0,1);
376376
dryRunFlag = find_option("dry-run","n",0)!=0;
377377
if( !dryRunFlag ){
378
- dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */
378
+ dryRunFlag = find_option("no-change",0,0)!=0
379
+ || find_option("nochange",0,0)!=0; /* deprecated */
379380
}
380
- if( find_option("nosync",0,0) ) g.fNoSync = 1;
381
+ if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
381382
forceFlag = find_option("force","f",0)!=0;
382383
zPivot = find_option("baseline",0,1);
383384
keepMergeFlag = find_option("keep-merge-files", "K",0)!=0;
384385
385386
/* Undocumented --debug and --show-vfile options:
386387
--- src/merge.c
+++ src/merge.c
@@ -321,11 +321,11 @@
321 ** --integrate Merged branch will be closed when committing
322 ** -K|--keep-merge-files On merge conflict, retain the temporary files
323 ** used for merging, named *-baseline, *-original,
324 ** and *-merge.
325 ** -n|--dry-run If given, display instead of run actions
326 ** --nosync Do not auto-sync prior to merging
327 ** -v|--verbose Show additional details of the merge
328 */
329 void merge_cmd(void){
330 int vid; /* Current version "V" */
331 int mid; /* Version we are merging from "M" */
@@ -373,13 +373,14 @@
373 integrateFlag = find_option("integrate",0,0)!=0;
374 backoutFlag = find_option("backout",0,0)!=0;
375 zBinGlob = find_option("binary",0,1);
376 dryRunFlag = find_option("dry-run","n",0)!=0;
377 if( !dryRunFlag ){
378 dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */
 
379 }
380 if( find_option("nosync",0,0) ) g.fNoSync = 1;
381 forceFlag = find_option("force","f",0)!=0;
382 zPivot = find_option("baseline",0,1);
383 keepMergeFlag = find_option("keep-merge-files", "K",0)!=0;
384
385 /* Undocumented --debug and --show-vfile options:
386
--- src/merge.c
+++ src/merge.c
@@ -321,11 +321,11 @@
321 ** --integrate Merged branch will be closed when committing
322 ** -K|--keep-merge-files On merge conflict, retain the temporary files
323 ** used for merging, named *-baseline, *-original,
324 ** and *-merge.
325 ** -n|--dry-run If given, display instead of run actions
326 ** --no-sync Do not auto-sync prior to merging
327 ** -v|--verbose Show additional details of the merge
328 */
329 void merge_cmd(void){
330 int vid; /* Current version "V" */
331 int mid; /* Version we are merging from "M" */
@@ -373,13 +373,14 @@
373 integrateFlag = find_option("integrate",0,0)!=0;
374 backoutFlag = find_option("backout",0,0)!=0;
375 zBinGlob = find_option("binary",0,1);
376 dryRunFlag = find_option("dry-run","n",0)!=0;
377 if( !dryRunFlag ){
378 dryRunFlag = find_option("no-change",0,0)!=0
379 || find_option("nochange",0,0)!=0; /* deprecated */
380 }
381 if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
382 forceFlag = find_option("force","f",0)!=0;
383 zPivot = find_option("baseline",0,1);
384 keepMergeFlag = find_option("keep-merge-files", "K",0)!=0;
385
386 /* Undocumented --debug and --show-vfile options:
387
+4 -4
--- src/rebuild.c
+++ src/rebuild.c
@@ -664,12 +664,12 @@
664664
** --compress Strive to make the database as small as possible
665665
** --compress-only Skip the rebuilding step. Do --compress only
666666
** --force Force the rebuild to complete even if errors are seen
667667
** --ifneeded Only do the rebuild if it would change the schema version
668668
** --index Always add in the full-text search index
669
-** --noverify Skip the verification of changes to the BLOB table
670
-** --noindex Always omit the full-text search index
669
+** --no-verify Skip the verification of changes to the BLOB table
670
+** --no-index Always omit the full-text search index
671671
** --pagesize N Set the database pagesize to N (512..65536, power of 2)
672672
** --quiet Only show output if there are errors
673673
** --stats Show artifact statistics after rebuilding
674674
** --vacuum Run VACUUM on the database after rebuilding
675675
** --wal Set Write-Ahead-Log journalling mode on the database
@@ -691,21 +691,21 @@
691691
int optNoIndex;
692692
int optIndex;
693693
int optIfNeeded;
694694
int compressOnlyFlag;
695695
696
- omitVerify = find_option("noverify",0,0)!=0;
696
+ omitVerify = find_option("no-verify",0,0)!=0 ||find_option("noverify",0,0)!=0;
697697
forceFlag = find_option("force","f",0)!=0;
698698
doClustering = find_option("cluster", 0, 0)!=0;
699699
runVacuum = find_option("vacuum",0,0)!=0;
700700
runDeanalyze = find_option("deanalyze",0,0)!=0; /* Deprecated */
701701
runAnalyze = find_option("analyze",0,0)!=0;
702702
runCompress = find_option("compress",0,0)!=0;
703703
zPagesize = find_option("pagesize",0,1);
704704
showStats = find_option("stats",0,0)!=0;
705705
optIndex = find_option("index",0,0)!=0;
706
- optNoIndex = find_option("noindex",0,0)!=0;
706
+ optNoIndex = find_option("no-index",0,0)!=0 || find_option("noindex",0,0)!=0;
707707
optIfNeeded = find_option("ifneeded",0,0)!=0;
708708
compressOnlyFlag = find_option("compress-only",0,0)!=0;
709709
if( compressOnlyFlag ) runCompress = 1;
710710
if( zPagesize ){
711711
newPagesize = atoi(zPagesize);
712712
--- src/rebuild.c
+++ src/rebuild.c
@@ -664,12 +664,12 @@
664 ** --compress Strive to make the database as small as possible
665 ** --compress-only Skip the rebuilding step. Do --compress only
666 ** --force Force the rebuild to complete even if errors are seen
667 ** --ifneeded Only do the rebuild if it would change the schema version
668 ** --index Always add in the full-text search index
669 ** --noverify Skip the verification of changes to the BLOB table
670 ** --noindex Always omit the full-text search index
671 ** --pagesize N Set the database pagesize to N (512..65536, power of 2)
672 ** --quiet Only show output if there are errors
673 ** --stats Show artifact statistics after rebuilding
674 ** --vacuum Run VACUUM on the database after rebuilding
675 ** --wal Set Write-Ahead-Log journalling mode on the database
@@ -691,21 +691,21 @@
691 int optNoIndex;
692 int optIndex;
693 int optIfNeeded;
694 int compressOnlyFlag;
695
696 omitVerify = find_option("noverify",0,0)!=0;
697 forceFlag = find_option("force","f",0)!=0;
698 doClustering = find_option("cluster", 0, 0)!=0;
699 runVacuum = find_option("vacuum",0,0)!=0;
700 runDeanalyze = find_option("deanalyze",0,0)!=0; /* Deprecated */
701 runAnalyze = find_option("analyze",0,0)!=0;
702 runCompress = find_option("compress",0,0)!=0;
703 zPagesize = find_option("pagesize",0,1);
704 showStats = find_option("stats",0,0)!=0;
705 optIndex = find_option("index",0,0)!=0;
706 optNoIndex = find_option("noindex",0,0)!=0;
707 optIfNeeded = find_option("ifneeded",0,0)!=0;
708 compressOnlyFlag = find_option("compress-only",0,0)!=0;
709 if( compressOnlyFlag ) runCompress = 1;
710 if( zPagesize ){
711 newPagesize = atoi(zPagesize);
712
--- src/rebuild.c
+++ src/rebuild.c
@@ -664,12 +664,12 @@
664 ** --compress Strive to make the database as small as possible
665 ** --compress-only Skip the rebuilding step. Do --compress only
666 ** --force Force the rebuild to complete even if errors are seen
667 ** --ifneeded Only do the rebuild if it would change the schema version
668 ** --index Always add in the full-text search index
669 ** --no-verify Skip the verification of changes to the BLOB table
670 ** --no-index Always omit the full-text search index
671 ** --pagesize N Set the database pagesize to N (512..65536, power of 2)
672 ** --quiet Only show output if there are errors
673 ** --stats Show artifact statistics after rebuilding
674 ** --vacuum Run VACUUM on the database after rebuilding
675 ** --wal Set Write-Ahead-Log journalling mode on the database
@@ -691,21 +691,21 @@
691 int optNoIndex;
692 int optIndex;
693 int optIfNeeded;
694 int compressOnlyFlag;
695
696 omitVerify = find_option("no-verify",0,0)!=0 ||find_option("noverify",0,0)!=0;
697 forceFlag = find_option("force","f",0)!=0;
698 doClustering = find_option("cluster", 0, 0)!=0;
699 runVacuum = find_option("vacuum",0,0)!=0;
700 runDeanalyze = find_option("deanalyze",0,0)!=0; /* Deprecated */
701 runAnalyze = find_option("analyze",0,0)!=0;
702 runCompress = find_option("compress",0,0)!=0;
703 zPagesize = find_option("pagesize",0,1);
704 showStats = find_option("stats",0,0)!=0;
705 optIndex = find_option("index",0,0)!=0;
706 optNoIndex = find_option("no-index",0,0)!=0 || find_option("noindex",0,0)!=0;
707 optIfNeeded = find_option("ifneeded",0,0)!=0;
708 compressOnlyFlag = find_option("compress-only",0,0)!=0;
709 if( compressOnlyFlag ) runCompress = 1;
710 if( zPagesize ){
711 newPagesize = atoi(zPagesize);
712
+5 -4
--- src/update.c
+++ src/update.c
@@ -100,11 +100,11 @@
100100
** -K|--keep-merge-files On merge conflict, retain the temporary files
101101
** used for merging, named *-baseline, *-original,
102102
** and *-merge.
103103
** --latest Acceptable in place of VERSION, update to
104104
** latest version
105
-** --nosync Do not auto-sync prior to update
105
+** --no-sync Do not auto-sync prior to update
106106
** --setmtime Set timestamps of all files to match their
107107
** SCM-side times (the timestamp of the last
108108
** check-in which modified them).
109109
** -v|--verbose Print status information about all files
110110
** -W|--width WIDTH Width of lines (default is to auto-detect).
@@ -128,11 +128,11 @@
128128
int *aChng; /* Array of file renames */
129129
int i; /* Loop counter */
130130
int nConflict = 0; /* Number of merge conflicts */
131131
int nOverwrite = 0; /* Number of unmanaged files overwritten */
132132
int nUpdate = 0; /* Number of changes of any kind */
133
- int bNosync = 0; /* --nosync. Omit the auto-sync */
133
+ int bNosync = 0; /* --no-sync. Omit the auto-sync */
134134
int width; /* Width of printed comment lines */
135135
Stmt mtimeXfer; /* Statement to transfer mtimes */
136136
const char *zWidth; /* Width option string value */
137137
138138
if( !internalUpdate ){
@@ -149,18 +149,19 @@
149149
width = -1;
150150
}
151151
latestFlag = find_option("latest",0, 0)!=0;
152152
dryRunFlag = find_option("dry-run","n",0)!=0;
153153
if( !dryRunFlag ){
154
- dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */
154
+ dryRunFlag = find_option("no-change",0,0)!=0
155
+ || find_option("nochange",0,0)!=0; /* deprecated */
155156
}
156157
verboseFlag = find_option("verbose","v",0)!=0;
157158
forceMissingFlag = find_option("force-missing",0,0)!=0;
158159
debugFlag = find_option("debug",0,0)!=0;
159160
setmtimeFlag = find_option("setmtime",0,0)!=0;
160161
keepMergeFlag = find_option("keep-merge-files", "K",0)!=0;
161
- bNosync = find_option("nosync",0,0)!=0;
162
+ bNosync = find_option("no-sync",0,0)!=0 || find_option("nosync",0,0)!=0;
162163
163164
/* We should be done with options.. */
164165
verify_all_options();
165166
166167
db_must_be_within_tree();
167168
--- src/update.c
+++ src/update.c
@@ -100,11 +100,11 @@
100 ** -K|--keep-merge-files On merge conflict, retain the temporary files
101 ** used for merging, named *-baseline, *-original,
102 ** and *-merge.
103 ** --latest Acceptable in place of VERSION, update to
104 ** latest version
105 ** --nosync Do not auto-sync prior to update
106 ** --setmtime Set timestamps of all files to match their
107 ** SCM-side times (the timestamp of the last
108 ** check-in which modified them).
109 ** -v|--verbose Print status information about all files
110 ** -W|--width WIDTH Width of lines (default is to auto-detect).
@@ -128,11 +128,11 @@
128 int *aChng; /* Array of file renames */
129 int i; /* Loop counter */
130 int nConflict = 0; /* Number of merge conflicts */
131 int nOverwrite = 0; /* Number of unmanaged files overwritten */
132 int nUpdate = 0; /* Number of changes of any kind */
133 int bNosync = 0; /* --nosync. Omit the auto-sync */
134 int width; /* Width of printed comment lines */
135 Stmt mtimeXfer; /* Statement to transfer mtimes */
136 const char *zWidth; /* Width option string value */
137
138 if( !internalUpdate ){
@@ -149,18 +149,19 @@
149 width = -1;
150 }
151 latestFlag = find_option("latest",0, 0)!=0;
152 dryRunFlag = find_option("dry-run","n",0)!=0;
153 if( !dryRunFlag ){
154 dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */
 
155 }
156 verboseFlag = find_option("verbose","v",0)!=0;
157 forceMissingFlag = find_option("force-missing",0,0)!=0;
158 debugFlag = find_option("debug",0,0)!=0;
159 setmtimeFlag = find_option("setmtime",0,0)!=0;
160 keepMergeFlag = find_option("keep-merge-files", "K",0)!=0;
161 bNosync = find_option("nosync",0,0)!=0;
162
163 /* We should be done with options.. */
164 verify_all_options();
165
166 db_must_be_within_tree();
167
--- src/update.c
+++ src/update.c
@@ -100,11 +100,11 @@
100 ** -K|--keep-merge-files On merge conflict, retain the temporary files
101 ** used for merging, named *-baseline, *-original,
102 ** and *-merge.
103 ** --latest Acceptable in place of VERSION, update to
104 ** latest version
105 ** --no-sync Do not auto-sync prior to update
106 ** --setmtime Set timestamps of all files to match their
107 ** SCM-side times (the timestamp of the last
108 ** check-in which modified them).
109 ** -v|--verbose Print status information about all files
110 ** -W|--width WIDTH Width of lines (default is to auto-detect).
@@ -128,11 +128,11 @@
128 int *aChng; /* Array of file renames */
129 int i; /* Loop counter */
130 int nConflict = 0; /* Number of merge conflicts */
131 int nOverwrite = 0; /* Number of unmanaged files overwritten */
132 int nUpdate = 0; /* Number of changes of any kind */
133 int bNosync = 0; /* --no-sync. Omit the auto-sync */
134 int width; /* Width of printed comment lines */
135 Stmt mtimeXfer; /* Statement to transfer mtimes */
136 const char *zWidth; /* Width option string value */
137
138 if( !internalUpdate ){
@@ -149,18 +149,19 @@
149 width = -1;
150 }
151 latestFlag = find_option("latest",0, 0)!=0;
152 dryRunFlag = find_option("dry-run","n",0)!=0;
153 if( !dryRunFlag ){
154 dryRunFlag = find_option("no-change",0,0)!=0
155 || find_option("nochange",0,0)!=0; /* deprecated */
156 }
157 verboseFlag = find_option("verbose","v",0)!=0;
158 forceMissingFlag = find_option("force-missing",0,0)!=0;
159 debugFlag = find_option("debug",0,0)!=0;
160 setmtimeFlag = find_option("setmtime",0,0)!=0;
161 keepMergeFlag = find_option("keep-merge-files", "K",0)!=0;
162 bNosync = find_option("no-sync",0,0)!=0 || find_option("nosync",0,0)!=0;
163
164 /* We should be done with options.. */
165 verify_all_options();
166
167 db_must_be_within_tree();
168
+2 -2
--- src/url.c
+++ src/url.c
@@ -546,11 +546,11 @@
546546
**
547547
** The original purpose of this routine is the above. But this
548548
** also happens to be a convenient place to look for other
549549
** network-related options:
550550
**
551
-** --nosync Temporarily disable "autosync"
551
+** --no-sync Temporarily disable "autosync"
552552
**
553553
** --ipv4 Disallow IPv6. Use only IPv4.
554554
**
555555
** --accept-any-cert Disable server SSL cert validation. Accept
556556
** any SSL cert that the server provides.
@@ -557,11 +557,11 @@
557557
** WARNING: this option opens you up to
558558
** forged-DNS and man-in-the-middle attacks!
559559
*/
560560
void url_proxy_options(void){
561561
zProxyOpt = find_option("proxy", 0, 1);
562
- if( find_option("nosync",0,0) ) g.fNoSync = 1;
562
+ if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
563563
if( find_option("ipv4",0,0) ) g.fIPv4 = 1;
564564
#ifdef FOSSIL_ENABLE_SSL
565565
if( find_option("accept-any-cert",0,0) ){
566566
ssl_disable_cert_verification();
567567
}
568568
--- src/url.c
+++ src/url.c
@@ -546,11 +546,11 @@
546 **
547 ** The original purpose of this routine is the above. But this
548 ** also happens to be a convenient place to look for other
549 ** network-related options:
550 **
551 ** --nosync Temporarily disable "autosync"
552 **
553 ** --ipv4 Disallow IPv6. Use only IPv4.
554 **
555 ** --accept-any-cert Disable server SSL cert validation. Accept
556 ** any SSL cert that the server provides.
@@ -557,11 +557,11 @@
557 ** WARNING: this option opens you up to
558 ** forged-DNS and man-in-the-middle attacks!
559 */
560 void url_proxy_options(void){
561 zProxyOpt = find_option("proxy", 0, 1);
562 if( find_option("nosync",0,0) ) g.fNoSync = 1;
563 if( find_option("ipv4",0,0) ) g.fIPv4 = 1;
564 #ifdef FOSSIL_ENABLE_SSL
565 if( find_option("accept-any-cert",0,0) ){
566 ssl_disable_cert_verification();
567 }
568
--- src/url.c
+++ src/url.c
@@ -546,11 +546,11 @@
546 **
547 ** The original purpose of this routine is the above. But this
548 ** also happens to be a convenient place to look for other
549 ** network-related options:
550 **
551 ** --no-sync Temporarily disable "autosync"
552 **
553 ** --ipv4 Disallow IPv6. Use only IPv4.
554 **
555 ** --accept-any-cert Disable server SSL cert validation. Accept
556 ** any SSL cert that the server provides.
@@ -557,11 +557,11 @@
557 ** WARNING: this option opens you up to
558 ** forged-DNS and man-in-the-middle attacks!
559 */
560 void url_proxy_options(void){
561 zProxyOpt = find_option("proxy", 0, 1);
562 if( find_option("no-sync",0,0) || find_option("nosync",0,0) ) g.fNoSync = 1;
563 if( find_option("ipv4",0,0) ) g.fIPv4 = 1;
564 #ifdef FOSSIL_ENABLE_SSL
565 if( find_option("accept-any-cert",0,0) ){
566 ssl_disable_cert_verification();
567 }
568
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1872,24 +1872,28 @@
18721872
**
18731873
** Options:
18741874
** --buttons Set the WIKI_BUTTONS flag
18751875
** --htmlonly Set the WIKI_HTMLONLY flag
18761876
** --linksonly Set the WIKI_LINKSONLY flag
1877
-** --nobadlinks Set the WIKI_NOBADLINKS flag
1877
+** --no-badlinks Set the WIKI_NOBADLINKS flag
18781878
** --inline Set the WIKI_INLINE flag
1879
-** --noblock Set the WIKI_NOBLOCK flag
1879
+** --no-block Set the WIKI_NOBLOCK flag
18801880
** --dark-pikchr Render pikchrs in dark mode
18811881
*/
18821882
void test_wiki_render(void){
18831883
Blob in, out;
18841884
int flags = 0;
18851885
if( find_option("buttons",0,0)!=0 ) flags |= WIKI_BUTTONS;
18861886
if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY;
18871887
if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY;
1888
- if( find_option("nobadlinks",0,0)!=0 ) flags |= WIKI_NOBADLINKS;
1888
+ if( find_option("no-badlinks",0,0)!=0 || find_option("nobadlinks",0,0)!=0 ){
1889
+ flags |= WIKI_NOBADLINKS;
1890
+ }
18891891
if( find_option("inline",0,0)!=0 ) flags |= WIKI_INLINE;
1890
- if( find_option("noblock",0,0)!=0 ) flags |= WIKI_NOBLOCK;
1892
+ if( find_option("no-block",0,0)!=0 || find_option("noblock",0,0)!=0 ){
1893
+ flags |= WIKI_NOBLOCK;
1894
+ }
18911895
if( find_option("dark-pikchr",0,0)!=0 ){
18921896
pikchr_to_html_add_flags( PIKCHR_PROCESS_DARK_MODE );
18931897
}
18941898
db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0);
18951899
verify_all_options();
18961900
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1872,24 +1872,28 @@
1872 **
1873 ** Options:
1874 ** --buttons Set the WIKI_BUTTONS flag
1875 ** --htmlonly Set the WIKI_HTMLONLY flag
1876 ** --linksonly Set the WIKI_LINKSONLY flag
1877 ** --nobadlinks Set the WIKI_NOBADLINKS flag
1878 ** --inline Set the WIKI_INLINE flag
1879 ** --noblock Set the WIKI_NOBLOCK flag
1880 ** --dark-pikchr Render pikchrs in dark mode
1881 */
1882 void test_wiki_render(void){
1883 Blob in, out;
1884 int flags = 0;
1885 if( find_option("buttons",0,0)!=0 ) flags |= WIKI_BUTTONS;
1886 if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY;
1887 if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY;
1888 if( find_option("nobadlinks",0,0)!=0 ) flags |= WIKI_NOBADLINKS;
 
 
1889 if( find_option("inline",0,0)!=0 ) flags |= WIKI_INLINE;
1890 if( find_option("noblock",0,0)!=0 ) flags |= WIKI_NOBLOCK;
 
 
1891 if( find_option("dark-pikchr",0,0)!=0 ){
1892 pikchr_to_html_add_flags( PIKCHR_PROCESS_DARK_MODE );
1893 }
1894 db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0);
1895 verify_all_options();
1896
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1872,24 +1872,28 @@
1872 **
1873 ** Options:
1874 ** --buttons Set the WIKI_BUTTONS flag
1875 ** --htmlonly Set the WIKI_HTMLONLY flag
1876 ** --linksonly Set the WIKI_LINKSONLY flag
1877 ** --no-badlinks Set the WIKI_NOBADLINKS flag
1878 ** --inline Set the WIKI_INLINE flag
1879 ** --no-block Set the WIKI_NOBLOCK flag
1880 ** --dark-pikchr Render pikchrs in dark mode
1881 */
1882 void test_wiki_render(void){
1883 Blob in, out;
1884 int flags = 0;
1885 if( find_option("buttons",0,0)!=0 ) flags |= WIKI_BUTTONS;
1886 if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY;
1887 if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY;
1888 if( find_option("no-badlinks",0,0)!=0 || find_option("nobadlinks",0,0)!=0 ){
1889 flags |= WIKI_NOBADLINKS;
1890 }
1891 if( find_option("inline",0,0)!=0 ) flags |= WIKI_INLINE;
1892 if( find_option("no-block",0,0)!=0 || find_option("noblock",0,0)!=0 ){
1893 flags |= WIKI_NOBLOCK;
1894 }
1895 if( find_option("dark-pikchr",0,0)!=0 ){
1896 pikchr_to_html_add_flags( PIKCHR_PROCESS_DARK_MODE );
1897 }
1898 db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0);
1899 verify_all_options();
1900
+2 -2
--- src/winhttp.c
+++ src/winhttp.c
@@ -432,11 +432,11 @@
432432
fwrite(zCmd, 1, strlen(zCmd), aux);
433433
434434
sqlite3_snprintf(sizeof(zCmd), zCmd,
435435
"\"%s\" http -args \"%s\"%s%s",
436436
g.nameOfExe, zCmdFName,
437
- g.httpUseSSL ? "" : " --nossl", p->zOptions
437
+ g.httpUseSSL ? "" : " --no-ssl", p->zOptions
438438
);
439439
in = fossil_fopen(zReplyFName, "w+b");
440440
fflush(out);
441441
fflush(aux);
442442
if( g.fHttpTrace ){
@@ -518,11 +518,11 @@
518518
}
519519
assert( g.zRepositoryName && g.zRepositoryName[0] );
520520
zIp = SocketAddr_toString(&p->addr);
521521
sqlite3_snprintf(sizeof(zCmd), zCmd,
522522
"\"%s\" http --in \"%s\" --out \"%s\" --ipaddr %s \"%s\""
523
- " --scgi --nossl%s",
523
+ " --scgi --no-ssl%s",
524524
g.nameOfExe, zRequestFName, zReplyFName, zIp,
525525
g.zRepositoryName, p->zOptions
526526
);
527527
fossil_free(zIp);
528528
in = fossil_fopen(zReplyFName, "w+b");
529529
--- src/winhttp.c
+++ src/winhttp.c
@@ -432,11 +432,11 @@
432 fwrite(zCmd, 1, strlen(zCmd), aux);
433
434 sqlite3_snprintf(sizeof(zCmd), zCmd,
435 "\"%s\" http -args \"%s\"%s%s",
436 g.nameOfExe, zCmdFName,
437 g.httpUseSSL ? "" : " --nossl", p->zOptions
438 );
439 in = fossil_fopen(zReplyFName, "w+b");
440 fflush(out);
441 fflush(aux);
442 if( g.fHttpTrace ){
@@ -518,11 +518,11 @@
518 }
519 assert( g.zRepositoryName && g.zRepositoryName[0] );
520 zIp = SocketAddr_toString(&p->addr);
521 sqlite3_snprintf(sizeof(zCmd), zCmd,
522 "\"%s\" http --in \"%s\" --out \"%s\" --ipaddr %s \"%s\""
523 " --scgi --nossl%s",
524 g.nameOfExe, zRequestFName, zReplyFName, zIp,
525 g.zRepositoryName, p->zOptions
526 );
527 fossil_free(zIp);
528 in = fossil_fopen(zReplyFName, "w+b");
529
--- src/winhttp.c
+++ src/winhttp.c
@@ -432,11 +432,11 @@
432 fwrite(zCmd, 1, strlen(zCmd), aux);
433
434 sqlite3_snprintf(sizeof(zCmd), zCmd,
435 "\"%s\" http -args \"%s\"%s%s",
436 g.nameOfExe, zCmdFName,
437 g.httpUseSSL ? "" : " --no-ssl", p->zOptions
438 );
439 in = fossil_fopen(zReplyFName, "w+b");
440 fflush(out);
441 fflush(aux);
442 if( g.fHttpTrace ){
@@ -518,11 +518,11 @@
518 }
519 assert( g.zRepositoryName && g.zRepositoryName[0] );
520 zIp = SocketAddr_toString(&p->addr);
521 sqlite3_snprintf(sizeof(zCmd), zCmd,
522 "\"%s\" http --in \"%s\" --out \"%s\" --ipaddr %s \"%s\""
523 " --scgi --no-ssl%s",
524 g.nameOfExe, zRequestFName, zReplyFName, zIp,
525 g.zRepositoryName, p->zOptions
526 );
527 fossil_free(zIp);
528 in = fossil_fopen(zReplyFName, "w+b");
529

Keyboard Shortcuts

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