~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/controldir.py

  • Committer: Jelmer Vernooij
  • Date: 2011-02-24 16:21:50 UTC
  • mto: (5582.10.69 weave-fmt-plugin)
  • mto: This revision was merged to the branch mainline in revision 5688.
  • Revision ID: jelmer@samba.org-20110224162150-nk32ohvrnidhklch
Add _ObjGetter.get_module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
691
691
            result.append(fmt)
692
692
        return result + self._get_extra()
693
693
 
 
694
    def _get_all_modules(self):
 
695
        """Return a set of the modules providing objects."""
 
696
        modules = set()
 
697
        for name in self.keys():
 
698
            modules.add(self._get_module(name))
 
699
        for getter in self._extra_formats:
 
700
            modules.add(getter.get_module())
 
701
        return modules
 
702
 
694
703
 
695
704
class ControlDirFormat(object):
696
705
    """An encapsulation of the initialization and open routines for a format.