Fossil

Check-in [d13b3ff0]
Login

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

Overview
Comment:reorg'd/expanded the TODOs
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d13b3ff09457e70157d96ac40b6ebc8aa7f27e43
User & Date: stephan 2008-05-14 23:25:30
Context
2008-05-15
13:35
Fix compiler warnings in wiki.c. check-in: a51699a7 user: drh tags: trunk
2008-05-14
23:25
reorg'd/expanded the TODOs check-in: d13b3ff0 user: stephan tags: trunk
23:13
fixed to C++isms which Annotate accuses me of adding on 2008.2.2 ;) check-in: cedf518c user: stephan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/wiki.c.

599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622



623









624
625




626
627
628
629
630
631
632
  @ </ol>
  style_footer();
}

/*
** COMMAND: wiki
**
** Usage: %fossil wiki (export|commit|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, ordered
**         case-insentively by name.
**
** TODOs:
**
**     %fossil export ?UUID? ?-f outfile[=stdout]? WikiName



**     %fossil delete ?-m MESSAGE? WikiName (can we have a commit message for a wiki page?)









**     %fossil commit ?-f infile[=stdin]? WikiName
**     Commit should create a new entry if one doesn't exist.




*/
void wiki_cmd(void){
  int n;
  db_find_and_open_repository(1);
  if( g.argc<3 ){
    goto wiki_cmd_usage;
  }







|





|
|



|
|



|
>
>
>
|
>
>
>
>
>
>
>
>
>
|
<
>
>
>
>







599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636

637
638
639
640
641
642
643
644
645
646
647
  @ </ol>
  style_footer();
}

/*
** COMMAND: wiki
**
** Usage: %fossil wiki (export|delete|commit|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, ordered
**        case-insentively by name.
**
** TODOs:
**
**     %fossil wiki export ?UUID? ?-f outfile[=stdout]? WikiName
**
**        Outputs the selected version of WikiName to the selected file.
**
**     %fossil wiki delete ?-m MESSAGE? WikiName
**
**        The same as deleting a file entry, but i don't know if fossil
**        supports a commit message for Wiki entries.
**
**     %fossil wiki ?-u? ?-d? ?-s=[|]? list
**
**        Lists the UUID and/or Date of last change for each entry, delimited
**        by the -s char.
**
**     %fossil wiki commit ?-f infile[=stdin]? WikiName

**
**        Commit changes to a wiki page from a file or standard input.
**        It creats a new entry if needed (or is that philosophically
**        wrong?).
*/
void wiki_cmd(void){
  int n;
  db_find_and_open_repository(1);
  if( g.argc<3 ){
    goto wiki_cmd_usage;
  }