/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/library-interface.txt

  • Committer: Robert Collins
  • Date: 2005-10-30 01:40:16 UTC
  • Revision ID: robertc@robertcollins.net-20051030014016-98a4fba7d6a4176c
Support decoration of commands.

Commands.register_command now takes an optional flag to signal that the
registrant is planning to decorate an existing command. When given
multiple plugins registering a command is not an error, and the original
command class (whether built in or a plugin based one) is returned to the
caller. There is a new error 'MustUseDecorated' for signalling when a
wrapping command should switch to the original version. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
*****************
 
2
Library interface
 
3
*****************
 
4
 
 
5
Should have a pleasant library interface.
 
6
 
 
7
* Be clear what is supposed to be in a stable public interface and
 
8
  what is not.  (A common failing of Python programs.)
 
9
 
 
10
* If a function changes the working directory (as may be necessary to
 
11
  run patch) it should restore it.