equal
deleted
inserted
replaced
340 |
340 |
341 echo % create a git patch |
341 echo % create a git patch |
342 echo a > alexander |
342 echo a > alexander |
343 hg add alexander |
343 hg add alexander |
344 hg qnew -f --git addalexander |
344 hg qnew -f --git addalexander |
345 cat .hg/patches/addalexander | grep diff |
345 grep diff .hg/patches/addalexander |
346 |
346 |
347 echo % create a git binary patch |
347 echo % create a git binary patch |
348 cat > writebin.py <<EOF |
348 cat > writebin.py <<EOF |
349 import sys |
349 import sys |
350 path = sys.argv[1] |
350 path = sys.argv[1] |
353 python writebin.py bucephalus |
353 python writebin.py bucephalus |
354 |
354 |
355 python "$TESTDIR/md5sum.py" bucephalus |
355 python "$TESTDIR/md5sum.py" bucephalus |
356 hg add bucephalus |
356 hg add bucephalus |
357 hg qnew -f --git addbucephalus |
357 hg qnew -f --git addbucephalus |
358 cat .hg/patches/addbucephalus | grep diff |
358 grep diff .hg/patches/addbucephalus |
359 |
359 |
360 echo % check binary patches can be popped and pushed |
360 echo % check binary patches can be popped and pushed |
361 hg qpop |
361 hg qpop |
362 ! test -f bucephalus || echo % bucephalus should not be there |
362 test -f bucephalus && echo % bucephalus should not be there |
363 hg qpush |
363 hg qpush |
364 test -f bucephalus || echo % bucephalus should be there |
364 test -f bucephalus || echo % bucephalus should be there |
365 python "$TESTDIR/md5sum.py" bucephalus |
365 python "$TESTDIR/md5sum.py" bucephalus |
366 |
366 |
367 |
367 |