[PATCH] test-bundle: enable for Windows

Mads Kiilerich mads at kiilerich.com
Fri Jun 1 08:13:50 CDT 2012


On 01/06/12 14:53, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann<adrian at cadifra.com>
> # Date 1338554850 -7200
> # Node ID 0fe6a3ee9cef0d1ec17dc091a22d49505ef141e9
> # Parent  11186ea1f83bdb20630bba6d70e02d41202a7fc1
> test-bundle: enable for Windows
>
> diff --git a/tests/test-bundle.t b/tests/test-bundle.t
> --- a/tests/test-bundle.t
> +++ b/tests/test-bundle.t
> @@ -1,5 +1,3 @@
> -  $ "$TESTDIR/hghave" system-sh || exit 80

Many of these hghave system-sh are probably wrong ... or should be 
merged with unix-permissions.

>   Setting up test
>
>     $ hg init test
> @@ -207,8 +205,8 @@
>
>   Pull ../full.hg into empty (with hook)
>
> -  $ echo '[hooks]'>>  .hg/hgrc
> -  $ echo 'changegroup = python "$TESTDIR"/printenv.py changegroup'>>  .hg/hgrc
> +  $ echo "[hooks]">>  .hg/hgrc
> +  $ echo "changegroup = python $TESTDIR/printenv.py changegroup">>  .hg/hgrc

The test suite should be able to run on paths containing spaces - both 
in order to avoid false failures when people try that anyway and to do a 
bit of verification that Mercurial quote paths properly. The quotes 
around $TESTDIR should thus be preserved (but escaped).

>
>   doesn't work (yet ?)
>
> @@ -386,7 +384,7 @@
>   Outgoing -R does-not-exist.hg vs partial2 in partial
>
>     $ hg -R bundle://../does-not-exist.hg outgoing ../partial2
> -  abort: *: ../does-not-exist.hg (glob)
> +  abort: *../does-not-exist.hg* (glob)
>     [255]
>     $ cd ..
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list