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

  • Committer: Jelmer Vernooij
  • Date: 2009-09-10 13:13:15 UTC
  • mto: (0.200.602 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090910131315-6890xg58pl2jseml
Allow serving remote URLs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
                self.pb.update("writing pack objects", i, len(self))
128
128
            if isinstance(object, tuple):
129
129
                object = self._object_store._get_ie_object(*object)
130
 
            yield (object, path)
 
130
            yield (object, path)   
131
131
 
132
132
 
133
133
class InterToGitRepository(InterRepository):
148
148
        """See InterRepository.copy_content."""
149
149
        self.fetch(revision_id, pb, find_ghosts=False)
150
150
 
151
 
    def fetch(self, revision_id=None, pb=None, find_ghosts=False,
 
151
    def fetch(self, revision_id=None, pb=None, find_ghosts=False, 
152
152
            fetch_spec=None):
153
153
        raise NoPushSupport()
154
154
 
204
204
                    new_bzr_revid = self.mapping.revision_id_foreign_to_bzr(git_commit)
205
205
                    revidmap[old_bzr_revid] = new_bzr_revid
206
206
                    gitidmap[old_bzr_revid] = git_commit
207
 
                target_store.add_objects(object_generator)
 
207
                target_store.add_objects(object_generator) 
208
208
            finally:
209
209
                pb.finished()
210
210
        finally:
214
214
    @staticmethod
215
215
    def is_compatible(source, target):
216
216
        """Be compatible with GitRepository."""
217
 
        return (not isinstance(source, GitRepository) and
 
217
        return (not isinstance(source, GitRepository) and 
218
218
                isinstance(target, LocalGitRepository))
219
219
 
220
220
 
239
239
    @staticmethod
240
240
    def is_compatible(source, target):
241
241
        """Be compatible with GitRepository."""
242
 
        return (not isinstance(source, GitRepository) and
 
242
        return (not isinstance(source, GitRepository) and 
243
243
                isinstance(target, RemoteGitRepository))