Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Find the svn parent revision of the repo's dirstate.
    

        def parentrev(ui, repo, meta, hashes):
    """Find the svn parent revision of the repo's dirstate.
    """
    workingctx = repo.parents()[0]
    outrev = outgoing_revisions(repo, hashes, workingctx.node())
    if outrev:
        workingctx = repo[outrev[-1]].parents()[0]
    return workingctx
        


src/h/g/hgsubversion-1.6/hgsubversion/wrappers.py   hgsubversion(Download)
    meta = repo.svnmeta()
    hashes = meta.revmap.hashes()
    ha = util.parentrev(ui, repo, meta, hashes)
    if ha.node() == node.nullid:
        raise hgutil.Abort('No parent svn revision!')

src/h/g/hgsubversion-1.6/hgsubversion/svncommands.py   hgsubversion(Download)
    meta = repo.svnmeta()
    hashes = meta.revmap.hashes()
    parent = util.parentrev(ui, repo, meta, hashes)
    r, br = hashes[parent.node()]
    branchpath = meta.layoutobj.remotename(br)
        parent = repo[opts['rev']]
    else:
        parent = util.parentrev(ui, repo, meta, hashes)
 
    pn = parent.node()