Overview
SHA1 Hash: | 292e585661b01026cf550a6000311947c64d4e75 |
---|---|
Date: | 2009-08-15 12:18:08 |
User: | drh |
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". |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/doc.c from [682899f6dc] to [a9193f6c29].
@@ -348,10 +348,13 @@ 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();