Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/c/s/cspace-HgSite-1.1/cspace/hgsite/site.py   cspace-HgSite(Download)
from mercurial.hgweb import common, webcommands, webutil
 
from .util import exists_in_wc, find_line_no, get_ext, guess_mimetype, \
                  hex_node, href_builder, http_date
 
    else:
        req.href = href_builder(req.url + node_prefix + node)
    req.rev_href = href_builder(req.url + node_prefix + hex_node(req.ctx))
    req.repo_href = href_builder(req.url)
 

src/c/s/cspace-HgSite-1.1/cspace/hgsite/genshi.py   cspace-HgSite(Download)
 
from .site import cache_must_revalidate, renderer
from .util import guess_mimetype, hex_node
 
 
    encoding = config.get('encoding', 'utf-8')
    loader = get_template_loader(req.repo)
    template = loader.load('%s@%s' % (path, hex_node(req.ctx)),
                           cls=MarkupTemplate)
    context = make_context(req, path, highlight=highlight, **kwargs)
    encoding = config.get('encoding', 'utf-8')
    loader = get_template_loader(req.repo)
    template = loader.load('%s@%s' % (path, hex_node(req.ctx)),
                           cls=NewTextTemplate)
    stream = template.generate(make_context(req, path, **kwargs))