/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 breezy/git/transportgit.py

Fix compatibility with newer Dulwich.

Merged from https://code.launchpad.net/~jelmer/brz/new-git/+merge/383480

Show diffs side-by-side

added added

removed removed

Lines of Context:
516
516
        backends.extend(StackedConfig.default_backends())
517
517
        return StackedConfig(backends, writable=writable)
518
518
 
 
519
    # Here for compatibility with dulwich < 0.19.17
 
520
    def generate_pack_data(self, have, want, progress=None, ofs_delta=None):
 
521
        """Generate pack data objects for a set of wants/haves.
 
522
 
 
523
        Args:
 
524
          have: List of SHA1s of objects that should not be sent
 
525
          want: List of SHA1s of objects that should be sent
 
526
          ofs_delta: Whether OFS deltas can be included
 
527
          progress: Optional progress reporting method
 
528
        """
 
529
        shallow = self.get_shallow()
 
530
        if shallow:
 
531
            return self.object_store.generate_pack_data(
 
532
                have, want, shallow=shallow,
 
533
                progress=progress, ofs_delta=ofs_delta)
 
534
        else:
 
535
            return self.object_store.generate_pack_data(
 
536
                have, want, progress=progress, ofs_delta=ofs_delta)
 
537
 
519
538
    def __repr__(self):
520
539
        return "<%s for %r>" % (self.__class__.__name__, self.transport)
521
540