/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

Fix branch cloning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        return True
76
76
 
77
77
    def cloning_metadir(self, stacked=False):
78
 
        if stacked:
79
 
            return bzrlib.bzrdir.format_registry.make_bzrdir("pack-0.92")
80
 
        else:
81
 
            return bzrlib.bzrdir.format_registry.make_bzrdir("1.6")
 
78
        return bzrlib.bzrdir.format_registry.make_bzrdir("1.9-rich-root")
82
79
 
83
80
 
84
81
class LocalGitDir(GitDir):
234
231
        try:
235
232
            transport.fetch_pack(lambda x: [], None, lambda x: None, 
236
233
                                 lambda x: mutter("git: %s" % x))
237
 
        except GitProtocolException, e:
 
234
        except errors.git_errors.GitProtocolError:
238
235
            raise errors.bzr_errors.NotBranchError(path=transport.base)
239
236
        else:
240
237
            return format