Fossil

Check-in [3579d1cb87]
Login

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

Overview
Comment:Fixed a missing db_finalize() in the -clear case.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | usage-command
Files: files | file ages | folders
SHA1: 3579d1cb87503ac4efaa72c86387a1a5b0a1d00c
User & Date: stephan 2013-09-03 20:04:25.390
Context
2013-09-03
20:15
Fixed the is-this-server-mode check to avoid updating cmd_usage stats in server/ui mode even if there is a local checkout. ... (check-in: e11bec70ef user: stephan tags: usage-command)
20:04
Fixed a missing db_finalize() in the -clear case. ... (check-in: 3579d1cb87 user: stephan tags: usage-command)
20:01
Added experimental "usage" command to track command usage stats on a per-checkout basis (not synched). ... (check-in: bd71466446 user: stephan tags: usage-command)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
545
546
547
548
549
550
551

552
553
554
555
556
557
558
                 "No command usage history has been collected "
                 "for this checkout.\n");
    return;
  }
  if(fClear){
    db_multi_exec("DELETE FROM cmd_usage;");
    fossil_print("Usage history cleared.\n");

    return;
  }
  fossil_print("CLI command usage history for this checkout:\n");
  fossil_print("Count  Command\n");
  while(SQLITE_ROW==db_step(&q)){
    ++i;
    fossil_print("%5d  %s\n", db_column_int(&q, 1),







>







545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
                 "No command usage history has been collected "
                 "for this checkout.\n");
    return;
  }
  if(fClear){
    db_multi_exec("DELETE FROM cmd_usage;");
    fossil_print("Usage history cleared.\n");
    db_finalize(&q);
    return;
  }
  fossil_print("CLI command usage history for this checkout:\n");
  fossil_print("Count  Command\n");
  while(SQLITE_ROW==db_step(&q)){
    ++i;
    fossil_print("%5d  %s\n", db_column_int(&q, 1),