Fossil

Check-in [93efce82]
Login

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

Overview
Comment:corrected some mis-placed code from commit #9517cc7486
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 93efce820b7a0d624dcadd579c592f215df2c4ab
User & Date: stephan 2009-12-11 16:14:55
Context
2009-12-11
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
15:49
added -M/--message-file FILENAME argument for commit. check-in: 9517cc74 user: stephan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkin.c.

561
562
563
564
565
566
567
568


569
570
571
572
573
574
575
576
577
578
579
580
581
  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);
    }else{


      db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment);
      db_end_transaction(0);
      db_begin_transaction();
    }
  }

  /* Step 1: Insert records for all modified files into the blob 
  ** table. If there were arguments passed to this command, only
  ** the identified fils are inserted (if they have been modified).
  */
  db_prepare(&q,
    "SELECT id, %Q || pathname, mrid FROM vfile "
    "WHERE chnged==1 AND NOT deleted AND file_is_selected(id)"







<
>
>
|
|
|
<
<
<







561
562
563
564
565
566
567

568
569
570
571
572



573
574
575
576
577
578
579
  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);
  db_begin_transaction();



  /* Step 1: Insert records for all modified files into the blob 
  ** table. If there were arguments passed to this command, only
  ** the identified fils are inserted (if they have been modified).
  */
  db_prepare(&q,
    "SELECT id, %Q || pathname, mrid FROM vfile "
    "WHERE chnged==1 AND NOT deleted AND file_is_selected(id)"