# HG changeset patch # User Adrian Buehlmann # Date 2012-07-03 16:02:07 # Node ID 1c55d1add24f658464d7db78bc877beca00fa735 # Parent 09305d7745ddca6f9c1593cad2f8aabc0bfb1812 test-keyword: adapt for Windows diff --git a/tests/test-keyword.t b/tests/test-keyword.t --- a/tests/test-keyword.t +++ b/tests/test-keyword.t @@ -1,5 +1,3 @@ - $ "$TESTDIR/hghave" unix-permissions serve || exit 80 - $ cat <> $HGRCPATH > [extensions] > keyword = @@ -297,16 +295,20 @@ Check whether expansion is filewise and $ echo '$Id$' > c $ echo 'tests for different changenodes' >> c +#if unix-permissions $ chmod 600 c $ ls -l c | cut -b 1-10 -rw------- +#endif commit file c $ hg commit -A -mcndiff -d '1 0' -u 'User Name ' adding c +#if unix-permissions $ ls -l c | cut -b 1-10 -rw------- +#endif force expansion @@ -330,10 +332,10 @@ record record chunk - >>> lines = open('a').readlines() + >>> lines = open('a', 'rb').readlines() >>> lines.insert(1, 'foo\n') >>> lines.append('bar\n') - >>> open('a', 'w').writelines(lines) + >>> open('a', 'wb').writelines(lines) $ hg record -d '10 1' -m rectest a< y > y @@ -612,6 +614,7 @@ Copy ignored file to ignored file: no ov cp symlink file; hg cp -A symlink file (part1) - copied symlink points to kwfile: overwrite +#if symlink $ cp sym i $ ls -l i -rw-r--r--* (glob) @@ -624,6 +627,7 @@ cp symlink file; hg cp -A symlink file ( expand $Id$ $ hg forget i $ rm i +#endif Test different options of hg kwfiles @@ -924,6 +928,7 @@ kwexpand nonexistent nonexistent:* (glob) +#if serve hg serve - expand with hgweb file - no expansion with hgweb annotate/changeset/filediff @@ -987,6 +992,7 @@ hg serve $ cat errors.log +#endif Prepare merge and resolve tests