Fossil

Check-in [715f8881]
Login

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

Overview
Comment:Correct cat command error message on nonexistent file.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 715f88811a2618ac65ad8f90a2ed166c89d2b9ba
User & Date: andygoth 2015-05-02 21:11:26
Context
2015-05-04
19:25
Update the built-in SQLite to the first 3.8.10 beta. check-in: 5a87a031 user: drh tags: trunk
2015-05-02
21:11
Correct cat command error message on nonexistent file. check-in: 715f8881 user: andygoth tags: trunk
20:57
Cherrypick [1b01c1ad]: Correct comment describing behavior of errCode. check-in: 6f2b5927 user: andygoth tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/finfo.c.

259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274

  /* We should be done with options.. */
  verify_all_options();

  for(i=2; i<g.argc; i++){
    file_tree_name(g.argv[i], &fname, 1);
    blob_zero(&content);
    rc = historical_version_of_file(zRev, blob_str(&fname), &content, 0,0,0,0);
    if( rc==0 ){
      fossil_fatal("no such file: %s", g.argv[i]);
    }
    blob_write_to_file(&content, "-");
    blob_reset(&fname);
    blob_reset(&content);
  }
}







|
|







259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274

  /* We should be done with options.. */
  verify_all_options();

  for(i=2; i<g.argc; i++){
    file_tree_name(g.argv[i], &fname, 1);
    blob_zero(&content);
    rc = historical_version_of_file(zRev, blob_str(&fname), &content, 0,0,0,2);
    if( rc==2 ){
      fossil_fatal("no such file: %s", g.argv[i]);
    }
    blob_write_to_file(&content, "-");
    blob_reset(&fname);
    blob_reset(&content);
  }
}