This has been discussed a few times in the mailing list.  My particular
requirement is for integration into emacs-23.   The vc-dired mode requires
a command to run to give the status for each file that is registered
with fossil.   At present "fossil ls" gives you a list of files and their
state, but it doesn't tell you if a file will change if you do an update.
My users are used to having emacs tell them what all will change if they
do an update.

The changes are to 3 files:

1. file.c: file_tree_name does not handle a trailing / on root dir.

2. finfo.c : added options to command line finfo:
    -l|--log (default), -b|--brief (only one line per revision) (optional)
    -s|--status:  report checkin version for file.
    -p <revision>: print a specific version to stdout

3. update.c : added two flags:
    -v|--verbose : print status even for unchanged files
    -n|--nochange : don't do remote-pull, and print changes rather than applying them.
   I only need both flags together so they can be merged.

I'll attach a patch to this ticket off the current tip.