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

  • Committer: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        elif storage_kind == 'chunked':
60
60
            return self.store[self.blob_id].as_raw_chunks()
61
61
        raise UnavailableRepresentation(self.key, storage_kind,
62
 
                'fulltext')
 
62
                                        'fulltext')
63
63
 
64
64
 
65
65
class GitAbsentContentFactory(object):
98
98
        text_parents = []
99
99
        for commit_parent in self.store[commit_id].parents:
100
100
            try:
101
 
                (path, text_parent) = self.change_scanner.find_last_change_revision(path.encode('utf-8'), commit_parent)
 
101
                (path, text_parent) = self.change_scanner.find_last_change_revision(
 
102
                    path.encode('utf-8'), commit_parent)
102
103
            except KeyError:
103
104
                continue
104
105
            if text_parent not in text_parents:
105
106
                text_parents.append(text_parent)
106
107
        return tuple([(path.decode('utf-8'),
107
 
            self.change_scanner.repository.lookup_foreign_revision_id(p)) for p
108
 
            in text_parents])
 
108
                       self.change_scanner.repository.lookup_foreign_revision_id(p)) for p
 
109
                      in text_parents])
109
110
 
110
111
    def get_parent_map(self, keys):
111
112
        ret = {}
139
140
                yield GitAbsentContentFactory(store, path, text_revision)
140
141
                continue
141
142
            try:
142
 
                (mode, blob_sha) = tree_lookup_path(store.__getitem__, tree_id, path.encode('utf-8'))
 
143
                (mode, blob_sha) = tree_lookup_path(
 
144
                    store.__getitem__, tree_id, path.encode('utf-8'))
143
145
            except KeyError:
144
146
                yield GitAbsentContentFactory(store, path, text_revision)
145
147
            else: