tests/svnurlof.py
author Raphaël Gomès <rgomes@octobus.net>
Thu, 16 Feb 2023 11:42:34 +0100
branchstable
changeset 49659 812a9fbf4380
parent 48966 6000f5b25c9b
permissions -rw-r--r--
rust: upgrade minimum `rayon` dependency The 1.6.0 and 1.6.1 releases fixes a soundness issue and a performance issue that are both important to us, since both correctness and performance are paramount in the Rust extensions.

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)