Fossil

Check-in [bd5f1d6eca]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add online help and checks for unrecognized command-line arguments to the `test-is-repo' command.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bd5f1d6eca833ff9817d6297f644aca3a9984579104a96b3b8ff1b0146377512
User & Date: florian 2024-12-24 06:38:00.000
Context
2024-12-24
06:39
Rephrase a comment for clarification. check-in: d3e366e750 user: florian tags: trunk
06:38
Add online help and checks for unrecognized command-line arguments to the `test-is-repo' command. check-in: bd5f1d6eca user: florian tags: trunk
2024-12-23
20:08
When /timeline selects specific branches using r=, t=, rl=, tl= or similar, then try to show the selected branches at the left margin. To help accomplish this, the code that computes branch name matching by various algorithms (GLOB, LIKE, REGEXP, LIST) is factored out into a new source file "match.c". check-in: e89ea2c93c user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
2660
2661
2662
2663
2664
2665
2666




2667
2668
2669

2670
2671
2672
2673
2674
2675
2676
  sqlite3_finalize(pStmt);
  sqlite3_close(db);
  return res;
}

/*
** COMMAND: test-is-repo




*/
void test_is_repo(void){
  int i;

  for(i=2; i<g.argc; i++){
    fossil_print("%s: %s\n",
       db_looks_like_a_repository(g.argv[i]) ? "yes" : " no",
       g.argv[i]
    );
  }
}







>
>
>
>



>







2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
  sqlite3_finalize(pStmt);
  sqlite3_close(db);
  return res;
}

/*
** COMMAND: test-is-repo
** Usage: %fossil test-is-repo FILENAME...
**
** Test whether the specified files look like a SQLite database
** containing a Fossil repository schema.
*/
void test_is_repo(void){
  int i;
  verify_all_options();
  for(i=2; i<g.argc; i++){
    fossil_print("%s: %s\n",
       db_looks_like_a_repository(g.argv[i]) ? "yes" : " no",
       g.argv[i]
    );
  }
}