/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

Add __repr__

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
        from bzrlib.plugins.git.repository import LocalGitRepository
313
313
        return LocalGitRepository
314
314
 
 
315
    def __repr__(self):
 
316
        return "<%s at %r>" % (
 
317
            self.__class__.__name__, self.root_transport.base)
 
318
 
315
319
    _gitrepository_class = property(_get_gitrepository_class)
316
320
 
317
321
    @property
428
432
 
429
433
    def list_branches(self):
430
434
        ret = []
431
 
        for name in self._git.get_refs():
 
435
        for name in self._git.refs.keys():
432
436
            if name.startswith("refs/heads/"):
433
437
                ret.append(self.open_branch(name=name))
434
438
        return ret