Mercurial > hg
comparison tests/test-convert-git @ 10987:b3af02b1f19f stable
convert/git: check status when reading output stream
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 25 Apr 2010 23:07:46 +0200 |
parents | f5ce9b052747 |
children | bb377a311109 |
comparison
equal
deleted
inserted
replaced
10986:610f047326b9 | 10987:b3af02b1f19f |
---|---|
168 hg -R git-repo4-hg log -v | 168 hg -R git-repo4-hg log -v |
169 | 169 |
170 echo '% --sourceorder should fail' | 170 echo '% --sourceorder should fail' |
171 hg convert --sourcesort git-repo4 git-repo4-sourcesort-hg | 171 hg convert --sourcesort git-repo4 git-repo4-sourcesort-hg |
172 | 172 |
173 echo '% damage git repository and convert again' | |
174 cat > damage.py <<EOF | |
175 import os | |
176 for root, dirs, files in os.walk('git-repo4/.git/objects'): | |
177 if files: | |
178 path = os.path.join(root, files[0]) | |
179 os.remove(path) | |
180 break | |
181 EOF | |
182 python damage.py | |
183 hg convert git-repo4 git-repo4-broken-hg 2>&1 | \ | |
184 sed 's/fatal:.*/fatal: git error/g' | |
185 | |
173 true | 186 true |