[PATCH 21 of 21] mdiff: lowercase binary file changed output
Martin Geisler
mg at daimi.au.dk
Sat Jan 3 10:40:19 CST 2009
# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1230999321 -3600
# Node ID 743f281be219eca8705b5e2ca7f353a262688e1b
# Parent 8333715a0c3a2d457a6a0eb2d784e9a31f3a753d
mdiff: lowercase binary file changed output
This is the "Binary file x.png has changed" message. If this is part
of some standard, then this patch should not be applied.
diff --git a/mercurial/mdiff.py b/mercurial/mdiff.py
--- a/mercurial/mdiff.py
+++ b/mercurial/mdiff.py
@@ -93,7 +93,7 @@
if not opts.text and (util.binary(a) or util.binary(b)):
if a and b and len(a) == len(b) and a == b:
return ""
- l = ['Binary file %s has changed\n' % fn1]
+ l = ['binary file %s has changed\n' % fn1]
elif not a:
b = splitnewlines(b)
if a is None:
diff --git a/tests/test-diff-binary-file.out b/tests/test-diff-binary-file.out
--- a/tests/test-diff-binary-file.out
+++ b/tests/test-diff-binary-file.out
@@ -1,6 +1,6 @@
% diff -r 0 -r 1
diff -r 48b371597640 -r acea2ab458c8 binfile.bin
-Binary file binfile.bin has changed
+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
diff --git a/tests/test-record.out b/tests/test-record.out
--- a/tests/test-record.out
+++ b/tests/test-record.out
@@ -119,7 +119,7 @@
summary: binary
diff -r a2546574bce9 -r 9e998a545a8b tip.bundle
-Binary file tip.bundle has changed
+binary file tip.bundle has changed
% change binary file
1 changesets found
@@ -133,7 +133,7 @@
summary: binary-change
diff -r 9e998a545a8b -r 93d05561507d tip.bundle
-Binary file tip.bundle has changed
+binary file tip.bundle has changed
% rename and change binary file
1 changesets found
@@ -149,9 +149,9 @@
summary: binary-change-rename
diff -r 93d05561507d -r 699cc1bea9aa tip.bundle
-Binary file tip.bundle has changed
+binary file tip.bundle has changed
diff -r 93d05561507d -r 699cc1bea9aa top.bundle
-Binary file top.bundle has changed
+binary file top.bundle has changed
% add plain file
diff --git a/plain b/plain
More information about the Mercurial-devel
mailing list