/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 bzrlib/help_topics/en/hooks.txt

  • Committer: Robert Collins
  • Date: 2009-02-11 12:49:50 UTC
  • mto: (4000.2.2 test-result-registry)
  • mto: This revision was merged to the branch mainline in revision 4003.
  • Revision ID: robertc@robertcollins.net-20090211124950-70c4aa2a8ub65d0s
Add a new hook Commands['extend_command'] for plugins that want to alter commands without overriding the entire command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
The hook should return a new commit message template.
279
279
 
280
280
(New in 1.10.)
 
281
 
 
282
extend_command (Commands)
 
283
-------------------------
 
284
 
 
285
Invoked by the command line interface when constructing a command object, this
 
286
hook permits the object to be altered after construction - for instance, to add
 
287
options, hook into callbacks that that command offers or more.
 
288
 
 
289
The hook signature is hook(cmd) -> None. 
 
290
 
 
291
This hook was added in 1.13.