Overview
SHA1 Hash: | 87a1a31d1d1d9c71db2e291c05c6a6b0557dba70 |
---|---|
Date: | 2008-05-14 20:02:10 |
User: | stephan |
Comment: | removed 2 remaining debug lines. Cleaned up help text. |
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/wiki.c from [11b4451999] to [b3b42c9e13].
@@ -606,16 +606,28 @@ } /* ** COMMAND: wiki ** -** Usage: %fossil wiki (export|import) EntryName +** Usage: %fossil wiki (export|import|list) WikiName +** +** Run various subcommands to fetch wiki entries. +** +** %fossil wiki export WikiName +** +** Sends the latest version of the WikiName wiki +** entry to stdout. +** +** %fossil wiki list +** +** Lists all wiki entries, one per line. ** ** -** TODOS: +** TODOs: ** -** export WikiName ?UUID? ?-f outfile? +** %fossil export WikiName ?UUID? ?-f outfile? +** %fossil import WikiName ?-f infile? */ void wiki_cmd(void){ int n; db_find_and_open_repository(1); if( g.argc<3 ){ @@ -641,11 +653,10 @@ sql = mprintf("select x.rid from tag t, tagxref x " "where x.tagid=t.tagid and t.tagname='wiki-%q' " " order by x.mtime desc limit 1", wname ); - printf("SQL=%s\n",sql); db_prepare(&q, "%z", sql ); while( db_step(&q) == SQLITE_ROW ){ rid = db_column_int(&q,0); break; } @@ -652,11 +663,10 @@ db_finalize(&q); if( -1 == rid ){ fprintf(stderr,"export error: wiki entry [%s] not found.\n",wname); exit(1); } - fprintf(stderr,"export rid==%d\n", rid ); if( ! content_get(rid,&buf) ){ fprintf(stderr,"export error: content_get(%d) returned 0\n", rid ); exit(1); }else {