Fossil SCM

Correct issues with option processing semantics of the 'test-commit-warning' command.

mistachkin 2016-09-26 17:28 trunk
Commit f00a55b974949b8121af7ae268e90cb1b324b3c8
1 file changed +5 -2
+5 -2
--- src/checkin.c
+++ src/checkin.c
@@ -1630,13 +1630,16 @@
16301630
**
16311631
** See also: commit, extras
16321632
*/
16331633
void test_commit_warning(void){
16341634
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;
16371637
Stmt q;
1638
+ noSettings = find_option("no-settings",0,0)!=0;
1639
+ verboseFlag = find_option("verbose","v",0)!=0;
1640
+ verify_all_options();
16381641
db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
16391642
db_prepare(&q,
16401643
"SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile"
16411644
" WHERE NOT deleted",
16421645
g.zLocalRoot,
16431646
--- 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

Keyboard Shortcuts

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