~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Guillermo Gonzalez
  • Date: 2008-07-09 20:15:29 UTC
  • mto: (3542.1.1 logdisplayers)
  • mto: This revision was merged to the branch mainline in revision 3556.
  • Revision ID: guillo.gonzo@gmail.com-20080709201529-sssx8g4paymb3qzs
 * fixed typo LogFormatter.show_properties in docstring
 * added test for bad argument in property handler TestLongLogFormatter.test_properties_handler_bad_argument
 * moved NEWS entry from BUGFIXES to IMPROVEMENTS

Show diffs side-by-side

added added

removed removed

Lines of Context:
617
617
        Otherwise the tags attribute may not be populated.
618
618
 
619
619
    Plugins can register functions to show custom revision properties using
620
 
    the custom_properties_handler_registry. The registered function
 
620
    the properties_handler_registry. The registered function
621
621
    must respect the following interface description:
622
622
        def my_show_properties(properties_dict):
623
623
            # code that returns a dict {'name':'value'} of the properties 
654
654
    def show_properties(self, revision, indent):
655
655
        """Displays the custom properties returned by each registered handler.
656
656
        
657
 
        If a registered handler raises a error it is propagated.
 
657
        If a registered handler raises an error it is propagated.
658
658
        """
659
659
        for key, handler in properties_handler_registry.iteritems():
660
660
            for key, value in handler(revision).items():