/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/hooks.py

  • Committer: Robert Collins
  • Date: 2009-03-11 04:34:21 UTC
  • mto: This revision was merged to the branch mainline in revision 4118.
  • Revision ID: robertc@robertcollins.net-20090311043421-jua2wrjq86ltarx0
Include the Hooks class in the Hooks docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        """
58
58
        hook_names = sorted(self.keys())
59
59
        hook_docs = []
 
60
        name = self.__class__.__name__
 
61
        hook_docs.append(name)
 
62
        hook_docs.append("="*len(name))
 
63
        hook_docs.append("")
60
64
        for hook_name in hook_names:
61
65
            hook = self[hook_name]
62
66
            try:
68
72
                strings.append("-" * len(hook_name))
69
73
                strings.append("")
70
74
                strings.append("An old-style hook. For documentation see the __init__ "
71
 
                    "method of '%s'\n" % (self.__class__.__name__,))
 
75
                    "method of '%s'\n" % (name,))
72
76
                hook_docs.extend(strings)
73
77
        return "\n".join(hook_docs)
74
78