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

Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
        super(TransportObjectStore, self).__init__()
103
103
        self.transport = transport
104
104
        self.pack_transport = self.transport.clone(PACKDIR)
 
105
    
 
106
    def _pack_cache_stale(self):
 
107
        return False # FIXME
105
108
 
106
109
    def _load_packs(self):
107
110
        ret = []
132
135
    def _get_loose_object(self, sha):
133
136
        path = '%s/%s' % self._split_loose_object(sha)
134
137
        try:
135
 
            return ShaFile._parse_file(self.transport.get(path).read())
 
138
            return ShaFile.from_file(self.transport.get(path))
136
139
        except NoSuchFile:
137
140
            return None
138
141