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

Merge from my stable branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    def __init__(self, gitdir, lockfiles):
50
50
        self.bzrdir = gitdir
51
51
        self.control_files = lockfiles
52
 
        gitdirectory = gitdir.transport.local_abspath('.')
53
 
        self.base = gitdirectory
54
 
        self._git = model.GitModel(gitdirectory)
 
52
        self._git = self._make_model(gitdir.transport)
55
53
        self._revision_cache = {}
56
54
        self._blob_cache = {}
57
55
        self._blob_info_cache = {}
81
79
        self.cachedb.commit()
82
80
 
83
81
 
 
82
    @classmethod
 
83
    def _make_model(klass, transport):
 
84
        gitdirectory = transport.local_abspath('.')
 
85
        return model.GitModel(gitdirectory)
 
86
 
 
87
 
84
88
    def _ancestor_revisions(self, revision_ids):
85
89
        if revision_ids is not None:
86
90
            git_revisions = [gitrevid_from_bzr(r) for r in revision_ids]