failed test-subrepo-svn (was: Re: Heads up: 1.5.1 due on the 1st)

Benoit Boissinot bboissin at gmail.com
Wed Mar 31 04:29:59 CDT 2010


On Tue, Mar 30, 2010 at 9:37 PM, Thomas Arendsen Hein
<thomas at intevation.de> wrote:
> * Thomas Arendsen Hein <thomas at intevation.de> [20100330 19:04]:
>> On Debian lenny I get failed test-subrepo-svn, starting with
>> svn: Unrecognized URL scheme for '"file:///tmp/thomas/hgtests.hVYaVS/child0/test-subrepo-svn/svn-repo/externals"'
>>
>> Probably due to old svn bindings.
>
> On IRC it was mentioned that actually is a regression from 1.5 and
> bisect shows this as the "culprit":
>
> changeset:   10776:c52057614c72
> branch:      stable
> parent:      10772:1e819576e926
> user:        Mads Kiilerich <mads at kiilerich.com>
> date:        Wed Mar 24 01:43:24 2010 +0100
> summary:     Tests with spaces in paths
>
> So it is not a regression in the code, but in a test.

Proposed fix:

diff --git a/tests/test-subrepo-svn b/tests/test-subrepo-svn
--- a/tests/test-subrepo-svn
+++ b/tests/test-subrepo-svn
@@ -14,6 +14,7 @@
 if [ $? -ne 0 ]; then
     escapedwd="/$escapedwd"
 fi
+escapedwd=`python -c "import urllib, sys;
sys.stdout.write(urllib.quote(sys.argv[1]))" "$escapedwd"`
 filterpath="s|$escapedwd|/root|"
 filtersvn='s/ in transaction.*/ is out of date/;s/Out of date: /File /'

@@ -33,7 +34,7 @@
 svn ci -m 'Add alpha'
 svn up
 cat > extdef <<EOF
-externals -r1 "$SVNREPO/externals"
+externals -r1 $SVNREPO/externals
 EOF
 svn propset -F extdef svn:externals src
 svn ci -m 'Setting externals'


More information about the Mercurial-devel mailing list