comparison tests/test-git-export @ 3368:751df21dad72

Add test for git binary diff support
author Brendan Cully <brendan@kublai.com>
date Thu, 12 Oct 2006 09:17:16 -0700
parents 096f1c73cdc3
children 454b3a8cdf28
comparison
equal deleted inserted replaced
3367:7f486971d263 3368:751df21dad72
45 echo '% rename+mod+chmod' 45 echo '% rename+mod+chmod'
46 hg diff --git -r 6:tip 46 hg diff --git -r 6:tip
47 47
48 echo '% nonexistent in tip+chmod' 48 echo '% nonexistent in tip+chmod'
49 hg diff --git -r 5:6 49 hg diff --git -r 5:6
50
51 echo '% binary diff'
52 cp $TESTDIR/binfile.bin .
53 hg add binfile.bin
54 hg diff --git > b.diff
55 cat b.diff
56
57 echo '% import binary diff'
58 hg revert binfile.bin
59 rm binfile.bin
60 hg import -mfoo b.diff
61 cmp binfile.bin $TESTDIR/binfile.bin
62