##// END OF EJS Templates
flagutil: move addflagprocessor to the new module (API)
flagutil: move addflagprocessor to the new module (API)

File last commit:

r41526:d6b76d62 default
r42958:6d61be15 default
Show More
svnurlof.py
18 lines | 365 B | text/x-python | PythonLexer
Augie Fackler
tests: make and use a new `svnurlof.py` helper for constructing svn urls...
r41621 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)