[PATCH 1 of 2] tests/printenv.py: replace \ with / in output
Adrian Buehlmann
adrian at cadifra.com
Fri Jun 15 15:43:25 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1339783176 -7200
# Node ID 4e11fccbab3fff780494aebe186445c735aec7f4
# Parent 3d94d737595d25394892730b5d096de87ff6bb79
tests/printenv.py: replace \ with / in output
saves us quite a bunch of (glob)'s
diff --git a/tests/printenv.py b/tests/printenv.py
--- a/tests/printenv.py
+++ b/tests/printenv.py
@@ -38,7 +38,7 @@
out.write("%s hook: " % name)
for v in env:
- out.write("%s=%s " % (v, os.environ[v]))
+ out.write("%s=%s " % (v, os.environ[v].replace('\\', '/')))
out.write("\n")
out.close()
More information about the Mercurial-devel
mailing list