tests/test-convert-mtn.t
changeset 39618 2f40bcebad30
parent 36290 2b7318db0a89
child 39707 5abc47d4ca6b
equal deleted inserted replaced
39617:c8e371ee65a4 39618:2f40bcebad30
    41   $ cd workingdir
    41   $ cd workingdir
    42   $ echo a > a
    42   $ echo a > a
    43   $ mkdir dir
    43   $ mkdir dir
    44   $ echo b > dir/b
    44   $ echo b > dir/b
    45   $ echo d > dir/d
    45   $ echo d > dir/d
    46   $ $PYTHON -c 'open("bin", "wb").write(b"a\\x00b")'
    46   $ $PYTHON -c 'open("bin", "wb").write(b"a\\x00b") and None'
    47   $ echo c > c
    47   $ echo c > c
    48   $ mtn add a dir/b dir/d c bin
    48   $ mtn add a dir/b dir/d c bin
    49   mtn: adding 'a' to workspace manifest
    49   mtn: adding 'a' to workspace manifest
    50   mtn: adding 'bin' to workspace manifest
    50   mtn: adding 'bin' to workspace manifest
    51   mtn: adding 'c' to workspace manifest
    51   mtn: adding 'c' to workspace manifest
    63   mtn: renaming 'a' to 'dir/a' in workspace manifest
    63   mtn: renaming 'a' to 'dir/a' in workspace manifest
    64   $ echo a >> dir/a
    64   $ echo a >> dir/a
    65   $ echo b >> dir/b
    65   $ echo b >> dir/b
    66   $ mtn drop c
    66   $ mtn drop c
    67   mtn: dropping 'c' from workspace manifest
    67   mtn: dropping 'c' from workspace manifest
    68   $ $PYTHON -c 'open("bin", "wb").write(b"b\\x00c")'
    68   $ $PYTHON -c 'open("bin", "wb").write(b"b\\x00c") and None'
    69   $ mtn ci -m update1
    69   $ mtn ci -m update1
    70   mtn: beginning commit on branch 'com.selenic.test'
    70   mtn: beginning commit on branch 'com.selenic.test'
    71   mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff
    71   mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff
    72   $ cd ..
    72   $ cd ..
    73 
    73 
   216   mtn: committed revision 4a736634505795f17786fffdf2c9cbf5b11df6f6
   216   mtn: committed revision 4a736634505795f17786fffdf2c9cbf5b11df6f6
   217 
   217 
   218 test large file support (> 32kB)
   218 test large file support (> 32kB)
   219 
   219 
   220   >>> fp = open('large-file', 'wb')
   220   >>> fp = open('large-file', 'wb')
   221   >>> for x in range(10000): fp.write(b'%d\n' % x)
   221   >>> for x in range(10000): fp.write(b'%d\n' % x) and None
   222   >>> fp.close()
   222   >>> fp.close()
   223   $ md5sum.py large-file
   223   $ md5sum.py large-file
   224   5d6de8a95c3b6bf9e0ffb808ba5299c1  large-file
   224   5d6de8a95c3b6bf9e0ffb808ba5299c1  large-file
   225   $ mtn add large-file
   225   $ mtn add large-file
   226   mtn: adding 'large-file' to workspace manifest
   226   mtn: adding 'large-file' to workspace manifest