tests/svnurlof.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 15 Jan 2021 23:47:16 +0100
changeset 46302 599d247af600
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
copies: fix some comment in _filter The scenario the comment describes match case 6, not case 2. Differential Revision: https://phab.mercurial-scm.org/D9793

from __future__ import absolute_import, print_function
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)