Fossil

Check-in [e3efeb6f]
Login

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

Overview
Comment:Change the warning prompt for CR/NL in check-in from (y/n/a) to (yes/no/all). Ticket [7eab65a85880a10cc]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e3efeb6f29c45c0ac26fa094fdde764494e5ca21
User & Date: drh 2011-04-27 14:36:45
References
2011-04-27
19:01 Ticket [4108dfd6] Sqlite error on latest Fossil build status still Open with 2 other changes artifact: 9b6848ad user: anonymous
Context
2011-04-27
16:07
Update to the latest SQLite snapshot that exposes the UTF8 to MBCS conversion routine in the windows driver to applications. check-in: 989fc1f2 user: drh tags: trunk
14:36
Change the warning prompt for CR/NL in check-in from (y/n/a) to (yes/no/all). Ticket [7eab65a85880a10cc] check-in: e3efeb6f user: drh tags: trunk
14:23
Commands that recursively descend through directory hierarchies (such as "fossil extra", "fossil clean", or "fossil addremove") will now ignore nested checkouts. Ticket [b49849a350d040bc]. check-in: 53aef2de user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkin.c.

707
708
709
710
711
712
713

714
715
716
717
718
719
720
721
722
      if( lastNl>1000 ) return;   /* Binary if any line longer than 1000 */
    }
  }
  if( nCrNl ){
    char c;
    file_relative_name(zFilename, &fname);
    blob_zero(&ans);

    zMsg = mprintf("%s contains CR/NL line endings; commit anyhow (y/N/a)?", 
                   blob_str(&fname));
    prompt_user(zMsg, &ans);
    fossil_free(zMsg);
    c = blob_str(&ans)[0];
    if( c=='a' ){
      allOk = 1;
    }else if( c!='y' ){
      fossil_fatal("Abandoning commit due to CR+NL line endings in %s",







>
|
|







707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
      if( lastNl>1000 ) return;   /* Binary if any line longer than 1000 */
    }
  }
  if( nCrNl ){
    char c;
    file_relative_name(zFilename, &fname);
    blob_zero(&ans);
    zMsg = mprintf(
         "%s contains CR/NL line endings; commit anyhow (yes/no/all)?", 
         blob_str(&fname));
    prompt_user(zMsg, &ans);
    fossil_free(zMsg);
    c = blob_str(&ans)[0];
    if( c=='a' ){
      allOk = 1;
    }else if( c!='y' ){
      fossil_fatal("Abandoning commit due to CR+NL line endings in %s",