~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-14 18:32:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6404.
  • Revision ID: jelmer@samba.org-20111214183219-psb0o3exfsnhpemq
Cope with features already existing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1135
1135
 
1136
1136
        :param name: Name of the feature
1137
1137
        """
 
1138
        if name in cls._present_features:
 
1139
            raise errors.FeatureAlreadyRegistered(name)
1138
1140
        cls._present_features.add(name)
1139
1141
 
1140
1142
    @classmethod