~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/fortune

  • Committer: mbp at sourcefrog
  • Date: 2005-04-06 03:38:35 UTC
  • Revision ID: mbp@sourcefrog.net-20050406033835-0a8142f2ed51db26f3a3681c
- Use a non-null file_id for the branch root directory.  At the moment
  this is fixed; in the future it should be stored in the directory
  and perhaps be randomized at each branch init.  It is not written
  out to the inventory at all as yet.

- Various branch code cleanups to support this.

- If an exception occurs, log traceback into .bzr.log and print a
  message saying it's there.

- New file-id-path command and more help.

- Some pychecker fixups.

- InventoryEntry constructor parameters now require an entry kind and
  a parent_id.

- Fix up cat command when reading a file from a previous revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
# Put this on your $BZRPATH to use it to demonstrate bzr external plugins
4
 
 
5
 
 
6
 
if [ x$1 == x--bzr-usage ]
7
 
then
8
 
    # options
9
 
    echo ""
10
 
    # arguments
11
 
    echo ""
12
 
    exit 0
13
 
elif [ x$1 == x--bzr-help ]
14
 
then
15
 
    echo "display a fortune cookie"
16
 
    echo 
17
 
    exit 0
18
 
else
19
 
    /usr/games/fortune
20
 
fi