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

Split out push to remote git repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        for optimiser in [fetch.InterRemoteGitNonGitRepository, 
86
86
                          fetch.InterLocalGitNonGitRepository,
87
87
                          fetch.InterGitRepository,
88
 
                          push.InterToGitRepository]:
 
88
                          push.InterToLocalGitRepository,
 
89
                          push.InterToRemoteGitRepository]:
89
90
            repository.InterRepository.register_optimiser(optimiser)
90
91
 
91
92
    def is_shared(self):
104
105
    def make_working_trees(self):
105
106
        return True
106
107
 
 
108
    def dfetch(self, source, stop_revision):
 
109
        interrepo = repository.InterRepository.get(source, self)
 
110
        return interrepo.dfetch(stop_revision)
 
111
 
107
112
 
108
113
class LocalGitRepository(GitRepository):
109
114
    """Git repository on the file system."""
171
176
        ancestry.reverse()
172
177
        return [None] + ancestry
173
178
 
174
 
    def dfetch(self, source, stop_revision):
175
 
        interrepo = repository.InterRepository.get(source, self)
176
 
        return interrepo.dfetch(stop_revision)
177
 
 
178
179
    def get_signature_text(self, revision_id):
179
180
        raise errors.NoSuchRevision(self, revision_id)
180
181