equal
deleted
inserted
replaced
1 $ "$TESTDIR/hghave" unix-permissions || exit 80 |
|
2 |
|
3 Test EOL extension |
1 Test EOL extension |
4 |
2 |
5 $ cat >> $HGRCPATH <<EOF |
3 $ cat >> $HGRCPATH <<EOF |
6 > [diff] |
4 > [diff] |
7 > git = True |
5 > git = True |
384 M unix.txt |
382 M unix.txt |
385 % hg commit |
383 % hg commit |
386 % hg status |
384 % hg status |
387 $ rm -r mixed |
385 $ rm -r mixed |
388 |
386 |
389 Test issue2569 -- eol extension takes write lock on reading: |
|
390 |
|
391 $ echo '[extensions]' >> $HGRCPATH |
387 $ echo '[extensions]' >> $HGRCPATH |
392 $ echo 'eol =' >> $HGRCPATH |
388 $ echo 'eol =' >> $HGRCPATH |
|
389 |
|
390 #if unix-permissions |
|
391 |
|
392 Test issue2569 -- eol extension takes write lock on reading: |
|
393 |
393 $ hg init repo |
394 $ hg init repo |
394 $ cd repo |
395 $ cd repo |
395 $ touch .hgeol |
396 $ touch .hgeol |
396 $ hg status |
397 $ hg status |
397 ? .hgeol |
398 ? .hgeol |
401 $ hg status --traceback |
402 $ hg status --traceback |
402 ? .hgeol |
403 ? .hgeol |
403 $ chmod -R u+w .hg |
404 $ chmod -R u+w .hg |
404 $ cd .. |
405 $ cd .. |
405 |
406 |
|
407 #endif |
|
408 |
406 Test cleverencode: and cleverdecode: aliases for win32text extension |
409 Test cleverencode: and cleverdecode: aliases for win32text extension |
407 |
410 |
408 $ echo '[encode]' >> $HGRCPATH |
411 $ echo '[encode]' >> $HGRCPATH |
409 $ echo '**.txt = cleverencode:' >> $HGRCPATH |
412 $ echo '**.txt = cleverencode:' >> $HGRCPATH |
410 $ echo '[decode]' >> $HGRCPATH |
413 $ echo '[decode]' >> $HGRCPATH |
520 $ cat a.txt |
523 $ cat a.txt |
521 third |
524 third |
522 fourth |
525 fourth |
523 fifth |
526 fifth |
524 |
527 |
|
528 $ cd .. |