tests/test-convert-git
branchstable
changeset 11031 409c0e4d79e9
parent 10990 bb377a311109
--- a/tests/test-convert-git	Sat Apr 24 01:30:24 2010 -0300
+++ b/tests/test-convert-git	Wed Apr 28 13:45:21 2010 -0500
@@ -170,4 +170,17 @@
 echo '% --sourceorder should fail'
 hg convert --sourcesort git-repo4 git-repo4-sourcesort-hg
 
+echo '% damage git repository and convert again'
+cat > damage.py <<EOF
+import os
+for root, dirs, files in os.walk('git-repo4/.git/objects'):
+    if files:
+        path = os.path.join(root, files[0])
+        os.remove(path)
+        break
+EOF
+python damage.py
+hg convert git-repo4 git-repo4-broken-hg 2>&1 | \
+    grep 'abort:' | sed 's/abort:.*/abort:/g'
+
 true