##// END OF EJS Templates
test-keyword: adapt for Windows
Adrian Buehlmann -
r17099:1c55d1ad default
parent child Browse files
Show More
@@ -1,5 +1,3 b''
1 $ "$TESTDIR/hghave" unix-permissions serve || exit 80
2
3 $ cat <<EOF >> $HGRCPATH
1 $ cat <<EOF >> $HGRCPATH
4 > [extensions]
2 > [extensions]
5 > keyword =
3 > keyword =
@@ -297,16 +295,20 b' Check whether expansion is filewise and '
297
295
298 $ echo '$Id$' > c
296 $ echo '$Id$' > c
299 $ echo 'tests for different changenodes' >> c
297 $ echo 'tests for different changenodes' >> c
298 #if unix-permissions
300 $ chmod 600 c
299 $ chmod 600 c
301 $ ls -l c | cut -b 1-10
300 $ ls -l c | cut -b 1-10
302 -rw-------
301 -rw-------
302 #endif
303
303
304 commit file c
304 commit file c
305
305
306 $ hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>'
306 $ hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>'
307 adding c
307 adding c
308 #if unix-permissions
308 $ ls -l c | cut -b 1-10
309 $ ls -l c | cut -b 1-10
309 -rw-------
310 -rw-------
311 #endif
310
312
311 force expansion
313 force expansion
312
314
@@ -330,10 +332,10 b' record'
330
332
331 record chunk
333 record chunk
332
334
333 >>> lines = open('a').readlines()
335 >>> lines = open('a', 'rb').readlines()
334 >>> lines.insert(1, 'foo\n')
336 >>> lines.insert(1, 'foo\n')
335 >>> lines.append('bar\n')
337 >>> lines.append('bar\n')
336 >>> open('a', 'w').writelines(lines)
338 >>> open('a', 'wb').writelines(lines)
337 $ hg record -d '10 1' -m rectest a<<EOF
339 $ hg record -d '10 1' -m rectest a<<EOF
338 > y
340 > y
339 > y
341 > y
@@ -612,6 +614,7 b' Copy ignored file to ignored file: no ov'
612 cp symlink file; hg cp -A symlink file (part1)
614 cp symlink file; hg cp -A symlink file (part1)
613 - copied symlink points to kwfile: overwrite
615 - copied symlink points to kwfile: overwrite
614
616
617 #if symlink
615 $ cp sym i
618 $ cp sym i
616 $ ls -l i
619 $ ls -l i
617 -rw-r--r--* (glob)
620 -rw-r--r--* (glob)
@@ -624,6 +627,7 b' cp symlink file; hg cp -A symlink file ('
624 expand $Id$
627 expand $Id$
625 $ hg forget i
628 $ hg forget i
626 $ rm i
629 $ rm i
630 #endif
627
631
628 Test different options of hg kwfiles
632 Test different options of hg kwfiles
629
633
@@ -924,6 +928,7 b' kwexpand nonexistent'
924 nonexistent:* (glob)
928 nonexistent:* (glob)
925
929
926
930
931 #if serve
927 hg serve
932 hg serve
928 - expand with hgweb file
933 - expand with hgweb file
929 - no expansion with hgweb annotate/changeset/filediff
934 - no expansion with hgweb annotate/changeset/filediff
@@ -987,6 +992,7 b' hg serve'
987
992
988
993
989 $ cat errors.log
994 $ cat errors.log
995 #endif
990
996
991 Prepare merge and resolve tests
997 Prepare merge and resolve tests
992
998
General Comments 0
You need to be logged in to leave comments. Login now