view tests/svnurlof.py @ 49842:a308c69470e7 stable

Added signature for changeset 59466b13a3ae
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 04 Jan 2023 12:07:55 +0100
parents 6000f5b25c9b
children
line wrap: on
line source

import sys

from mercurial import (
    pycompat,
    util,
)


def main(argv):
    enc = util.urlreq.quote(pycompat.sysbytes(argv[1]))
    if pycompat.iswindows:
        fmt = 'file:///%s'
    else:
        fmt = 'file://%s'
    print(fmt % pycompat.sysstr(enc))


if __name__ == '__main__':
    main(sys.argv)