[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to create a diff/patch with binary data

From: Martin A. Brooks <martin_at_hinterlands.org>
Date: 2004-12-06 23:22:57 CET

Emmeran Seehuber wrote:

>But how can I create a diff (or something similar) containing this binary
>changes? And how could this be applied? Does Subversion support this
>currently? If not, are they any plans?

One solution here is perhaps to add an svn diff option along the lines
of '--outputpatchto' or '-o' to select a file for the patch to be
written to (taking care to not overwrite versioned files).

So your work flow might look like this:

boole:~/wpp# svn diff foo.png
Index: foo.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
boole:~/wpp# svn diff foo.png -o foo.patch
svn: 673 bytes written to 'foo.patch'.



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 6 23:25:08 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.