parameters: (self, parent_revision, child_revision)
return_statement: return parent_revision == merge_base
docstring: Return True if the specified parent hash an ancestor of child hash.
docstring_summary: Return True if the specified parent hash an ancestor of child hash.
docstring_tokens: Return True if the specified parent hash an ancestor of child hash .
function: def is_ancestor(self, parent_revision, child_revision):
          """Return True if the specified parent hash an ancestor of child hash."""
          # If the common point between parent_revision and child_revision is
          # parent_revision, then parent_revision is an ancestor of child_revision.
          merge_base = self._callgito("merge-base", [parent_revision, child_revision]).rstrip()
          return parent_revision == merge_base
function_tokens: def is_ancestor ( self , parent_revision , child_revision ) : # If the common point between parent_revision and child_revision is # parent_revision, then parent_revision is an ancestor of child_revision. merge_base = self . _callgito ( "merge-base" , [ parent_revision , child_revision ] ) . rstrip ( ) return parent_revision == merge_base