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:
166
163
if len(revision.parent_ids) == 0:
167
164
# There is no base listed, and
168
165
# the lowest revision doesn't have a parent
169
166
# so this is probably against the empty tree
173
170
return revision.parent_ids[-1]