comparison tests/printenv.py @ 9399:f60f6f41978e

test-hooks: Don't hide the value of HG_PENDING Hiding the value of HG_PENDING made it less obvious what was going on in case of test failure
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 19 Aug 2009 00:45:24 +0200
parents b8d750daadde
children 08a0f04b56bd
comparison
equal deleted inserted replaced
9398:3fb8c6dbeeec 9399:f60f6f41978e
44 if url.startswith("file:"): 44 if url.startswith("file:"):
45 os.environ["HG_URL"] = "file:" 45 os.environ["HG_URL"] = "file:"
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 if "HG_PENDING" in os.environ:
50 os.environ["HG_PENDING"] = os.environ["HG_PENDING"] and "true"
51
52 out.write("%s hook: " % name) 49 out.write("%s hook: " % name)
53 for v in env: 50 for v in env:
54 out.write("%s=%s " % (v, os.environ[v])) 51 out.write("%s=%s " % (v, os.environ[v].replace(os.environ["HGTMP"], '$HGTMP')))
55 out.write("\n") 52 out.write("\n")
56 out.close() 53 out.close()
57 54
58 sys.exit(exitcode) 55 sys.exit(exitcode)