/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

Initial work on supporting move_in_thin_pack.

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
            if self.transport.has(".git/%s" % OBJECTDIR):
286
286
                self.bare = False
287
287
                self._controltransport = self.transport.clone('.git')
288
 
            elif self.transport.has_any(["info/refs", OBJECTDIR, REFSDIR]):
 
288
            elif self.transport.has(OBJECTDIR) or self.transport.has(REFSDIR):
289
289
                self.bare = True
290
290
                self._controltransport = self.transport
291
291
            else:
330
330
        return not self.bare
331
331
 
332
332
    def __repr__(self):
333
 
        return "<%s for %r>" % (self.__class__.__name__, self.transport)
 
333
        return "<TransportRepo for %r>" % self.transport
334
334
 
335
335
 
336
336
class TransportObjectStore(PackBasedObjectStore):
344
344
        super(TransportObjectStore, self).__init__()
345
345
        self.transport = transport
346
346
        self.pack_transport = self.transport.clone(PACKDIR)
347
 
 
348
 
    def __repr__(self):
349
 
        return "%s(%r)" % (self.__class__.__name__, self.transport)
350
 
 
 
347
    
351
348
    def _pack_cache_stale(self):
352
349
        return False # FIXME
353
350