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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        if not isinstance(other, Revision):
75
75
            return False
76
76
        return (
77
 
                self.inventory_sha1 == other.inventory_sha1
 
77
            self.inventory_sha1 == other.inventory_sha1
78
78
                and self.revision_id == other.revision_id
79
79
                and self.timestamp == other.timestamp
80
80
                and self.message == other.message
81
81
                and self.timezone == other.timezone
82
82
                and self.committer == other.committer
83
83
                and self.properties == other.properties
84
 
                and self.parent_ids == other.parent_ids)
 
84
            and self.parent_ids == other.parent_ids)
85
85
 
86
86
    def __ne__(self, other):
87
87
        return not self.__eq__(other)
107
107
        reversed_result = []
108
108
        while current_revision is not None:
109
109
            reversed_result.append(current_revision.revision_id)
110
 
            if not len (current_revision.parent_ids):
 
110
            if not len(current_revision.parent_ids):
111
111
                reversed_result.append(None)
112
112
                current_revision = None
113
113
            else:
189
189
    """
190
190
    found_ancestors = {}
191
191
    anc_iter = enumerate(iter_ancestors(revision_id, revision_source,
192
 
                         only_present=True))
 
192
                                        only_present=True))
193
193
    for anc_order, (anc_id, anc_distance) in anc_iter:
194
194
        if anc_id not in found_ancestors:
195
195
            found_ancestors[anc_id] = (anc_order, anc_distance)