tests/test-convert-git
branchstable
changeset 11031 409c0e4d79e9
parent 10990 bb377a311109
equal deleted inserted replaced
11028:0425f1fdf3a8 11031:409c0e4d79e9
   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     grep 'abort:' | sed 's/abort:.*/abort:/g'
       
   185 
   173 true
   186 true