[PATCH] test-subrepo-svn.t: partially adapt for Windows

alexandrul.ct at gmail.com alexandrul.ct at gmail.com
Mon Jun 25 02:51:28 CDT 2012


# HG changeset patch
# User Eduard-Cristian Stefan <alexandrul.ct at gmail.com>
# Date 1340610673 -10800
# Node ID ad2902683bb724d6be73561044d6eec511fec4fc
# Parent  7dd82e0c43ea34f0b3f9b38f0fcd843800f1799c
test-subrepo-svn.t: partially adapt for Windows

escapedwd should start with a slash on Windows.
Thanks to Patrick Mézard for the patch.

diff --git a/tests/test-subrepo-svn.t b/tests/test-subrepo-svn.t
--- a/tests/test-subrepo-svn.t
+++ b/tests/test-subrepo-svn.t
@@ -9,8 +9,8 @@
 don't. Handle that.
 
   $ escapedwd=`pwd | fix_path`
+  $ escapedwd=`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$escapedwd"`
   $ expr "$escapedwd" : '\/' > /dev/null || escapedwd="/$escapedwd"
-  $ escapedwd=`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$escapedwd"`
 
 create subversion repo
 


More information about the Mercurial-devel mailing list