[PATCH] test-commit-amend: adapt for Windows after fba17a64fa49

Mads Kiilerich mads at kiilerich.com
Fri Jun 29 09:02:29 CDT 2012


On 29/06/12 15:46, Idan Kamara wrote:
> On Fri, Jun 29, 2012 at 4:35 PM, Adrian Buehlmann <adrian at cadifra.com 
> <mailto:adrian at cadifra.com>> wrote:
>
>     # HG changeset patch
>     # User Adrian Buehlmann <adrian at cadifra.com
>     <mailto:adrian at cadifra.com>>
>     # Date 1340976095 -7200
>     # Node ID 69fa0459dd3b5fc8f7a4e1c5ca632fd7c8788c00
>     # Parent  fba17a64fa4978bfea19222da5e64a18cfddeecd
>     test-commit-amend: adapt for Windows after fba17a64fa49
>
>     diff --git a/tests/test-commit-amend.t b/tests/test-commit-amend.t
>     --- a/tests/test-commit-amend.t
>     +++ b/tests/test-commit-amend.t
>     @@ -23,8 +23,10 @@
>       nothing changed
>       [1]
>
>     -  $ echo '[hooks]' >> $HGRCPATH
>     -  $ echo 'pretxncommit.foo = echo "pretxncommit $HG_NODE"; hg id
>     -r $HG_NODE' >> $HGRCPATH
>     +  $ cat >> $HGRCPATH <<EOF
>     +  > [hooks]
>     +  > pretxncommit.foo = sh -c "echo \"pretxncommit \$HG_NODE\"; hg
>     id -r \$HG_NODE"
>     +  > EOF
>
>      Amending changeset with changes in working dir:
>
>     @@ -32,7 +34,7 @@
>       $ hg ci --amend -m 'amend base1'
>       pretxncommit 9cd25b479c51be2f4ed2c38e7abdf7ce67d8e0dc
>       9cd25b479c51 tip
>     -  saved backup bundle to
>     $TESTTMP/.hg/strip-backup/489edb5b847d-amend-backup.hg
>     +  saved backup bundle to
>     $TESTTMP/.hg/strip-backup/489edb5b847d-amend-backup.hg (glob)
>
>
> Doesn't look like anything is globbed here.

http://mercurial.selenic.com/wiki/WritingTests haven't been updated with 
tips and tricks for making tests compatible with MSYS on Windows yet. 
Glob was extended by http://selenic.com/repo/hg/rev/9910f60a37ee .

The wiki should be updated soon. MSYS testing is beyond proof-of-concept 
but still work in progress.

/Mads


More information about the Mercurial-devel mailing list