Fossil

Check-in [a7d9598a]
Login

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

Overview
Comment:Fix annotate_file() so that it correctly errors out if the named file does not exist in the repository.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:a7d9598a0d0fda75517a87de0205363317c533f4e8c4bcbf27205e449197769b
User & Date: drh 2018-01-21 23:11:22
Context
2018-01-21
23:45
Fix the /annotate webpage so that it works even if "fossil ui" is not launched from the root of the check-out. check-in: 48798bb1 user: drh tags: trunk
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/diff.c.

2255
2256
2257
2258
2259
2260
2261



2262
2263
2264
2265
2266
2267
2268
    compute_direct_ancestors(cid);
  }

  /* Get filename ID */
  file_tree_name(zFilename, &treename, 0, 1);
  zFilename = blob_str(&treename);
  fnid = db_int(0, "SELECT fnid FROM filename WHERE name=%Q", zFilename);




  db_prepare(&q,
    "SELECT DISTINCT"
    "   (SELECT uuid FROM blob WHERE rid=mlink.fid),"
    "   (SELECT uuid FROM blob WHERE rid=mlink.mid),"
    "   date(event.mtime),"
    "   coalesce(event.euser,event.user),"







>
>
>







2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
    compute_direct_ancestors(cid);
  }

  /* Get filename ID */
  file_tree_name(zFilename, &treename, 0, 1);
  zFilename = blob_str(&treename);
  fnid = db_int(0, "SELECT fnid FROM filename WHERE name=%Q", zFilename);
  if( fnid==0 ){
    fossil_fatal("no such file: %Q", zFilename);
  }

  db_prepare(&q,
    "SELECT DISTINCT"
    "   (SELECT uuid FROM blob WHERE rid=mlink.fid),"
    "   (SELECT uuid FROM blob WHERE rid=mlink.mid),"
    "   date(event.mtime),"
    "   coalesce(event.euser,event.user),"