comparison tests/test-convert-git @ 7222:c1dc903dc7b6

convert: read git output in binary mode under Windows (issue 1359)
author Patrick Mezard <pmezard@gmail.com>
date Thu, 23 Oct 2008 14:05:11 +0200
parents a5a7f7fd5554
children 5d14b06b1cc1
comparison
equal deleted inserted replaced
7221:b340cb536893 7222:c1dc903dc7b6
128 128
129 splitrepo 'octopus merge' 'foo bar baz' 129 splitrepo 'octopus merge' 'foo bar baz'
130 130
131 splitrepo 'only some parents of an octopus merge; "discard" a head' 'foo baz quux' 131 splitrepo 'only some parents of an octopus merge; "discard" a head' 'foo baz quux'
132 132
133 echo
134 echo '% test binary conversion (issue 1359)'
135 mkdir git-repo3
136 cd git-repo3
137 git init-db >/dev/null 2>/dev/null
138 python -c 'file("b", "wb").write("".join([chr(i) for i in range(256)])*16)'
139 git add b
140 commit -a -m addbinary
141 cd ..
142
143 echo '% convert binary file'
144 hg convert git-repo3 git-repo3-hg
145
146 cd git-repo3-hg
147 hg up -C
148 python -c 'print len(file("b", "rb").read())'
149