~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/controldir.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-08 11:01:15 UTC
  • mfrom: (6123.1.16 gpg-typo)
  • Revision ID: pqm@cupuasso-20110908110115-gbb9benwkdksvzk5
(jelmer) Fix a typo (invalid format identifier) in an error message in
 bzrlib.gpg. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        return self.user_transport.base
76
76
 
77
77
 
 
78
 
78
79
class ControlDir(ControlComponent):
79
80
    """A control directory.
80
81
 
145
146
        """Destroy the repository in this ControlDir."""
146
147
        raise NotImplementedError(self.destroy_repository)
147
148
 
148
 
    def create_branch(self, name=None, repository=None,
149
 
                      append_revisions_only=None):
 
149
    def create_branch(self, name=None, repository=None):
150
150
        """Create a branch in this ControlDir.
151
151
 
152
152
        :param name: Name of the colocated branch to create, None for
153
153
            the default branch.
154
 
        :param append_revisions_only: Whether this branch should only allow
155
 
            appending new revisions to its history.
156
154
 
157
155
        The controldirs format will control what branch format is created.
158
156
        For more control see BranchFormatXX.create(a_controldir).
681
679
    def is_supported(self):
682
680
        """Is this format supported?
683
681
 
684
 
        Supported formats must be openable.
 
682
        Supported formats must be initializable and openable.
685
683
        Unsupported formats may not support initialization or committing or
686
684
        some other features depending on the reason for not being supported.
687
685
        """
688
686
        return True
689
687
 
690
 
    def is_initializable(self):
691
 
        """Whether new control directories of this format can be initialized.
692
 
        """
693
 
        return self.is_supported()
694
 
 
695
688
    def check_support_status(self, allow_unsupported, recommend_upgrade=True,
696
689
        basedir=None):
697
690
        """Give an error or warning on old formats.