Fossil SCM
Add online help and checks for unrecognized command-line arguments to the `test-is-repo' command.
Commit
bd5f1d6eca833ff9817d6297f644aca3a9984579104a96b3b8ff1b0146377512
Parent
e89ea2c93c38fe1…
1 file changed
+5
M
src/db.c
+5
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2662,13 +2662,18 @@ | ||
| 2662 | 2662 | return res; |
| 2663 | 2663 | } |
| 2664 | 2664 | |
| 2665 | 2665 | /* |
| 2666 | 2666 | ** COMMAND: test-is-repo |
| 2667 | +** Usage: %fossil test-is-repo FILENAME... | |
| 2668 | +** | |
| 2669 | +** Test whether the specified files look like a SQLite database | |
| 2670 | +** containing a Fossil repository schema. | |
| 2667 | 2671 | */ |
| 2668 | 2672 | void test_is_repo(void){ |
| 2669 | 2673 | int i; |
| 2674 | + verify_all_options(); | |
| 2670 | 2675 | for(i=2; i<g.argc; i++){ |
| 2671 | 2676 | fossil_print("%s: %s\n", |
| 2672 | 2677 | db_looks_like_a_repository(g.argv[i]) ? "yes" : " no", |
| 2673 | 2678 | g.argv[i] |
| 2674 | 2679 | ); |
| 2675 | 2680 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2662,13 +2662,18 @@ | |
| 2662 | return res; |
| 2663 | } |
| 2664 | |
| 2665 | /* |
| 2666 | ** COMMAND: test-is-repo |
| 2667 | */ |
| 2668 | void test_is_repo(void){ |
| 2669 | int i; |
| 2670 | for(i=2; i<g.argc; i++){ |
| 2671 | fossil_print("%s: %s\n", |
| 2672 | db_looks_like_a_repository(g.argv[i]) ? "yes" : " no", |
| 2673 | g.argv[i] |
| 2674 | ); |
| 2675 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2662,13 +2662,18 @@ | |
| 2662 | return res; |
| 2663 | } |
| 2664 | |
| 2665 | /* |
| 2666 | ** COMMAND: test-is-repo |
| 2667 | ** Usage: %fossil test-is-repo FILENAME... |
| 2668 | ** |
| 2669 | ** Test whether the specified files look like a SQLite database |
| 2670 | ** containing a Fossil repository schema. |
| 2671 | */ |
| 2672 | void test_is_repo(void){ |
| 2673 | int i; |
| 2674 | verify_all_options(); |
| 2675 | for(i=2; i<g.argc; i++){ |
| 2676 | fossil_print("%s: %s\n", |
| 2677 | db_looks_like_a_repository(g.argv[i]) ? "yes" : " no", |
| 2678 | g.argv[i] |
| 2679 | ); |
| 2680 |