tests/test-convert-git.t
changeset 36260 9a1df91429af
parent 35393 4441705b7111
child 37437 814e080a1215
equal deleted inserted replaced
36259:2892c1d47f30 36260:9a1df91429af
   418 
   418 
   419   $ count=19
   419   $ count=19
   420   $ mkdir git-repo3
   420   $ mkdir git-repo3
   421   $ cd git-repo3
   421   $ cd git-repo3
   422   $ git init-db >/dev/null 2>/dev/null
   422   $ git init-db >/dev/null 2>/dev/null
   423   $ $PYTHON -c 'file("b", "wb").write("".join([chr(i) for i in range(256)])*16)'
   423   $ $PYTHON -c 'import struct; open("b", "wb").write(b"".join([struct.Struct(">B").pack(i) for i in range(256)])*16)'
   424   $ git add b
   424   $ git add b
   425   $ commit -a -m addbinary
   425   $ commit -a -m addbinary
   426   $ cd ..
   426   $ cd ..
   427 
   427 
   428 convert binary file
   428 convert binary file
   435   0 addbinary
   435   0 addbinary
   436   updating bookmarks
   436   updating bookmarks
   437   $ cd git-repo3-hg
   437   $ cd git-repo3-hg
   438   $ hg up -C
   438   $ hg up -C
   439   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   439   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   440   $ $PYTHON -c 'print len(file("b", "rb").read())'
   440   $ $PYTHON -c 'print len(open("b", "rb").read())'
   441   4096
   441   4096
   442   $ cd ..
   442   $ cd ..
   443 
   443 
   444 test author vs committer
   444 test author vs committer
   445 
   445