##// END OF EJS Templates
tests: stabilize `test-merge-partial-tool.t` on Windows...
tests: stabilize `test-merge-partial-tool.t` on Windows The test was previously failing because it was opening the shell scripts being used as an executable in a text editor, and problems cascaded from there.

File last commit:

r49730:6000f5b2 default
r52838:4ee2505f default
Show More
svnurlof.py
19 lines | 312 B | text/x-python | PythonLexer
Augie Fackler
tests: make and use a new `svnurlof.py` helper for constructing svn urls...
r41621 import sys
from mercurial import (
pycompat,
util,
)
Augie Fackler
formatting: blacken the codebase...
r43346
Augie Fackler
tests: make and use a new `svnurlof.py` helper for constructing svn urls...
r41621 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))
Augie Fackler
formatting: blacken the codebase...
r43346
Augie Fackler
tests: make and use a new `svnurlof.py` helper for constructing svn urls...
r41621 if __name__ == '__main__':
main(sys.argv)