Fossil

Check-in [292e585661]
Login

Check-in [292e585661]

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

Overview
Comment:If the special "ckout" of the "/doc" webpage is used and the server is not within a local check-out, then automatically convert "ckout" to "tip".
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 292e585661b01026cf550a6000311947c64d4e75
User & Date: drh 2009-08-15 12:18:08.000
Context
2009-08-15
13:21
Fix a memory allocation bug in the ZIP archive generator. Ticket [8d6efe4f927] ... (check-in: 5b91887495 user: drh tags: trunk)
12:18
If the special "ckout" of the "/doc" webpage is used and the server is not within a local check-out, then automatically convert "ckout" to "tip". ... (check-in: 292e585661 user: drh tags: trunk)
08:17
Update documentation of 'proxy' configuration ... (check-in: f0e98310c1 user: altufaltu tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/doc.c.
346
347
348
349
350
351
352



353
354
355
356
357
358
359
  }
  memcpy(zBaseline, zName, i);
  zBaseline[i] = 0;
  zName += i;
  while( zName[0]=='/' ){ zName++; }
  if( !file_is_simple_pathname(zName) ){
    goto doc_not_found;



  }
  if( strcmp(zBaseline,"ckout")==0 ){
    /* Read from the local checkout */
    char *zFullpath;
    db_must_be_within_tree();
    zFullpath = mprintf("%s/%s", g.zLocalRoot, zName);
    if( !file_isfile(zFullpath) ){







>
>
>







346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
  }
  memcpy(zBaseline, zName, i);
  zBaseline[i] = 0;
  zName += i;
  while( zName[0]=='/' ){ zName++; }
  if( !file_is_simple_pathname(zName) ){
    goto doc_not_found;
  }
  if( strcmp(zBaseline,"ckout")==0 && db_open_local()==0 ){
    strcpy(zBaseline,"tip");
  }
  if( strcmp(zBaseline,"ckout")==0 ){
    /* Read from the local checkout */
    char *zFullpath;
    db_must_be_within_tree();
    zFullpath = mprintf("%s/%s", g.zLocalRoot, zName);
    if( !file_isfile(zFullpath) ){