tests/test-symlink-placeholder.t
changeset 38113 0a10f142299d
parent 22046 7a9cbb315d84
equal deleted inserted replaced
38112:ce307af030a2 38113:0a10f142299d
    48   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
    48   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
    49   ignoring suspect symlink placeholder "b"
    49   ignoring suspect symlink placeholder "b"
    50 
    50 
    51 Write binary data to the placeholder:
    51 Write binary data to the placeholder:
    52 
    52 
    53   >>> open('b', 'w').write('this is a binary\0')
    53   >>> open('b', 'w').write('this is a binary\0') and None
    54   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
    54   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
    55   ignoring suspect symlink placeholder "b"
    55   ignoring suspect symlink placeholder "b"
    56 
    56 
    57 Write a long string to the placeholder:
    57 Write a long string to the placeholder:
    58 
    58 
    59   >>> open('b', 'w').write('this' * 1000)
    59   >>> open('b', 'w').write('this' * 1000) and None
    60   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
    60   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
    61   ignoring suspect symlink placeholder "b"
    61   ignoring suspect symlink placeholder "b"
    62 
    62 
    63 Commit shouldn't succeed:
    63 Commit shouldn't succeed:
    64 
    64 
    66   nothing changed
    66   nothing changed
    67   [1]
    67   [1]
    68 
    68 
    69 Write a valid string to the placeholder:
    69 Write a valid string to the placeholder:
    70 
    70 
    71   >>> open('b', 'w').write('this')
    71   >>> open('b', 'w').write('this') and None
    72   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
    72   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
    73   M b
    73   M b
    74   $ hg --config extensions.n=$TESTTMP/nolink.py ci -m1
    74   $ hg --config extensions.n=$TESTTMP/nolink.py ci -m1
    75   $ hg manifest tip --verbose
    75   $ hg manifest tip --verbose
    76   644   a
    76   644   a