98
98
if not REVISION_ID_RE.match(rid):
99
99
raise ValueError("malformed revision-id %r" % rid)
102
103
"""Return true if candidate_id is an ancestor of revision_id.
103
105
A false negative will be returned if any intermediate descendent of
104
106
candidate_id is not present in any of the revision_sources.
106
108
revisions_source is an object supporting a get_revision operation that
115
114
def iter_ancestors(revision_id, revision_source, only_present=False):
116
115
ancestors = (revision_id,)