# HG changeset patch # User Adrian Buehlmann # Date 1283431516 -7200 # Node ID cc5b7184014836d89518b06d74f1ce9202061ff3 # Parent bca69641de61dc7aa23624ffa27e12efd3de6b61 tests: unify test-diff-binary-file diff -r bca69641de61 -r cc5b71840148 tests/test-diff-binary-file --- a/tests/test-diff-binary-file Thu Sep 02 15:08:36 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -#!/bin/sh - -hg init a -cd a -cp $TESTDIR/binfile.bin . -hg add binfile.bin -hg ci -m 'add binfile.bin' - -echo >> binfile.bin -hg ci -m 'change binfile.bin' - -hg revert -r 0 binfile.bin -hg ci -m 'revert binfile.bin' - -echo % diff -r 0 -r 1 -hg diff --nodates -r 0 -r 1 - -echo % diff -r 0 -r 2 -hg diff --nodates -r 0 -r 2 - -echo % diff --git -r 0 -r 1 -hg diff --git -r 0 -r 1 - -echo % diff --git -r 0 -r 2 -hg diff --git -r 0 -r 2 diff -r bca69641de61 -r cc5b71840148 tests/test-diff-binary-file.out --- a/tests/test-diff-binary-file.out Thu Sep 02 15:08:36 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -% diff -r 0 -r 1 -diff -r 48b371597640 -r acea2ab458c8 binfile.bin -Binary file binfile.bin has changed -% diff -r 0 -r 2 -% diff --git -r 0 -r 1 -diff --git a/binfile.bin b/binfile.bin -index 37ba3d1c6f17137d9c5f5776fa040caf5fe73ff9..58dc31a9e2f40f74ff3b45903f7d620b8e5b7356 -GIT binary patch -literal 594 -zc$@)J0W$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> binfile.bin + $ hg ci -m 'change binfile.bin' + + $ hg revert -r 0 binfile.bin + $ hg ci -m 'revert binfile.bin' + + $ hg diff --nodates -r 0 -r 1 + diff -r 48b371597640 -r acea2ab458c8 binfile.bin + Binary file binfile.bin has changed + + $ hg diff --nodates -r 0 -r 2 + + $ hg diff --git -r 0 -r 1 + diff --git a/binfile.bin b/binfile.bin + index 37ba3d1c6f17137d9c5f5776fa040caf5fe73ff9..58dc31a9e2f40f74ff3b45903f7d620b8e5b7356 + GIT binary patch + literal 594 + zc$@)J0W$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