##// END OF EJS Templates
Fix test-share and test-subrepo under Windows
Fix test-share and test-subrepo under Windows

File last commit:

r10468:2250fc37 stable
r10468:2250fc37 stable
Show More
filtertmp.py
14 lines | 316 B | text/x-python | PythonLexer
#!/usr/bin/env python
#
# This used to be a simple sed call like:
#
# $ sed "s:$HGTMP:*HGTMP*:"
#
# But $HGTMP has ':' under Windows which breaks the sed call.
#
import sys, os
input = sys.stdin.read()
input = input.replace(os.environ['HGTMP'], '$HGTMP')
input = input.replace(os.sep, '/')
sys.stdout.write(input)