diff tests/printenv.py @ 7787:b8d750daadde

Introduce HG_PREPEND to solve pretxn races - add writepending to flush delayed writes to separate file - add support in hooks for lazy evaluation of callable parameters - add HG_PENDING to pretxn hooks - call writepending if hook is used - pass repo root to hook environment - if HG_PENDING = repo root, we're in pretxn hook - read pending data to make pending changesets visible - filter HG_PENDING in tests/printenv.py
author Matt Mackall <mpm@selenic.com>
date Mon, 16 Feb 2009 19:35:07 -0600
parents f77c8d8331ca
children f60f6f41978e
line wrap: on
line diff
--- a/tests/printenv.py	Sun Jan 18 19:59:51 2009 +0100
+++ b/tests/printenv.py	Mon Feb 16 19:35:07 2009 -0600
@@ -46,6 +46,9 @@
 elif url.startswith("remote:http"):
     os.environ["HG_URL"] = "remote:http"
 
+if "HG_PENDING" in os.environ:
+    os.environ["HG_PENDING"] = os.environ["HG_PENDING"] and "true"
+
 out.write("%s hook: " % name)
 for v in env:
     out.write("%s=%s " % (v, os.environ[v]))