Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def hgmode(mode):
    modes = {'100755': 'x', '120000': 'l'}
    return modes.get(mode, '')
        


src/g/i/gitifyhg-0.8.4/gitifyhg/gitexporter.py   gitifyhg(Download)
from distutils.version import StrictVersion
 
from .util import (die, output, git_to_hg_spaces, hgmode, branch_tip,
    ref_to_name_reftype, BRANCH, BOOKMARK, TAG, user_config)
 
                t, mode, mark_ref, path = line.split(' ', 3)
                mark = int(mark_ref[1:])
                filespec = {'mode': hgmode(mode), 'data': self.blob_marks[mark]}
            elif line.startswith('D'):
                t, path = line.split(' ', 1)