~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/fortune

  • Committer: Robert Collins
  • Date: 2007-10-02 05:33:39 UTC
  • mto: This revision was merged to the branch mainline in revision 2885.
  • Revision ID: robertc@robertcollins.net-20071002053339-vnyjf4jrxv0jeekf
* Move transport logging into a new transport class
  TransportTraceDecorator (trace+ to get it from a url).
* Give Registry a useful __repr__.
* Fix a bug introduced by the change to use a Registry for transport where
  the transport loading tests left global state behind due to the
  _get_protocol_handlers method returning a reference, not a value object.
* Add an upper_limit parameter to readv, because when asking for byte
  ranges within the latency-adjustment window near the end of the file
  causes errors that are tricky to manage.
* A few minor drive-by formatting fixes.
* The TransportDecorator constructor now accepts a _from_transport
  parameter for decorators that want to share state (used by the trace
  decorator)

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