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

Eduard-Cristian Stefan alexandrul.ct at gmail.com
Sun Jun 24 15:07:28 CDT 2012


On 2012-06-24 21:29, Patrick Mézard wrote:
> Can you try this:
>
> 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
>
>
> instead of the if/else below?
>
>>
>> +#if no-windows
>>     $ SVNREPO="file://$escapedwd/svn-repo"
>> +#else
>> +  $ SVNREPO="file:///$escapedwd/svn-repo"
>> +#endif
>>     $ WCROOT="`pwd`/svn-wc"
>>     $ svnadmin create svn-repo
>>     $ svn co "$SVNREPO" svn-wc

It works.



More information about the Mercurial-devel mailing list