/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: 2018-03-05 08:55:13 UTC
  • mto: (0.200.1815 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180305085513-63uk6nrdfh1x0dnc
Handle pure git revisions during push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
    def fetch_objects(self, revs, lossy, limit=None):
277
277
        if not lossy and not self.mapping.roundtripping:
278
278
            for git_sha, bzr_revid in revs:
279
 
                if needs_roundtripping(self.source, bzr_revid):
 
279
                if bzr_revid is not None and needs_roundtripping(self.source, bzr_revid):
280
280
                    raise NoPushSupport(self.source, self.target, self.mapping,
281
281
                                        bzr_revid)
282
282
        with self.source_store.lock_read():
319
319
            stop_revisions = [(None, revid) for revid in self.source.all_revision_ids()]
320
320
        if not self.mapping.roundtripping:
321
321
            for (git_sha, bzr_revid) in stop_revisions:
322
 
                if needs_roundtripping(self.source, bzr_revid):
 
322
                if bzr_revid is not None and needs_roundtripping(self.source, bzr_revid):
323
323
                    raise NoPushSupport(self.source, self.target, self.mapping, bzr_revid)
324
324
        self.fetch_objects(stop_revisions, lossy=False)
325
325