Fossil

Check-in [18a66ab3]
Login

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

Overview
Comment:accommodated brackets/parens conventions change introduced in #6ae51190cc
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 18a66ab32baa75cd6724a6ee1e89834309c1a287
User & Date: stephan 2009-12-11 16:27:22
Context
2009-12-11
16:29
Minor clean up to the "ci" command. check-in: 70656d00 user: drh tags: trunk
16:27
accommodated brackets/parens conventions change introduced in #6ae51190cc check-in: 18a66ab3 user: stephan tags: trunk
16:14
corrected some mis-placed code from commit #9517cc7486 check-in: 93efce82 user: stephan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkin.c.

557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
    char *zInit = db_text(0, "SELECT value FROM vvar WHERE name='ci-comment'");
    prepare_commit_comment(&comment, zInit);
    free(zInit);
  }
  if( blob_size(&comment)==0 ){
    Blob ans;
    blob_zero(&ans);
    prompt_user("empty check-in comment.  continue [y/N]? ", &ans);
    if( blob_str(&ans)[0]!='y' ){
      db_end_transaction(1);
      exit(1);
    }
  }
  db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment);
  db_end_transaction(0);







|







557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
    char *zInit = db_text(0, "SELECT value FROM vvar WHERE name='ci-comment'");
    prepare_commit_comment(&comment, zInit);
    free(zInit);
  }
  if( blob_size(&comment)==0 ){
    Blob ans;
    blob_zero(&ans);
    prompt_user("empty check-in comment.  continue (y/N)? ", &ans);
    if( blob_str(&ans)[0]!='y' ){
      db_end_transaction(1);
      exit(1);
    }
  }
  db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment);
  db_end_transaction(0);