Fossil

Check-in [439e7ce645]
Login

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

Overview
Comment:Show 'No such file' page title, when requested for an unknown file path.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 439e7ce6455c7e6d2dba580af96c38a585c5801b720856e86ff733e7bd6ece3b
User & Date: ashepilko 2020-05-09 17:26:30.766
Context
2020-05-09
18:08
Enquote the requested path glob in query to get history for a directory name with spaces. check-in: 972341dbca user: ashepilko tags: trunk
17:26
Show 'No such file' page title, when requested for an unknown file path. check-in: 439e7ce645 user: ashepilko tags: trunk
17:21
File History file links to use /file?name form, to handle paths with spaces. check-in: c00527e825 user: ashepilko tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/finfo.c.
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
  const char *zMark;          /* Mark this version of the file */
  int selRid = 0;             /* RID of the marked file version */

  login_check_credentials();
  if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
  fnid = db_int(0, "SELECT fnid FROM filename WHERE name=%Q", zFilename);
  if( fnid==0 ){
    style_header("History unavailable");
  }else{
    style_header("History for %s", zFilename);
  }
  login_anonymous_available();
  tmFlags = timeline_ss_submenu();
  if( tmFlags & TIMELINE_COLUMNAR ){
    zStyle = "Columnar";







|







321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
  const char *zMark;          /* Mark this version of the file */
  int selRid = 0;             /* RID of the marked file version */

  login_check_credentials();
  if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
  fnid = db_int(0, "SELECT fnid FROM filename WHERE name=%Q", zFilename);
  if( fnid==0 ){
    style_header("No such file");
  }else{
    style_header("History for %s", zFilename);
  }
  login_anonymous_available();
  tmFlags = timeline_ss_submenu();
  if( tmFlags & TIMELINE_COLUMNAR ){
    zStyle = "Columnar";