Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Return True if ancestorctx is equal or an ancestor of ctx.

        def isancestor(ctx, ancestorctx):
    """Return True if ancestorctx is equal or an ancestor of ctx."""
    if ctx == ancestorctx:
        return True
    for actx in ctx.ancestors():
        if actx == ancestorctx:
            return True
    return False

src/h/g/hgsubversion-1.6/hgsubversion/svnmeta.py   hgsubversion(Download)
                                ctx = self.repo[self.get_parent_revision(
                                    revision.revnum, br)]
                                if cctx and util.isancestor(ctx, cctx):
                        parent = self._determine_parent_branch(

src/h/g/hgsubversion-1.6/hgsubversion/stupid.py   hgsubversion(Download)
                pctx = meta.repo[meta.get_parent_revision(
                    r.revnum, branch, exact=True)]
                if util.isancestor(pctx, fromctx):
            closed = checkbranch(meta, r, branch)

src/h/g/hgsubversion-1.6/hgsubversion/editor.py   hgsubversion(Download)
                    self.current.rev.revnum, branch, exact=True)
            if (oldpnode != revlog.nullid
                    and util.isancestor(self._getctx(oldpnode), fromctx)):
                # Branch-wide replacement, unmark the branch as deleted