/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

Add convenience method for getting missing objects iterator.

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
 
 
81
78
    def cloning_metadir(self, stacked=False):
82
79
        return bzrdir.format_registry.make_bzrdir("default")
83
80
 
128
125
    def is_control_filename(self, filename):
129
126
        return filename == '.git' or filename.startswith('.git/')
130
127
 
131
 
    def get_branch_transport(self, branch_format, name=None):
 
128
    def get_branch_transport(self, branch_format, name):
132
129
        if branch_format is None:
133
130
            return self.transport
134
131
        if isinstance(branch_format, LocalGitBzrDirFormat):
159
156
    def destroy_branch(self, name=None):
160
157
        del self._git.refs[self._branch_name_to_ref(name)]
161
158
 
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
 
 
168
159
    def list_branches(self):
169
160
        ret = []
170
161
        for name in self._git.get_refs():