tests/printenv.py
changeset 12642 bb35840e965c
parent 10282 08a0f04b56bd
child 13404 31a256ffe9e5
equal deleted inserted replaced
12641:da6693cce635 12642:bb35840e965c
    46 elif url.startswith("remote:http"):
    46 elif url.startswith("remote:http"):
    47     os.environ["HG_URL"] = "remote:http"
    47     os.environ["HG_URL"] = "remote:http"
    48 
    48 
    49 out.write("%s hook: " % name)
    49 out.write("%s hook: " % name)
    50 for v in env:
    50 for v in env:
    51     out.write("%s=%s " %
    51     out.write("%s=%s " % (v, os.environ[v]))
    52               (v, os.environ[v].replace(os.environ["HGTMP"], '$HGTMP')))
       
    53 out.write("\n")
    52 out.write("\n")
    54 out.close()
    53 out.close()
    55 
    54 
    56 sys.exit(exitcode)
    55 sys.exit(exitcode)