Fossil SCM

Correct the open-checkout handling for the 'test-commit-warning' command.

mistachkin 2016-09-26 17:31 trunk
Commit b4a1b2fab941f8b075a898e1562c0141583f1ff9
1 file changed +1 -1
+1 -1
--- src/checkin.c
+++ src/checkin.c
@@ -1636,11 +1636,11 @@
16361636
int verboseFlag;
16371637
Stmt q;
16381638
noSettings = find_option("no-settings",0,0)!=0;
16391639
verboseFlag = find_option("verbose","v",0)!=0;
16401640
verify_all_options();
1641
- db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
1641
+ db_must_be_within_tree();
16421642
db_prepare(&q,
16431643
"SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile"
16441644
" WHERE NOT deleted",
16451645
g.zLocalRoot,
16461646
glob_expr("pathname", noSettings ? 0 : db_get("crnl-glob","")),
16471647
--- src/checkin.c
+++ src/checkin.c
@@ -1636,11 +1636,11 @@
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 glob_expr("pathname", noSettings ? 0 : db_get("crnl-glob","")),
1647
--- src/checkin.c
+++ src/checkin.c
@@ -1636,11 +1636,11 @@
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_must_be_within_tree();
1642 db_prepare(&q,
1643 "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile"
1644 " WHERE NOT deleted",
1645 g.zLocalRoot,
1646 glob_expr("pathname", noSettings ? 0 : db_get("crnl-glob","")),
1647

Keyboard Shortcuts

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