Fossil SCM

Add online help and checks for unrecognized command-line arguments to the `test-is-repo' command.

florian 2024-12-24 06:38 trunk
Commit bd5f1d6eca833ff9817d6297f644aca3a9984579104a96b3b8ff1b0146377512
1 file changed +5
+5
--- src/db.c
+++ src/db.c
@@ -2662,13 +2662,18 @@
26622662
return res;
26632663
}
26642664
26652665
/*
26662666
** 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.
26672671
*/
26682672
void test_is_repo(void){
26692673
int i;
2674
+ verify_all_options();
26702675
for(i=2; i<g.argc; i++){
26712676
fossil_print("%s: %s\n",
26722677
db_looks_like_a_repository(g.argv[i]) ? "yes" : " no",
26732678
g.argv[i]
26742679
);
26752680
--- 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

Keyboard Shortcuts

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