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

Require dulwich 0.6.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    def is_supported(self):
76
76
        return True
77
77
 
 
78
    def can_convert_format(self):
 
79
        return False
 
80
 
78
81
    def cloning_metadir(self, stacked=False):
79
82
        return bzrdir.format_registry.make_bzrdir("default")
80
83
 
125
128
    def is_control_filename(self, filename):
126
129
        return filename == '.git' or filename.startswith('.git/')
127
130
 
128
 
    def get_branch_transport(self, branch_format, name):
 
131
    def get_branch_transport(self, branch_format, name=None):
129
132
        if branch_format is None:
130
133
            return self.transport
131
134
        if isinstance(branch_format, LocalGitBzrDirFormat):
156
159
    def destroy_branch(self, name=None):
157
160
        del self._git.refs[self._branch_name_to_ref(name)]
158
161
 
 
162
    def destroy_repository(self):
 
163
        raise bzr_errors.UnsupportedOperation(self.destroy_repository, self)
 
164
 
 
165
    def destroy_workingtree(self):
 
166
        raise bzr_errors.UnsupportedOperation(self.destroy_workingtree, self)
 
167
 
159
168
    def list_branches(self):
160
169
        ret = []
161
170
        for name in self._git.get_refs():