Fossil SCM
Add/use the --quiet option on 'timeline' to suppress printing end-of-timeline notifications.
Commit
3e3d5ed011dd6278f664c6869a66e1a98027b93a0bcaf1ea3a69a25dac4009cb
Parent
f661b8de491e40d…
1 file changed
+13
-4
+13
-4
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -3452,14 +3452,18 @@ | ||
| 3452 | 3452 | int n = 0; |
| 3453 | 3453 | char zPrefix[80]; |
| 3454 | 3454 | |
| 3455 | 3455 | if( nAbsLimit!=0 ){ |
| 3456 | 3456 | if( nLimit<0 && nLine>=nAbsLimit ){ |
| 3457 | - fossil_print("--- line limit (%d) reached ---\n", nAbsLimit); | |
| 3457 | + if( !g.fQuiet ){ | |
| 3458 | + fossil_print("--- line limit (%d) reached ---\n", nAbsLimit); | |
| 3459 | + } | |
| 3458 | 3460 | break; /* line count limit hit, stop. */ |
| 3459 | 3461 | }else if( nEntry>=nAbsLimit ){ |
| 3460 | - fossil_print("--- entry limit (%d) reached ---\n", nAbsLimit); | |
| 3462 | + if( !g.fQuiet ){ | |
| 3463 | + fossil_print("--- entry limit (%d) reached ---\n", nAbsLimit); | |
| 3464 | + } | |
| 3461 | 3465 | break; /* entry count limit hit, stop. */ |
| 3462 | 3466 | } |
| 3463 | 3467 | } |
| 3464 | 3468 | if( zFormat == 0 && fossil_strnicmp(zDate, zPrevDate, 10) ){ |
| 3465 | 3469 | fossil_print("=== %.10s ===\n", zDate); |
| @@ -3570,13 +3574,17 @@ | ||
| 3570 | 3574 | nEntry++; /* record another complete entry */ |
| 3571 | 3575 | } |
| 3572 | 3576 | if( rc==SQLITE_DONE ){ |
| 3573 | 3577 | /* Did the underlying query actually have all entries? */ |
| 3574 | 3578 | if( nAbsLimit==0 ){ |
| 3575 | - fossil_print("+++ end of timeline (%d) +++\n", nEntry); | |
| 3579 | + if( !g.fQuiet ){ | |
| 3580 | + fossil_print("+++ end of timeline (%d) +++\n", nEntry); | |
| 3581 | + } | |
| 3576 | 3582 | }else{ |
| 3577 | - fossil_print("+++ no more data (%d) +++\n", nEntry); | |
| 3583 | + if( !g.fQuiet ){ | |
| 3584 | + fossil_print("+++ no more data (%d) +++\n", nEntry); | |
| 3585 | + } | |
| 3578 | 3586 | } |
| 3579 | 3587 | } |
| 3580 | 3588 | if( fchngQueryInit ) db_finalize(&fchngQuery); |
| 3581 | 3589 | } |
| 3582 | 3590 | |
| @@ -3730,10 +3738,11 @@ | ||
| 3730 | 3738 | ** N is negative, output the first -N lines. If N is |
| 3731 | 3739 | ** zero, no limit. Default is -20 meaning 20 lines. |
| 3732 | 3740 | ** --offset P Skip P changes |
| 3733 | 3741 | ** -p|--path PATH Output items affecting PATH only. |
| 3734 | 3742 | ** PATH can be a file or a subdirectory. |
| 3743 | +** -q|--quiet Do not print notifications at the end of the timeline. | |
| 3735 | 3744 | ** -r|--reverse Show items in chronological order. |
| 3736 | 3745 | ** -R REPO_FILE Specifies the repository db to use. Default is |
| 3737 | 3746 | ** the current check-out's repository. |
| 3738 | 3747 | ** --sql Show the SQL used to generate the timeline |
| 3739 | 3748 | ** -t|--type TYPE Output items from the given types only, such as: |
| 3740 | 3749 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -3452,14 +3452,18 @@ | |
| 3452 | int n = 0; |
| 3453 | char zPrefix[80]; |
| 3454 | |
| 3455 | if( nAbsLimit!=0 ){ |
| 3456 | if( nLimit<0 && nLine>=nAbsLimit ){ |
| 3457 | fossil_print("--- line limit (%d) reached ---\n", nAbsLimit); |
| 3458 | break; /* line count limit hit, stop. */ |
| 3459 | }else if( nEntry>=nAbsLimit ){ |
| 3460 | fossil_print("--- entry limit (%d) reached ---\n", nAbsLimit); |
| 3461 | break; /* entry count limit hit, stop. */ |
| 3462 | } |
| 3463 | } |
| 3464 | if( zFormat == 0 && fossil_strnicmp(zDate, zPrevDate, 10) ){ |
| 3465 | fossil_print("=== %.10s ===\n", zDate); |
| @@ -3570,13 +3574,17 @@ | |
| 3570 | nEntry++; /* record another complete entry */ |
| 3571 | } |
| 3572 | if( rc==SQLITE_DONE ){ |
| 3573 | /* Did the underlying query actually have all entries? */ |
| 3574 | if( nAbsLimit==0 ){ |
| 3575 | fossil_print("+++ end of timeline (%d) +++\n", nEntry); |
| 3576 | }else{ |
| 3577 | fossil_print("+++ no more data (%d) +++\n", nEntry); |
| 3578 | } |
| 3579 | } |
| 3580 | if( fchngQueryInit ) db_finalize(&fchngQuery); |
| 3581 | } |
| 3582 | |
| @@ -3730,10 +3738,11 @@ | |
| 3730 | ** N is negative, output the first -N lines. If N is |
| 3731 | ** zero, no limit. Default is -20 meaning 20 lines. |
| 3732 | ** --offset P Skip P changes |
| 3733 | ** -p|--path PATH Output items affecting PATH only. |
| 3734 | ** PATH can be a file or a subdirectory. |
| 3735 | ** -r|--reverse Show items in chronological order. |
| 3736 | ** -R REPO_FILE Specifies the repository db to use. Default is |
| 3737 | ** the current check-out's repository. |
| 3738 | ** --sql Show the SQL used to generate the timeline |
| 3739 | ** -t|--type TYPE Output items from the given types only, such as: |
| 3740 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -3452,14 +3452,18 @@ | |
| 3452 | int n = 0; |
| 3453 | char zPrefix[80]; |
| 3454 | |
| 3455 | if( nAbsLimit!=0 ){ |
| 3456 | if( nLimit<0 && nLine>=nAbsLimit ){ |
| 3457 | if( !g.fQuiet ){ |
| 3458 | fossil_print("--- line limit (%d) reached ---\n", nAbsLimit); |
| 3459 | } |
| 3460 | break; /* line count limit hit, stop. */ |
| 3461 | }else if( nEntry>=nAbsLimit ){ |
| 3462 | if( !g.fQuiet ){ |
| 3463 | fossil_print("--- entry limit (%d) reached ---\n", nAbsLimit); |
| 3464 | } |
| 3465 | break; /* entry count limit hit, stop. */ |
| 3466 | } |
| 3467 | } |
| 3468 | if( zFormat == 0 && fossil_strnicmp(zDate, zPrevDate, 10) ){ |
| 3469 | fossil_print("=== %.10s ===\n", zDate); |
| @@ -3570,13 +3574,17 @@ | |
| 3574 | nEntry++; /* record another complete entry */ |
| 3575 | } |
| 3576 | if( rc==SQLITE_DONE ){ |
| 3577 | /* Did the underlying query actually have all entries? */ |
| 3578 | if( nAbsLimit==0 ){ |
| 3579 | if( !g.fQuiet ){ |
| 3580 | fossil_print("+++ end of timeline (%d) +++\n", nEntry); |
| 3581 | } |
| 3582 | }else{ |
| 3583 | if( !g.fQuiet ){ |
| 3584 | fossil_print("+++ no more data (%d) +++\n", nEntry); |
| 3585 | } |
| 3586 | } |
| 3587 | } |
| 3588 | if( fchngQueryInit ) db_finalize(&fchngQuery); |
| 3589 | } |
| 3590 | |
| @@ -3730,10 +3738,11 @@ | |
| 3738 | ** N is negative, output the first -N lines. If N is |
| 3739 | ** zero, no limit. Default is -20 meaning 20 lines. |
| 3740 | ** --offset P Skip P changes |
| 3741 | ** -p|--path PATH Output items affecting PATH only. |
| 3742 | ** PATH can be a file or a subdirectory. |
| 3743 | ** -q|--quiet Do not print notifications at the end of the timeline. |
| 3744 | ** -r|--reverse Show items in chronological order. |
| 3745 | ** -R REPO_FILE Specifies the repository db to use. Default is |
| 3746 | ** the current check-out's repository. |
| 3747 | ** --sql Show the SQL used to generate the timeline |
| 3748 | ** -t|--type TYPE Output items from the given types only, such as: |
| 3749 |