159
159
def get_base(self, revision):
160
160
revision_info = self.get_revision_info(revision.revision_id)
161
161
if revision_info.base_id is not None:
163
166
if len(revision.parent_ids) == 0:
164
167
# There is no base listed, and
165
168
# the lowest revision doesn't have a parent
166
169
# so this is probably against the empty tree
170
173
return revision.parent_ids[-1]