# HG changeset patch # User Brendan Cully # Date 2006-10-12 16:17:16 # Node ID 751df21dad72564ff09614b9f4d23df6ff4d4f6e # Parent 7f486971d263fa42b6b23939a4af0828e825458d Add test for git binary diff support diff --git a/templates/static/hgicon.png b/tests/binfile.bin copy from templates/static/hgicon.png copy to tests/binfile.bin diff --git a/tests/test-git-export b/tests/test-git-export --- a/tests/test-git-export +++ b/tests/test-git-export @@ -47,3 +47,16 @@ hg diff --git -r 6:tip echo '% nonexistent in tip+chmod' hg diff --git -r 5:6 + +echo '% binary diff' +cp $TESTDIR/binfile.bin . +hg add binfile.bin +hg diff --git > b.diff +cat b.diff + +echo '% import binary diff' +hg revert binfile.bin +rm binfile.bin +hg import -mfoo b.diff +cmp binfile.bin $TESTDIR/binfile.bin + diff --git a/tests/test-git-export.out b/tests/test-git-export.out --- a/tests/test-git-export.out +++ b/tests/test-git-export.out @@ -44,3 +44,24 @@ rename to dst diff --git a/src b/src old mode 100644 new mode 100755 +% binary diff +diff --git a/binfile.bin b/binfile.bin +new file mode 100644 +index 0000000000000000000000000000000000000000..37ba3d1c6f17137d9c5f5776fa040caf5fe73ff9 +GIT binary patch +literal 593 +zc$@)I0W$NUkd +zX$nnYLt$-$V!?uy+1V%`z&Eh=ah|duER<4|QWhju3gb^nF*8iYobxWG-qqXl=2~5M +z*IoDB)sG^CfNuoBmqLTVU^<;@nwHP!1wrWd`{(mHo6VNXWtyh{alzqmsH*yYzpvLT +zLdYlXB*ODN003Z&P17_@)3Pi=i0wb04