Fossil SCM
Correct issues with option processing semantics of the 'test-commit-warning' command.
Commit
f00a55b974949b8121af7ae268e90cb1b324b3c8
Parent
3852b56a21923c3…
1 file changed
+5
-2
+5
-2
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -1630,13 +1630,16 @@ | ||
| 1630 | 1630 | ** |
| 1631 | 1631 | ** See also: commit, extras |
| 1632 | 1632 | */ |
| 1633 | 1633 | void test_commit_warning(void){ |
| 1634 | 1634 | int rc = 0; |
| 1635 | - int noSettings = find_option("no-settings", 0, 0)!=0; | |
| 1636 | - int verboseFlag = find_option("verbose", 0, 0)!=0; | |
| 1635 | + int noSettings; | |
| 1636 | + int verboseFlag; | |
| 1637 | 1637 | Stmt q; |
| 1638 | + noSettings = find_option("no-settings",0,0)!=0; | |
| 1639 | + verboseFlag = find_option("verbose","v",0)!=0; | |
| 1640 | + verify_all_options(); | |
| 1638 | 1641 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 1639 | 1642 | db_prepare(&q, |
| 1640 | 1643 | "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile" |
| 1641 | 1644 | " WHERE NOT deleted", |
| 1642 | 1645 | g.zLocalRoot, |
| 1643 | 1646 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -1630,13 +1630,16 @@ | |
| 1630 | ** |
| 1631 | ** See also: commit, extras |
| 1632 | */ |
| 1633 | void test_commit_warning(void){ |
| 1634 | int rc = 0; |
| 1635 | int noSettings = find_option("no-settings", 0, 0)!=0; |
| 1636 | int verboseFlag = find_option("verbose", 0, 0)!=0; |
| 1637 | Stmt q; |
| 1638 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 1639 | db_prepare(&q, |
| 1640 | "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile" |
| 1641 | " WHERE NOT deleted", |
| 1642 | g.zLocalRoot, |
| 1643 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -1630,13 +1630,16 @@ | |
| 1630 | ** |
| 1631 | ** See also: commit, extras |
| 1632 | */ |
| 1633 | void test_commit_warning(void){ |
| 1634 | int rc = 0; |
| 1635 | int noSettings; |
| 1636 | int verboseFlag; |
| 1637 | Stmt q; |
| 1638 | noSettings = find_option("no-settings",0,0)!=0; |
| 1639 | verboseFlag = find_option("verbose","v",0)!=0; |
| 1640 | verify_all_options(); |
| 1641 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 1642 | db_prepare(&q, |
| 1643 | "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile" |
| 1644 | " WHERE NOT deleted", |
| 1645 | g.zLocalRoot, |
| 1646 |