/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

  • Committer: John Carr
  • Date: 2008-12-30 22:10:38 UTC
  • mto: (0.217.35 git-serve)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: john.carr@unrouted.co.uk-20081230221038-wkjk7e99ro3cpo18
Don't bother using InterRepo, use import_git_objects directly. Don't need a full repository (just operating on a pack and index)

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