tests/svnurlof.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sat, 11 Jun 2022 00:00:29 +0200
changeset 49359 76b4b36cd5d0
parent 48875 6000f5b25c9b
permissions -rw-r--r--
spares: clarify some test about merging copies This new output clarify the important part out this merging : we want to be able to record the copy source even it is outside of the sparse profile.

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)