Fossil SCM
Add the --nosync option to commands "commit", "merge", and "branch create". See [forum:/forumpost/592513119fdae69c|forum thread 592513119fdae69c].
Commit
e8a21ab43c775a670957bb21c02b826368bedfc8d218fcf95955eebb4f0c5dcf
Parent
b919738dc537211…
3 files changed
+2
+2
+2
+2
| --- src/branch.c | ||
| +++ src/branch.c | ||
| @@ -83,10 +83,11 @@ | ||
| 83 | 83 | const char *zDateOvrd; /* Override date string */ |
| 84 | 84 | const char *zUserOvrd; /* Override user name */ |
| 85 | 85 | int isPrivate = 0; /* True if the branch should be private */ |
| 86 | 86 | |
| 87 | 87 | noSign = find_option("nosign","",0)!=0; |
| 88 | + if( find_option("nosync",0,0) ) g.fNoSync = 1; | |
| 88 | 89 | zColor = find_option("bgcolor","c",1); |
| 89 | 90 | isPrivate = find_option("private",0,0)!=0; |
| 90 | 91 | zDateOvrd = find_option("date-override",0,1); |
| 91 | 92 | zUserOvrd = find_option("user-override",0,1); |
| 92 | 93 | verify_all_options(); |
| @@ -660,10 +661,11 @@ | ||
| 660 | 661 | ** |
| 661 | 662 | ** Options: |
| 662 | 663 | ** --private Branch is private (i.e., remains local) |
| 663 | 664 | ** --bgcolor COLOR Use COLOR instead of automatic background |
| 664 | 665 | ** --nosign Do not sign contents on this branch |
| 666 | +** --nosync Do not auto-sync prior to creating the branch | |
| 665 | 667 | ** --date-override DATE DATE to use instead of 'now' |
| 666 | 668 | ** --user-override USER USER to use instead of the current default |
| 667 | 669 | ** |
| 668 | 670 | ** DATE may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in |
| 669 | 671 | ** year-month-day form, it may be truncated, the "T" may be |
| 670 | 672 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -83,10 +83,11 @@ | |
| 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 | zColor = find_option("bgcolor","c",1); |
| 89 | isPrivate = find_option("private",0,0)!=0; |
| 90 | zDateOvrd = find_option("date-override",0,1); |
| 91 | zUserOvrd = find_option("user-override",0,1); |
| 92 | verify_all_options(); |
| @@ -660,10 +661,11 @@ | |
| 660 | ** |
| 661 | ** Options: |
| 662 | ** --private Branch is private (i.e., remains local) |
| 663 | ** --bgcolor COLOR Use COLOR instead of automatic background |
| 664 | ** --nosign Do not sign contents on this branch |
| 665 | ** --date-override DATE DATE to use instead of 'now' |
| 666 | ** --user-override USER USER to use instead of the current default |
| 667 | ** |
| 668 | ** DATE may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in |
| 669 | ** year-month-day form, it may be truncated, the "T" may be |
| 670 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -83,10 +83,11 @@ | |
| 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,10 +661,11 @@ | |
| 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 |
+2
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -2332,10 +2332,11 @@ | ||
| 2332 | 2332 | ** input and assumes an answer of 'No' for every |
| 2333 | 2333 | ** question. |
| 2334 | 2334 | ** --no-warnings Omit all warnings about file contents |
| 2335 | 2335 | ** --no-verify Do not run before-commit hooks |
| 2336 | 2336 | ** --nosign Do not attempt to sign this commit with gpg |
| 2337 | +** --nosync Do not auto-sync prior to committing | |
| 2337 | 2338 | ** --override-lock Allow a check-in even though parent is locked |
| 2338 | 2339 | ** --private Do not sync changes and their descendants |
| 2339 | 2340 | ** --tag TAG-NAME Assign given tag TAG-NAME to the check-in |
| 2340 | 2341 | ** --trace Debug tracing |
| 2341 | 2342 | ** --user-override USER USER to use instead of the current default |
| @@ -2400,10 +2401,11 @@ | ||
| 2400 | 2401 | memset(&sCiInfo, 0, sizeof(sCiInfo)); |
| 2401 | 2402 | url_proxy_options(); |
| 2402 | 2403 | /* --sha1sum is an undocumented alias for --hash for backwards compatiblity */ |
| 2403 | 2404 | useHash = find_option("hash",0,0)!=0 || find_option("sha1sum",0,0)!=0; |
| 2404 | 2405 | noSign = find_option("nosign",0,0)!=0; |
| 2406 | + if( find_option("nosync",0,0) ) g.fNoSync = 1; | |
| 2405 | 2407 | privateFlag = find_option("private",0,0)!=0; |
| 2406 | 2408 | forceDelta = find_option("delta",0,0)!=0; |
| 2407 | 2409 | forceBaseline = find_option("baseline",0,0)!=0; |
| 2408 | 2410 | db_must_be_within_tree(); |
| 2409 | 2411 | if( db_get_boolean("dont-commit",0) ){ |
| 2410 | 2412 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2332,10 +2332,11 @@ | |
| 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 | ** --override-lock Allow a check-in even though parent is locked |
| 2338 | ** --private Do not sync changes and their descendants |
| 2339 | ** --tag TAG-NAME Assign given tag TAG-NAME to the check-in |
| 2340 | ** --trace Debug tracing |
| 2341 | ** --user-override USER USER to use instead of the current default |
| @@ -2400,10 +2401,11 @@ | |
| 2400 | memset(&sCiInfo, 0, sizeof(sCiInfo)); |
| 2401 | url_proxy_options(); |
| 2402 | /* --sha1sum is an undocumented alias for --hash for backwards compatiblity */ |
| 2403 | useHash = find_option("hash",0,0)!=0 || find_option("sha1sum",0,0)!=0; |
| 2404 | noSign = find_option("nosign",0,0)!=0; |
| 2405 | privateFlag = find_option("private",0,0)!=0; |
| 2406 | forceDelta = find_option("delta",0,0)!=0; |
| 2407 | forceBaseline = find_option("baseline",0,0)!=0; |
| 2408 | db_must_be_within_tree(); |
| 2409 | if( db_get_boolean("dont-commit",0) ){ |
| 2410 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2332,10 +2332,11 @@ | |
| 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,10 +2401,11 @@ | |
| 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 |
+2
| --- src/merge.c | ||
| +++ src/merge.c | ||
| @@ -321,10 +321,11 @@ | ||
| 321 | 321 | ** --integrate Merged branch will be closed when committing |
| 322 | 322 | ** -K|--keep-merge-files On merge conflict, retain the temporary files |
| 323 | 323 | ** used for merging, named *-baseline, *-original, |
| 324 | 324 | ** and *-merge. |
| 325 | 325 | ** -n|--dry-run If given, display instead of run actions |
| 326 | +** --nosync Do not auto-sync prior to merging | |
| 326 | 327 | ** -v|--verbose Show additional details of the merge |
| 327 | 328 | */ |
| 328 | 329 | void merge_cmd(void){ |
| 329 | 330 | int vid; /* Current version "V" */ |
| 330 | 331 | int mid; /* Version we are merging from "M" */ |
| @@ -374,10 +375,11 @@ | ||
| 374 | 375 | zBinGlob = find_option("binary",0,1); |
| 375 | 376 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 376 | 377 | if( !dryRunFlag ){ |
| 377 | 378 | dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */ |
| 378 | 379 | } |
| 380 | + if( find_option("nosync",0,0) ) g.fNoSync = 1; | |
| 379 | 381 | forceFlag = find_option("force","f",0)!=0; |
| 380 | 382 | zPivot = find_option("baseline",0,1); |
| 381 | 383 | keepMergeFlag = find_option("keep-merge-files", "K",0)!=0; |
| 382 | 384 | |
| 383 | 385 | /* Undocumented --debug and --show-vfile options: |
| 384 | 386 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -321,10 +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 | ** -v|--verbose Show additional details of the merge |
| 327 | */ |
| 328 | void merge_cmd(void){ |
| 329 | int vid; /* Current version "V" */ |
| 330 | int mid; /* Version we are merging from "M" */ |
| @@ -374,10 +375,11 @@ | |
| 374 | zBinGlob = find_option("binary",0,1); |
| 375 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 376 | if( !dryRunFlag ){ |
| 377 | dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */ |
| 378 | } |
| 379 | forceFlag = find_option("force","f",0)!=0; |
| 380 | zPivot = find_option("baseline",0,1); |
| 381 | keepMergeFlag = find_option("keep-merge-files", "K",0)!=0; |
| 382 | |
| 383 | /* Undocumented --debug and --show-vfile options: |
| 384 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -321,10 +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" */ |
| @@ -374,10 +375,11 @@ | |
| 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 |