~brz/brz/3.0

« back to all changes in this revision

Viewing changes to breezy/git/object_store.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-05-30 01:35:40 UTC
  • mfrom: (7340.1.9 flakes-fix)
  • Revision ID: breezy.the.bot@gmail.com-20200530013540-g5thcq7ltuijo83k
Fix compatibility with newer versions of flake8.

Merged from https://code.launchpad.net/~jelmer/brz/flakes-fix/+merge/384002

Show diffs side-by-side

added added

removed removed

Lines of Context:
791
791
            self.generate_pack_contents(have, want, progress, get_tagged,
792
792
                                        lossy=True))
793
793
 
794
 
    def generate_pack_contents(self, have, want, progress=None,
 
794
    def generate_pack_contents(self, have, want, shallow=None, progress=None,
795
795
                               ofs_delta=False, get_tagged=None, lossy=False):
796
796
        """Iterate over the contents of a pack file.
797
797
 
798
798
        :param have: List of SHA1s of objects that should not be sent
799
799
        :param want: List of SHA1s of objects that should be sent
800
800
        """
 
801
        if shallow is not None:
 
802
            raise NotImplementedError('shallow is currently not supported')
801
803
        processed = set()
802
804
        ret = self.lookup_git_shas(have + want)
803
805
        for commit_sha in have: