tests/test-import
changeset 6179 36ab165abbe2
parent 6001 30d2fecaab76
child 6295 bace1990ab12
equal deleted inserted replaced
6178:81afdd016867 6179:36ab165abbe2
   205     echo % $name file
   205     echo % $name file
   206     test -f $name && cat $name
   206     test -f $name && cat $name
   207 done
   207 done
   208 cd ..
   208 cd ..
   209 
   209 
       
   210 # Test importing a patch ending with a binary file removal
       
   211 echo % test trailing binary removal
       
   212 hg init binaryremoval
       
   213 cd binaryremoval
       
   214 echo a > a
       
   215 python -c "file('b', 'wb').write('a\x00b')"
       
   216 hg ci -Am addall
       
   217 hg rm a
       
   218 hg rm b
       
   219 hg st
       
   220 hg ci -m remove
       
   221 hg export --git . > remove.diff
       
   222 cat remove.diff | grep git
       
   223 hg up -C 0
       
   224 hg import remove.diff
       
   225 hg manifest
       
   226 cd ..
       
   227