Fossil

Check-in [f5bcc25a]
Login

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

Overview
Comment:Correctly show the edited and original comments on the /info page for check-ins. Fixes a bug spotted by Stephan Beal.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f5bcc25ac08b1512194508f1cd4042f1f5388ff163704edae120865149911730
User & Date: drh 2018-01-21 22:59:36.220
Context
2018-01-21
23:11
Fix annotate_file() so that it correctly errors out if the named file does not exist in the repository. ... (check-in: a7d9598a user: drh tags: trunk)
22:59
Correctly show the edited and original comments on the /info page for check-ins. Fixes a bug spotted by Stephan Beal. ... (check-in: f5bcc25a user: drh tags: trunk)
2018-01-19
19:15
Remove call of "getuid()" added on previous commit because it is not available on windows. For the pledge() call, always allow "chown" for now, even if not running as root. ... (check-in: 6b41a7e8 user: mgagnon tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/info.c.
693
694
695
696
697
698
699
700

701
702
703
704
705
706
707
    zUser = zEUser ? zEUser : zOrigUser;
    zComment = db_column_text(&q1, 3);
    zDate = db_column_text(&q1,1);
    zOrigDate = db_column_text(&q1, 4);
    if( zOrigDate==0 ) zOrigDate = zDate;
    @ <div class="section">Overview</div>
    @ <table class="label-value">
    @ <tr><th>Comment:</th><td class="infoComment">%!W(zComment)</td></tr>


    /* The Download: line */
    if( g.perm.Zip  ){
      char *zPJ = db_get("short-project-name", 0);
      char *zUrl;
      Blob projName;
      int jj;







|
>







693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
    zUser = zEUser ? zEUser : zOrigUser;
    zComment = db_column_text(&q1, 3);
    zDate = db_column_text(&q1,1);
    zOrigDate = db_column_text(&q1, 4);
    if( zOrigDate==0 ) zOrigDate = zDate;
    @ <div class="section">Overview</div>
    @ <table class="label-value">
    @ <tr><th>Comment:</th><td class="infoComment">\
    @ %!W(zEComment?zEComment:zComment)</td></tr>

    /* The Download: line */
    if( g.perm.Zip  ){
      char *zPJ = db_get("short-project-name", 0);
      char *zUrl;
      Blob projName;
      int jj;