Check-in [6eb092f7d5]
Not logged in

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

Overview
Comment:allow fossil cat without a file tree
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:6eb092f7d5f5da2f11355964cdba4754a86fa797
User & Date: paulfitz 2013-07-23 22:21:48
Context
2013-07-23
22:21
allow fossil cat without a file tree Leaf check-in: 6eb092f7d5 user: paulfitz tags: trunk
18:57
Restore backward compatible labels for per-file status/changes output lines. check-in: 3ca6979514 user: mistachkin tags: trunk
Changes

Changes to src/finfo.c.

226
227
228
229
230
231
232

233




234
235
236
237
238
239
240
  int i;
  int rc;
  Blob content, fname;
  const char *zRev;
  db_find_and_open_repository(0, 0);
  zRev = find_option("r","r",1);
  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);







>
|
>
>
>
>







226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
  int i;
  int rc;
  Blob content, fname;
  const char *zRev;
  db_find_and_open_repository(0, 0);
  zRev = find_option("r","r",1);
  for(i=2; i<g.argc; i++){
    if (g.localOpen) {
      file_tree_name(g.argv[i], &fname, 1);
    } else {
      blob_set(&fname,g.argv[i]);
      if (!zRev) zRev = "tip";
    }
    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);